[MEncoder-users] mencoder asks to "use -absf aac_adtstoasc" - but -absf is an unknown option

Jan Ehrhardt phpdev at ehrhardt.nl
Sun Aug 18 20:00:07 CEST 2013


Dr.O.Muth at habmalnefrage.de in gmane.comp.video.mencoder.user (Sun, 18
Aug 2013 19:31:53 +0200 (CEST)):
>Pos:   0.2s      6f ( 0%)  0.60fps Trem:   0min   0mb  A-V:0.020 [0:0]
>[mp4 @ 0xdf8e40]malformated aac bitstream, use -absf aac_adtstoasc
>Error while writing frame.

I always patch ffmpeg/libavformat/movenc.c as follows, because I once
ran into the same error. The patch is for FFmpeg 2.0, but the idea is clear:

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 42e7c48..635b864 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3194,7 +3194,9 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
             av_log(s, AV_LOG_ERROR, "Malformed AAC bitstream detected: "
                    "use audio bitstream filter 'aac_adtstoasc' to fix it "
                    "('-bsf:a aac_adtstoasc' option with ffmpeg)\n");
+            /* edited: not fatal anymore
             return -1;
+            */
         }
         av_log(s, AV_LOG_WARNING, "aac bitstream error\n");
     }

There light be more places where you have to disable the fatality, for
instance ffmpeg/libavformat/flvenc.c. Grep the sources of ffmpeg, before
you compile MEncoder.

Jan



More information about the MEncoder-users mailing list