[FFmpeg-user] SIGABRT in libavcodec when transcoding ac3 stream

Roger James roger at beardandsandals.co.uk
Thu Dec 15 18:43:30 CET 2011


Hi,

I am trying write a dvd using bombono-dvd which calls ffmpeg to encode 
the DVD. ffmpeg crashes with a SIGABRT  in libavcodec as shown below.

*** glibc detected *** ffmpeg: free(): invalid pointer: 0x09645020 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6ebc2)[0x46ebc2]
/lib/i386-linux-gnu/libc.so.6(+0x6f862)[0x46f862]
/lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0x47294d]
/usr/lib/i686/cmov/libavcodec.so.53(audio_resample+0x42b)[0x126e67b]
ffmpeg[0x804cc56]
ffmpeg[0x80523fe]
ffmpeg[0x804ed47]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x419113]
ffmpeg[0x804ee8d]
======= Memory map: ========


Looking at the ffmpeg log it would appear that it is trying to do an 
unnecessary transcode of the ac3 stream.


ffmpeg -i "/home/roger/Music/channel test/export/dvdoutput.mpg" -target 
pal-dvd -aspect 4:3 -s 676x576 -vf pad=720:576:22:0:black -b 5000k -ab 
320k -y -mbd rd -trellis 2 -cmp 2 -subcmp 2 "/home/roger/Music/channel 
test/export/dvdout/1.dvdoutput.mpg.mpg"
ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav 
developers
   built on Oct  2 2011 15:12:32 with gcc 4.6.1
   configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared 
--disable-static

..... (Conguration wanings removed see below

[mpegts @ 0x90d92a0] max_analyze_duration reached
[NULL @ 0x90de5a0] start time is not set in av_estimate_timings_from_pts
Input #0, mpegts, from '/home/roger/Music/channel 
test/export/dvdoutput.mpg':
   Duration: 00:02:56.93, start: 0.000000, bitrate: 1061 kb/s
   Program 1
     Stream #0.0[0x44]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 
1:1 DAR 5:4], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0.1[0x45](eng): Audio: ac3, 44100 Hz, 5.0, s16, 448 kb/s 
(hearing impaired)
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 
'flt'
[buffer @ 0x90e1780] w:720 h:576 pixfmt:yuv420p
[scale @ 0x90d4420] w:720 h:576 fmt:yuv420p -> w:676 h:576 fmt:yuv420p 
flags:0x4
[pad @ 0x90e08c0] w:676 h:576 -> w:720 h:576 x:22 y:0 color:0x108080FF[yuva]
Output #0, dvd, to '/home/roger/Music/channel 
test/export/dvdout/1.dvdoutput.mpg.mpg':
   Metadata:
     encoder         : Lavf53.2.0
     Stream #0.0: Video: mpeg2video (hq), yuv420p, 720x576 [PAR 16:15 
DAR 4:3], q=2-31, 5000 kb/s, 90k tbn, 25 tbc
     Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.0, flt, 320 kb/s (hearing 
impaired)
Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Input stream #0.1 frame changed from rate:44100 fmt:s16 ch:5 to 
rate:44100 fmt:flt ch:5
Warning, using s16 intermediate sample format for resampling
ERR: ffmpeg failure: broken by signal SIGABRT/SIGIOT

Please somebody correct me if I am wrong but ac3 files are fixed format 
and do not have header information saying that the stream is encoded in 
s16. Is this something that is wrong in the mpeg2 container produced by 
avidemux? Why is ffmpeg trying to transcode the audio stream?

Roger








Full log follows:
===========================================================
ffmpeg -i "/home/roger/Music/channel test/export/dvdoutput.mpg" -target 
pal-dvd -aspect 4:3 -s 676x576 -vf pad=720:576:22:0:black -b 5000k -ab 
320k -y -mbd rd -trellis 2 -cmp 2 -subcmp 2 "/home/roger/Music/channel 
test/export/dvdout/1.dvdoutput.mpg.mpg"
ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav 
developers
   built on Oct  2 2011 15:12:32 with gcc 4.6.1
   configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared 
--disable-static
   WARNING: library configuration mismatch
   avutil      configuration: --extra-version='4:0.7.2-1ubuntu1' 
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared 
--disable-static --disable-ffmpeg --disable-ffplay
   avcodec     configuration: --extra-version='4:0.7.2-1ubuntu1' 
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared 
--disable-static --disable-ffmpeg --disable-ffplay
   avformat    configuration: --extra-version='4:0.7.2-1ubuntu1' 
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared 
--disable-static --disable-ffmpeg --disable-ffplay
   avdevice    configuration: --extra-version='4:0.7.2-1ubuntu1' 
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared 
--disable-static --disable-ffmpeg --disable-ffplay
   avfilter    configuration: --extra-version='4:0.7.2-1ubuntu1' 
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared 
--disable-static --disable-ffmpeg --disable-ffplay
   swscale     configuration: --extra-version='4:0.7.2-1ubuntu1' 
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared 
--disable-static --disable-ffmpeg --disable-ffplay
   postproc    configuration: --extra-version='4:0.7.2-1ubuntu1' 
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm 
--enable-libschroedinger --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc 
--enable-swscale --enable-x11grab --enable-libdc1394 
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared 
--disable-static --disable-ffmpeg --disable-ffplay
   libavutil    51.  7. 0 / 51.  7. 0
   libavcodec   53.  5. 0 / 53.  5. 0
   libavformat  53.  2. 0 / 53.  2. 0
   libavdevice  53.  0. 0 / 53.  0. 0
   libavfilter   2.  4. 0 /  2.  4. 0
   libswscale    2.  0. 0 /  2.  0. 0
   libpostproc  52.  0. 0 / 52.  0. 0
[mpegts @ 0x90d92a0] max_analyze_duration reached
[NULL @ 0x90de5a0] start time is not set in av_estimate_timings_from_pts
Input #0, mpegts, from '/home/roger/Music/channel 
test/export/dvdoutput.mpg':
   Duration: 00:02:56.93, start: 0.000000, bitrate: 1061 kb/s
   Program 1
     Stream #0.0[0x44]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 
1:1 DAR 5:4], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0.1[0x45](eng): Audio: ac3, 44100 Hz, 5.0, s16, 448 kb/s 
(hearing impaired)
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 
'flt'
[buffer @ 0x90e1780] w:720 h:576 pixfmt:yuv420p
[scale @ 0x90d4420] w:720 h:576 fmt:yuv420p -> w:676 h:576 fmt:yuv420p 
flags:0x4
[pad @ 0x90e08c0] w:676 h:576 -> w:720 h:576 x:22 y:0 color:0x108080FF[yuva]
Output #0, dvd, to '/home/roger/Music/channel 
test/export/dvdout/1.dvdoutput.mpg.mpg':
   Metadata:
     encoder         : Lavf53.2.0
     Stream #0.0: Video: mpeg2video (hq), yuv420p, 720x576 [PAR 16:15 
DAR 4:3], q=2-31, 5000 kb/s, 90k tbn, 25 tbc
     Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.0, flt, 320 kb/s (hearing 
impaired)
Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Input stream #0.1 frame changed from rate:44100 fmt:s16 ch:5 to 
rate:44100 fmt:flt ch:5
Warning, using s16 intermediate sample format for resampling
ERR: ffmpeg failure: broken by signal SIGABRT/SIGIOT



More information about the ffmpeg-user mailing list