<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"MS PGothic";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
        {font-family:"\@MS PGothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"MS PGothic",sans-serif;
        mso-fareast-language:JA;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"MS PGothic",sans-serif;
        mso-fareast-language:JA;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Arial",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-US">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-US">Gruesse<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org>
<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 <gstreamer-devel@lists.freedesktop.org><br>
<b>Betreff:</b> Re: How to debug/fix running error when use rtph264pay?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi gotsring,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks for reply.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">First, I was porting my code to x86 PC and run with<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><i>SERVER</i></b><i>: gst-launch-1.0 udpsrc port=5000 !</i><o:p></o:p></p>
</div>
<p class="MsoNormal"><i>application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse !<br>
avdec_h264 ! autovideosink</i><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><b><i>CLIENT</i></b><i>: gst-launch-1.0 appsrc name=ringbuf ! 'video/x-h264,</i><o:p></o:p></p>
</div>
<p class="MsoNormal"><i>stream-format=byte-stream' ! h264parse !  rtph264pay mtu=1400 !<br>
udpsink host=10.0.0.10 port=5000</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Above combination is working. Thanks.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I still have a question.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Once I remove h264parse from client, it would <b>NOT</b> work anymore, why?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">In the future, more complicate case, how do I know I should add h264parse or not?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Please advise. Thank you.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">gotsring <<a href="mailto:gotsring@live.com">gotsring@live.com</a>>
<span lang="JA">$B1w(B</span> 2020<span lang="JA">$BG/(B</span>7<span lang="JA">$B7n(B</span>28<span lang="JA">$BF|(B $B=5Fs(B $B>e8a(B</span>3:29<span lang="JA">$BUmF;!'(B</span><o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;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><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>