<div dir="ltr"><div><div><div>Hi,<br></div>Thanks for your answer,<br>Actually I needed a way to get raw NAL units (without starting codes), which I couldn't find any gstreamer element which does so. Hence I manually removed starting codes from NAL units when stream-format is set to byte-stream.<br></div>For any one who may ended up here, avc stream-format in gstreamer is NOT equal to byte-stream format without leading start codes, it is totally a different structure. It took me a while to realize that.<br></div>Yours,<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 12:58 AM, Thornton, Keith <span dir="ltr"><<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="DE">
<div class="m_4961092551985375538WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif" lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif" lang="EN-US">I think you should be streaming in byte-stream format. Try adding a h264parse after the encoder and then a caps of format=byte-stream. You might want to add a queue
between the two elements<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif" lang="EN-US">Grüße<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-<wbr>bounces@lists.freedesktop.org</a>]
<b>Im Auftrag von </b></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">mehdi semsarzadeh<br>
<b>Gesendet:</b> Mittwoch, 3. Mai 2017 18:15<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.<wbr>freedesktop.org</a>><br>
<b>Betreff:</b> replacing rtph264pay with appsink and live555 streamer, for live video streaming<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear All,<u></u><u></u></p>
</div>
<p class="MsoNormal">I want to stream live video, by directly passing the output of video encoder (NAL units) to live555.
<br>
Here is the pipeline that I am using:<br>
gst-launch-1.0 -v videotestsrc ! x264enc ! video/x-h264, stream-format=avc ! appsink caps="video/x-h264, stream-format=avc"<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal">and then I have a callback function connected to "new-sample" signal and sends any coming packet to Live555.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Currently, the delivered rtp packets to other end are not streamable and as I checked with wireshark the nal_unit_type is unspecified for all packets.<u></u><u></u></p>
</div>
<p class="MsoNormal">Is there anything that I am missing here?<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In other words, the following similar pipeline works fine. So what happens between x264enc and rtph264pay that I should consider in my design?<br>
<br>
gst-launch-1.0 -v videotestsrc ! x264enc ! video/x-h264, stream-format=avc ! rtph264pay pt=96 ! udpsink host=[IP_ADDRESS] port=5000<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks <u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Mehdi Semsarzadeh</div>
</div></div>