I understand that if re-encoding with no b-frames is correct for mpeg4 than there should be no warning at all. When I get a few gigabytes log per hour than it's no just warning. Is there a possibility to suppress these warnings other than library code modification? Can I access somechow pict_type field in AVCodecParserContext and modify it so that warning is not triggered?
Marcin Od: "Alex Cohn" <[email protected]> Do: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter." <[email protected]>; Wysłane: 0:15 Piątek 2013-10-18 Temat: Re: [Libav-user] mpeg4 encoding with no b-frames > The ffmpeg mpeg4 encoder was designed to preserve b-frames as in > input. It warns you that these frames will be rearranged. It's just a > warning. > > BR, > Alex Cohn > > On Thu, Oct 17, 2013 at 11:42 AM, marcin_ffmpeg > wrote: > > > > Dear All > > > > In my application I'm trying to re-encode video from h264 to mpeg4. It is > > important to have no b-frames in the output file so I set > > encoder context to max_b_frames=0, gop_size is fixed to 25. > > With this setting I get loads of following warnings > > [mpeg4 @ 0xa53f3620] warning, too many b frames in a row > > > > Problem does not exists when encoder gop_size is set to decoder gop_size > > and max_b_frames is set to 10. > > > > Is there something what can be done about that? Does frame after decoding > > from h264 have to be somehow converted? > > > > Thanks for any help > > Marcin > > _______________________________________________ > > Libav-user mailing list > > [email protected] > > http://ffmpeg.org/mailman/listinfo/libav-user > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
