<div dir="ltr">Hi Keith,<div><br></div><div>Thanks. This help me a lot. Since our embedded system did not have h264parse, we need to find a way to have it.</div><div>Thanks a lot.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Thornton, Keith <<a href="mailto:keith.thornton@zeiss.com">keith.thornton@zeiss.com</a>> 於 2020年7月28日 週二 下午2:17寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="DE">
<div class="gmail-m_9023002022792339212WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">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<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Gruesse<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">Von:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>>
<b>Im Auftrag von </b>Psychesnet Hsieh<br>
<b>Gesendet:</b> Dienstag, 28. Juli 2020 04:52<br>
<b>An:</b> Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
<b>Betreff:</b> Re: How to debug/fix running error when use rtph264pay?<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi gotsring,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks for reply.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">First, I was porting my code to x86 PC and run with<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b><i>SERVER</i></b><i>: gst-launch-1.0 udpsrc port=5000 !</i><u></u><u></u></p>
</div>
<p class="MsoNormal"><i>application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse !<br>
avdec_h264 ! autovideosink</i><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><b><i>CLIENT</i></b><i>: gst-launch-1.0 appsrc name=ringbuf ! 'video/x-h264,</i><u></u><u></u></p>
</div>
<p class="MsoNormal"><i>stream-format=byte-stream' ! h264parse ! rtph264pay mtu=1400 !<br>
udpsink host=10.0.0.10 port=5000</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Above combination is working. Thanks.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I still have a question.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Once I remove h264parse from client, it would <b>NOT</b> work anymore, why?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">In the future, more complicate case, how do I know I should add h264parse or not?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Please advise. Thank you.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">gotsring <<a href="mailto:gotsring@live.com" target="_blank">gotsring@live.com</a>>
<span lang="JA">於</span> 2020<span lang="JA">年</span>7<span lang="JA">月</span>28<span lang="JA">日 週二 上午</span>3:29<span lang="JA">寫道:</span><u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">When I was streaming H.264 over UDP, I used the following pipelines. You<br>
might need to specify the caps in the receiver so that the rth264depay knows<br>
what it's decoding. I also had the MTU specified in rtph264pay, not sure<br>
why, but it worked (Gstreamer 1.14, I think? I no longer have the hardware).<br>
<br>
Server:<br>
gst-launch-1.0 nvcamerasrc ! omxh264enc ! 'video/x-h264,<br>
stream-format=byte-stream' ! queue ! h264parse ! rtph264pay mtu=1400 !<br>
udpsink host=10.0.0.10 port=5000 sync=false async=false<br>
<br>
Client:<br>
gst-launch-1.0 udpsrc port=5000 !<br>
application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse !<br>
avdec_h264 ! autovideosink<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="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" target="_blank">
http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="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" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</blockquote></div>