<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond,new york,times,serif;font-size:12pt">Hey<br><br>Did you find an answer to this question yet? I'm also looking at the Annex B of the H.264 specification and want to know how exactly is it currently implemented in gstreamer payloaders like rtph264vpay etc.<br><br>As it seems from my experience, the Single NAL unit mode as given in RFC3894 doesnt work. I see that even when I encode from the H264 encoder using slice modes and all settings are such that only one slice goes into one NAL unit, even then, my RTP packet given by rtph264vpay is larger by tens of times than it should be. I think this is because the payloader doesnt implement the Single NAL unit mode (which should be the default more as stated in RFC 3894) and puts several NAL units in one RTP Packet. Can anyone please help verify this?<br><br>Also, is there a way I could get the Single
 NAL unit mode to work? Am I missing something here?<br><div><br></div><div style="font-family: garamond,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "Chen, Weian" &lt;weian.chen@intel.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Discussion of the development of GStreamer &lt;gstreamer-devel@lists.sourceforge.net&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, December 25, 2009 7:05:09 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [gst-devel] Question on H.264 AnnexB package mode in MP4 container<br></font><br>



 
 
<style>
<!--
 
 _filtered {panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered {panose-1:2 1 6 0 3 1 1 1 1 1;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;font-size:10.5pt;font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;color:windowtext;font-weight:normal;font-style:normal;text-decoration:none none;}
 
 _filtered {margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {}
 
 _filtered {}
 _filtered {margin-left:18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>



<div class="Section1" style="">

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">Hi All</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">As you know, </span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">h264 streams come in two package
modes:</span></font></p> 

<p class="MsoNormal" style="margin-left: 18pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"><span style="">1.<font face="Times New Roman" size="1"><span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">Length
prefixed</span></font></p> 

<p class="MsoNormal" style="margin-left: 18pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"><span style="">2.<font face="Times New Roman" size="1"><span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">start
code prefixed (AnnexB)</span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"></span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">My question here is: can we put start code prefixed
H.264 stream into MP4 container, is it legal or not?</span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"></span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">Thanks in advanced.</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Weian Chen </span></font><span lang="EN-US"></span></p> 

<p class="MsoNormal"><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Ultra Mobility Group </span></font><span lang="EN-US"></span></p> 

<p class="MsoNormal"><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Intel Corporation</span></font><span lang="EN-US"></span></p> 

<p class="MsoNormal"><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;" lang="EN-US">Tel:&nbsp;
86-21-6116-6478<br>
Fax: 86-21-3429-1915<br>
iNet: 8-821-6478</span></font><span lang="EN-US"></span></p> 

<p class="MsoNormal"><font face="Times New Roman" size="2"><span lang="EN-US"> &nbsp;</span></font></p> 

</div>

</div></div>
</div><br>

      </body></html>