<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Thanks Michael. But how I can convert h264 file to byte sequence to check the special start code. I wrote simple perl script to do that but it is not working. Really appreciate any suggestion. </span></div><div><span> </span></div><div><span><br></span></div><div><br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Schier Michael <michael.schier@uibk.ac.at><br><b><span style="font-weight: bold;">To:</span></b> Hardik Sharma <hardik.sharma22@yahoo.com><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, 5 September 2011 1:57 AM<br><b><span style="font-weight:
bold;">Subject:</span></b> Re: [x264-devel] dropping slices<br></font><br>Hi Hardik,<br><br>this is actually very easy. Don't mess around with ffmpeg code. Just let<br>ffmpeg do its job and you end up with an error-free file.<br>Or take x264 directly, which gives you a raw h264 file.<br><br>Start with the raw H.264 file. Write a small program which parses the<br>file byte-per-byte and searches for the byte sequence 0x000001.<br>This is the Annex B header of the NAL unit and it should be unique<br>throughout the whole bitstream.<br>Voilą, you know the boundaries of the NAL units and you can start<br>dropping them as you want.<br><br>For a complete documentation, have a look at<br><a href="http://www.itu.int/rec/T-REC-H.264" target="_blank">http://www.itu.int/rec/T-REC-H.264</a><br><br>cheers,<br>mike<br><br>Am Donnerstag, den 01.09.2011, 08:38 -0700 schrieb Hardik Sharma:<br>> Hi guys,<br>> <br>> <br>> As i m trying to drop slices from past
many days and not<br>> yet succeeded. I m using ffmpeg which is using x264 libraries. Right<br>> now I am trying to find the flow in encoder.c file of x264 to figure<br>> out where I can drop slices/NAL. But my printf statements are not<br>> working or atleast not displaying on the terminal neither in log<br>> files. Can anyone tell me that which function should I look<br>> into particularly as i m very new to ffmpeg/x.264. <br>> <br>> <br>> I want to drop slices and introduce controlled error finally. I will<br>> really appreciate any kind of help. Thanks.<br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> x264-devel mailing list<br>> <a ymailto="mailto:x264-devel@videolan.org" 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><br><br></div></div></div></body></html>