H.264 SRT Stream Distortion

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

H.264 SRT Stream Distortion

skoota
Hi All,

Brand new GStreamer developer here. At the moment I am keeping things simple and trying to ingest a H.264 encoded SRT stream and then just display the stream. I am using the following command:

gst-launch-1.0 srtsrc uri="srt://10.10.255.185:10000?passphrase=testing123" ! h264parse ! avdec_h264 ! autovideosink

...and the output stream looks like this:

Screen Shot 2020-12-24 at 4.30.35 pm.png

I have been doing some reading which takes about the need to force a key unit, but after a lot of searching and reading I am a bit unsure if that's related or how to do that.

Any help would be greatly appreciated.

Cheers,
Matt

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: H.264 SRT Stream Distortion

Edward Hervey-4
Hi,

  I'm going on a limb here ... but I'm guessing what's transferred over SRT is
mpeg-ts (and not raw h264). So use tsdemux after srtsrc.

  Or better yet: srtsrc ! video/mpeg-ts ! queue ! decodebin ! queue !
autovideosink

  That will take care of demuxing, decoding ,...

  BR,

    Edward

On Thu, 2020-12-24 at 16:31 +1100, [hidden email] wrote:

> Hi All,
>
> Brand new GStreamer developer here. At the moment I am keeping things simple
> and trying to ingest a H.264 encoded SRT stream and then just display the
> stream. I am using the following command:
>
> gst-launch-1.0 srtsrc uri="srt://10.10.255.185:10000?passphrase=testing123" !
> h264parse ! avdec_h264 ! autovideosink
>
> ...and the output stream looks like this:
>
>
>
> I have been doing some reading which takes about the need to force a key unit,
> but after a lot of searching and reading I am a bit unsure if that's
> related or how to do that.
>
> Any help would be greatly appreciated.
>
> Cheers,
> Matt
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: H.264 SRT Stream Distortion

skoota
Many thanks Edward, that did the trick :)

On Thu, Dec 31, 2020 at 7:11 PM Edward Hervey <[hidden email]> wrote:
Hi,

  I'm going on a limb here ... but I'm guessing what's transferred over SRT is
mpeg-ts (and not raw h264). So use tsdemux after srtsrc.

  Or better yet: srtsrc ! video/mpeg-ts ! queue ! decodebin ! queue !
autovideosink

  That will take care of demuxing, decoding ,...

  BR,

    Edward

On Thu, 2020-12-24 at 16:31 +1100, [hidden email] wrote:
> Hi All,
>
> Brand new GStreamer developer here. At the moment I am keeping things simple
> and trying to ingest a H.264 encoded SRT stream and then just display the
> stream. I am using the following command:
>
> gst-launch-1.0 srtsrc uri="srt://10.10.255.185:10000?passphrase=testing123" !
> h264parse ! avdec_h264 ! autovideosink
>
> ...and the output stream looks like this:
>
>
>
> I have been doing some reading which takes about the need to force a key unit,
> but after a lot of searching and reading I am a bit unsure if that's
> related or how to do that.
>
> Any help would be greatly appreciated.
>
> Cheers,
> Matt
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: H.264 SRT Stream Distortion

Nicolas Dufresne-5
In reply to this post by skoota


Le jeu. 24 déc. 2020 01 h 45, [hidden email] <[hidden email]> a écrit :
Hi All,

Brand new GStreamer developer here. At the moment I am keeping things simple and trying to ingest a H.264 encoded SRT stream and then just display the stream. I am using the following command:

gst-launch-1.0 srtsrc uri="srt://10.10.255.185:10000?passphrase=testing123" ! h264parse ! avdec_h264 ! autovideosink

p.s. At the moment a queue is recommended beforen h264parse.


...and the output stream looks like this:

Screen Shot 2020-12-24 at 4.30.35 pm.png

I have been doing some reading which takes about the need to force a key unit, but after a lot of searching and reading I am a bit unsure if that's related or how to do that.

Any help would be greatly appreciated.

How is your sender encoder configured ? Did you enable periodic keyframe?


Cheers,
Matt
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel