[Libav-user] h264_mp4toannexb_filter

Wagner Patriota wagner.patriota at gmail.com
Mon Apr 9 23:07:34 CEST 2012

What's wrong with my MP4?

I am trying to demux a MP4 file with this extra_data:

This data was generated by Expression Encoder.

Because I need to transmux this MP4 to Transport Stream, I need to use the
bitstream filter "-vbsf h264_mp4toannexb"...

Reading the h264_mp4toannexb_bsf.c there is a part for 'retrieve sps and
pps unit(s)'. [I don't know exactly what is means]

but I get to the following line and then I get an error:

if (total_size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE || *extradata + 2 +
unit_size > avctx->extradata+avctx->extradata_size* )
    ... SOME ERROR... 'Invalid argument'

Because of the red part...
Where do I get information about what is inside this data and why it's
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120409/19a0c759/attachment.html>

More information about the Libav-user mailing list