[x264-devel] dropping slices

Hardik Sharma hardik.sharma22 at yahoo.com
Wed Sep 7 23:04:57 CEST 2011


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.  
   



________________________________
From: Schier Michael <michael.schier at uibk.ac.at>
To: Hardik Sharma <hardik.sharma22 at yahoo.com>
Sent: Monday, 5 September 2011 1:57 AM
Subject: Re: [x264-devel] dropping slices

Hi Hardik,

this is actually very easy. Don't mess around with ffmpeg code. Just let
ffmpeg do its job and you end up with an error-free file.
Or take x264 directly, which gives you a raw h264 file.

Start with the raw H.264 file. Write a small program which parses the
file byte-per-byte and searches for the byte sequence 0x000001.
This is the Annex B header of the NAL unit and it should be unique
throughout the whole bitstream.
Voilà, you know the boundaries of the NAL units and you can start
dropping them as you want.

For a complete documentation, have a look at
http://www.itu.int/rec/T-REC-H.264

cheers,
mike

Am Donnerstag, den 01.09.2011, 08:38 -0700 schrieb Hardik Sharma:
> Hi guys,
> 
> 
> As i m trying to drop slices from past many days and not
> yet succeeded. I m using ffmpeg which is using x264 libraries. Right
> now I am trying to find the flow in encoder.c file of x264 to figure
> out where I can drop slices/NAL. But my printf statements are not
> working or atleast not displaying on the terminal neither in log
> files. Can anyone tell me that which function should I look
> into particularly as i m very new to ffmpeg/x.264.    
> 
> 
> I want to drop slices and introduce controlled error finally. I will
> really appreciate any kind of help. Thanks.
> 
> 
>    
> 
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110907/b35c9e04/attachment.html>


More information about the x264-devel mailing list