Hi ,<br>  Thanks for the kind reply,<br>  I could more info from class AVCDecoderConfigurationRecord of 14496-part 15, thanks to your pointers.<br><br clear="all">--vineeth<br>
<br><br><div class="gmail_quote">On Sun, Sep 12, 2010 at 5:38 PM, Sandeep Prakash <span dir="ltr">&lt;<a href="mailto:123sandy@gmail.com">123sandy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Hi Vineeth,<br>
<div class="im"><br>
<br>
vineeth wrote:<br>
&gt;<br>
&gt;   For few mp4 files, the first 4 bytes correspond to NumBytesInNalUnit and<br>
&gt; for few other the first 2 bytes tell the Nal Unit size. Is there a way to<br>
&gt; determine if the first 4 or the first 2 bytes give the size on Nal unit?<br>
&gt;<br>
</div>In case of h264 streams qtdemux will give the decoder config info in the<br>
caps as<br>
&quot;codec_data&quot;, as a GstBuffer. Note that this is not the bytestream format.<br>
This comprises of:<br>
&lt;6 bytes avcC atom&gt; + &lt;SPS&gt; + &lt;1 byte indicating Number of PPS present&gt; +<br>
&lt;PPS&gt; + &lt;PPS&gt; + ....<br>
<br>
In the avcC atom the 2 Least Significant Bits of the 5th Byte corresponds to<br>
the<br>
(NumBytesInNalUnit -1). So to get the NumBytesInNalUnit (Length of Length of<br>
NAL):<br>
length_of_length = (&lt;5th Byte of &quot;codec_data&quot;&gt; &amp; 0x3) + 1<br>
<div class="im"><br>
<br>
vineeth wrote:<br>
&gt;<br>
&gt;   Also, is it possible to configure qtdemux to give Nal units with NAL<br>
&gt; prefix ( Annex-B of *14496-10* standard)<br>
&gt;<br>
</div>AFAIK configuration is not possible.<br>
<br>
<br>
Regards,<br>
Sandeep Prakash<br>
<a href="http://sandeepprakash.homeip.net" target="_blank">http://sandeepprakash.homeip.net</a><br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/qtdemux-nal-slice-size-tp2535442p2536285.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/qtdemux-nal-slice-size-tp2535442p2536285.html</a><br>


Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Start uncovering the many advantages of virtual appliances<br>
and start using them to simplify application deployment and<br>
accelerate your shift to cloud computing<br>
<a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>