[Libav-user] h264_mp4toannexb_filter

Wagner Patriota wagner.patriota at gmail.com
Wed Apr 11 20:37:02 CEST 2012


ExtraData: *
00000001674D400D96528322FF2FFE080007F0A100000303E90000BB80604000825C000412FFF18E302000412E0002097FF8C70ED09128B00000000168E9093520
*
So what is wrong?

1. If I don't use the filter, I get this message:
"H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb
bitstream filter (-bsf h264_mp4toannexb)""
Because "AV_RB32(pkt->data) != 0x0000001" (in fact, AV_RB32(pkt->data) =
0x1B13)


2. Otherwise if I use the filter, the condition below makes my filter fail,
because of what is in red:
[in h264_mp4toannexb_bsf.c]
    if (total_size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE ||
*extradata+2+unit_size
> avctx->extradata+avctx->extradata_size*) {
        av_free(out);
        return AVERROR(EINVAL);
    }

does anybody have any ideia? :-(


On Tue, Apr 10, 2012 at 1:41 AM, Alex Cohn <alexcohn at netvision.net.il>wrote:

> On Apr 10, 2012 12:08 AM, "Wagner Patriota" <wagner.patriota at gmail.com>
> wrote:
> >
> > What's wrong with my MP4?
> >
> > I am trying to demux a MP4 file with this extra_data:
> >
> 00000001674D400D96528322FF2FFE080007F0A100000303E90000BB80604000825C000412FFF18E302000412E0002097FF8C70ED09128B00000000168E9093520
> >
> > This data was generated by Expression Encoder.
>
> This is annex B already.
>
> BR,.
> Alex
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120411/61767410/attachment.html>


More information about the Libav-user mailing list