How to debug/fix running error when use rtph264pay?

Psychesnet Hsieh psychesnet at gmail.com
Tue Jul 28 07:06:47 UTC 2020


Hi Keith,

Thanks. This help me a lot. Since our embedded system did not have
h264parse, we need to find a way to have it.
Thanks a lot.

Thornton, Keith <keith.thornton at zeiss.com> 於 2020年7月28日 週二 下午2:17寫道:

> Hi,
>
> normally we stream h264 in byte-stream format and we write files using avc
> format. H264parse converts on the fly between these two formats. I think
> you will find that default vlc expects avc format so if you stream in
> byte-stream format and write this to a file without converting it to avc
> using h264pars, the file will not play
>
> Gruesse
>
>
>
> *Von:* gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> *Im
> Auftrag von *Psychesnet Hsieh
> *Gesendet:* Dienstag, 28. Juli 2020 04:52
> *An:* Discussion of the development of and with GStreamer <
> gstreamer-devel at lists.freedesktop.org>
> *Betreff:* Re: How to debug/fix running error when use rtph264pay?
>
>
>
> Hi gotsring,
>
>
>
> Thanks for reply.
>
>
>
> First, I was porting my code to x86 PC and run with
>
> *SERVER**: gst-launch-1.0 udpsrc port=5000 !*
>
>
> *application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay !
> h264parse ! avdec_h264 ! autovideosink*
>
> *CLIENT**: gst-launch-1.0 appsrc name=ringbuf ! 'video/x-h264,*
>
>
> *stream-format=byte-stream' ! h264parse !  rtph264pay mtu=1400 ! udpsink
> host=10.0.0.10 port=5000*
>
>
>
> Above combination is working. Thanks.
>
>
>
> I still have a question.
>
> Once I remove h264parse from client, it would *NOT* work anymore, why?
>
> In the future, more complicate case, how do I know I should add h264parse
> or not?
>
> Please advise. Thank you.
>
>
>
> gotsring <gotsring at live.com> 於 2020年7月28日 週二 上午3:29寫道:
>
> When I was streaming H.264 over UDP, I used the following pipelines. You
> might need to specify the caps in the receiver so that the rth264depay
> knows
> what it's decoding. I also had the MTU specified in rtph264pay, not sure
> why, but it worked (Gstreamer 1.14, I think? I no longer have the
> hardware).
>
> Server:
> gst-launch-1.0 nvcamerasrc ! omxh264enc ! 'video/x-h264,
> stream-format=byte-stream' ! queue ! h264parse !  rtph264pay mtu=1400 !
> udpsink host=10.0.0.10 port=5000 sync=false async=false
>
> Client:
> gst-launch-1.0 udpsrc port=5000 !
> application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse
> !
> avdec_h264 ! autovideosink
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=02%7C01%7C%7Cb5c135b586644371b0c208d832aac1e5%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637315056267705852&sdata=e1BUbgLy5izGKDgovoAM48vzwXfWIPIsP9tt8CVLbbM%3D&reserved=0>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=02%7C01%7C%7Cb5c135b586644371b0c208d832aac1e5%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637315056267715804&sdata=H1wzegjEl99re5V3%2B4XeAsQfbu%2FhQonyvppMVIhY7Y4%3D&reserved=0>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200728/245dc765/attachment-0001.htm>


More information about the gstreamer-devel mailing list