<div dir="ltr"><br><div class="gmail_quote">2009/1/15 Hadi Hadizadeh <span dir="ltr">&lt;<a href="mailto:hadi.hadizadeh@hotmail.com">hadi.hadizadeh@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
Hi,<br>
&nbsp;<br>
I want to drop some output packets manually in x.264. As you know better, the output coded video data is stored in NAL units. Now, how can we access to these NAL units? Suppose that we want to remove some MBs in order to simulate the channel error. </div>
</blockquote><div><br>from a non-media perspective, NALs are just blobs of binary data on a stream or buffer.<br>they are either separated with a 00 00 00 01 prefix code or a (usually) 4 byte NAL length field<br> <br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Also, where can I find the full structure of a NAL unit? </div></blockquote><div><br>you can learn about the internals of NAL units by looking at the very simple code of the <a href="http://sourceforge.net/projects/h264bitstream/" target="_blank">h264bitstream </a> project<br>
or reading the more complex code of the h264 decoder in ffmpeg<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>(for example, the size of the NAL header &amp; etc) Any idea? Thanks.</div>
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br><br><hr> <a></a></div>
<br>_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
<br></blockquote></div><br></div>