can't play h264 over RTP

Marc Leeman marc.leeman at gmail.com
Wed Aug 11 16:59:32 UTC 2021


If you use udpsink/udpsrc, you are not using RTP, just UDP with an RTP
header. You're missing the RTCP part.

So it depends on what you want to do. If you ask me "I want to use RTP";
then you need rtpsrc and rtpsink. If you want glorified UDP, you can use
udpsink and udpsrc.



On Wed, 11 Aug 2021 at 18:40, Dwight Kulkarni <dwight at realtime-7.com> wrote:

> Hi,
>
> You can also try my pipeline.
>
> gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw, width=1920,
> height=1080, framerate=15/1 ! x264enc ! rtph264pay name=pay0 pt=96 !
> udpsink host=192.168.1.50 port=5000
> gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, encoding-name=H264,
> payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink
>
> On Wed, Aug 11, 2021 at 10:27 AM Marc Leeman via gstreamer-devel <
> gstreamer-devel at lists.freedesktop.org> wrote:
>
>>
>>
>> gst-launch-1.0 videotestsrc !  x264enc ! h264parse ! rtph264pay
>> config-interval=1 ! rtpsink uri=rtp://239.1.2.3:1234
>> gst-launch-1.0 rtpsrc uri=rtp://239.1.2.3:1234?encoding-name=H264 !
>> rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink
>>
>> I suspect that the config-interval is what is missing with your examples
>>
>> Also, send out RTP on even ports.
>>
>> On Wed, 11 Aug 2021 at 16:00, niXman via gstreamer-devel <
>> gstreamer-devel at lists.freedesktop.org> wrote:
>>
>>>
>>> Hello Marc Leeman,
>>>
>>> > I can reply more extensively next week, but have a look at
>>> > rtpsink/rtpsrc
>>>
>>> thank you for your answer but I still can't play it in any way known to
>>> me...
>>>
>>> any ideas?
>>>
>>>
>>>
>>> best!
>>>
>>
>>
>> --
>> g. Marc
>>
>
>
> --
> Sincerely,
>
> Dwight Kulkarni
>
>
>

-- 
g. Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210811/ec8d3b16/attachment.htm>


More information about the gstreamer-devel mailing list