ffmpeg -i aborts abnormally
Posted: Sat Jul 16, 2011 6:13 am
Hey guys,
Just been trying to rewrap some MKVs to play on a PS3 when I stumbled upon a strange ffmpeg behaviour.
ffmpeg -i delivers:
Reproducing the FFMPEG call from the Serviio log delivers:
ffmpeg -i xxx.mkv -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts transcoding-temp-48-MPEG2TS.stf
Please let me know how to proceed here.
Ohh, and Serviio r0cks!
Just been trying to rewrap some MKVs to play on a PS3 when I stumbled upon a strange ffmpeg behaviour.
ffmpeg -i delivers:
- Code:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/opt/cross-project/arm/marvell/arm-none-linux-gnueabi/libc/marvell-f/usr --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --disable-static --enable-shared --arch=arm --disable-optimizations
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Apr 27 2011 02:20:22, gcc: 4.2.1
Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001)
Input #0, matroska, from 'mhd-wanted-720.mkv':
Duration: 01:50:00.51, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 1280x560, PAR 1:1 DAR 16:7, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(ger): Audio: dca, 48000 Hz, 5.1, s16
Stream #0.2(ger): Subtitle: 0x0000
Stream #0.3(ger): Subtitle: 0x0000
At least one output file must be specified
Reproducing the FFMPEG call from the Serviio log delivers:
ffmpeg -i xxx.mkv -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts transcoding-temp-48-MPEG2TS.stf
- Code:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/opt/cross-project/arm/marvell/arm-none-linux-gnueabi/libc/marvell-f/usr --enable-cr oss-compile --cross-prefix=arm-none-linux-gnueabi- --disable-static --enable-shared --arch=arm --disable-optim izations
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Apr 27 2011 02:20:22, gcc: 4.2.1
Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001)
Input #0, matroska, from 'xxx.mkv':
Duration: 01:50:00.51, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 1280x560, PAR 1:1 DAR 16:7, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(ger): Audio: dca, 48000 Hz, 5.1, s16
Stream #0.2(ger): Subtitle: 0x0000
Stream #0.3(ger): Subtitle: 0x0000
Output #0, mpegts, to 'transcoding-temp-48-MPEG2TS.stf':
Stream #0.0: Video: 0x0000, yuv420p, 1280x560 [PAR 1:1 DAR 16:7], q=2-31, 90k tbn, 1k tbc
Stream #0.1(ger): Audio: ac3, 48000 Hz, 5.1, s16, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpegts @ 0x223400]h264 bitstream malformated
*** glibc detected *** ffmpeg: double free or corruption (!prev): 0x0008c450 ***
======= Backtrace: =========
/lib/libc.so.6[0x40b38000]
/lib/libc.so.6[0x40b390ac]
/lib/libc.so.6(cfree+0x164)[0x40b39758]
/usr/lib/libavutil.so.49(av_free+0x28)[0x409f2ed0]
/usr/lib/libavformat.so.52(av_destruct_packet+0x24)[0x4004a404]
/usr/lib/libavformat.so.52[0x4004a690]
/usr/lib/libavformat.so.52(av_interleaved_write_frame+0x160)[0x40054e88]
ffmpeg(vfprintf+0xc84)[0xbd14]
ffmpeg(vfprintf+0x1be0)[0xcc70]
ffmpeg[0x10020]
ffmpeg[0x1396c]
ffmpeg(main+0x1a4)[0x19668]
/lib/libc.so.6(__libc_start_main+0x1bc)[0x40ade924]
ffmpeg(fputs+0x34)[0xb1c0]
======= Memory map: ========
00008000-00022000 r-xp 00000000 09:0d 28017 /mnt/ext/opt/ffmpeg/usr/bin/ffmpeg
00029000-0002a000 rwxp 00019000 09:0d 28017 /mnt/ext/opt/ffmpeg/usr/bin/ffmpeg
0002a000-004ba000 rwxp 00000000 00:00 0 [heap]
40000000-4001d000 r-xp 00000000 01:00 110 /lib/ld-2.5.so
4001d000-4001e000 rwxp 00000000 00:00 0
40023000-40024000 rwxp 00000000 00:00 0
40024000-40026000 rwxp 0001c000 01:00 110 /lib/ld-2.5.so
40026000-4002e000 r-xp 00000000 09:0d 28022 /mnt/ext/opt/ffmpeg/usr/lib/libavdevice.so.52
4002e000-40035000 ---p 00008000 09:0d 28022 /mnt/ext/opt/ffmpeg/usr/lib/libavdevice.so.52
40035000-40036000 rwxp 00007000 09:0d 28022 /mnt/ext/opt/ffmpeg/usr/lib/libavdevice.so.52
40036000-4010d000 r-xp 00000000 09:0d 28024 /mnt/ext/opt/ffmpeg/usr/lib/libavformat.so.52
4010d000-40114000 ---p 000d7000 09:0d 28024 /mnt/ext/opt/ffmpeg/usr/lib/libavformat.so.52
40114000-40119000 rwxp 000d6000 09:0d 28024 /mnt/ext/opt/ffmpeg/usr/lib/libavformat.so.52
40119000-40165000 rwxp 00000000 00:00 0
40165000-406ce000 r-xp 00000000 09:0d 28020 /mnt/ext/opt/ffmpeg/usr/lib/libavcodec.so.52
406ce000-406d6000 ---p 00569000 09:0d 28020 /mnt/ext/opt/ffmpeg/usr/lib/libavcodec.so.52
406d6000-406dd000 rwxp 00569000 09:0d 28020 /mnt/ext/opt/ffmpeg/usr/lib/libavcodec.so.52
406dd000-409e9000 rwxp 00000000 00:00 0
409e9000-409fa000 r-xp 00000000 09:0d 28026 /mnt/ext/opt/ffmpeg/usr/lib/libavutil.so.49
409fa000-40a02000 ---p 00011000 09:0d 28026 /mnt/ext/opt/ffmpeg/usr/lib/libavutil.so.49
40a02000-40a03000 rwxp 00011000 09:0d 28026 /mnt/ext/opt/ffmpeg/usr/lib/libavutil.so.49
40a03000-40a06000 rwxp 00000000 00:00 0
40a06000-40aad000 r-xp 00000000 01:00 69 /lib/libm-2.5.so
40aad000-40ab4000 ---p 000a7000 01:00 69 /lib/libm-2.5.so
40ab4000-40ab5000 r-xp 000a6000 01:00 69 /lib/libm-2.5.so
40ab5000-40ab6000 rwxp 000a7000 01:00 69 /lib/libm-2.5.so
40ab6000-40ac2000 r-xp 00000000 01:00 25 /lib/libgcc_s.so.1
40ac2000-40ac9000 ---p 0000c000 01:00 25 /lib/libgcc_s.so.1
40ac9000-40aca000 rwxp 0000b000 01:00 25 /lib/libgcc_s.so.1
40aca000-40bf1000 r-xp 00000000 01:00 109 /lib/libc-2.5.so
40bf1000-40bf8000 ---p 00127000 01:00 109 /lib/libc-2.5.so
40bf8000-40bf9000 r-xp 00126000 01:00 109 /lib/libc-2.5.so
40bf9000-40bfb000 rwxp 00127000 01:00 109 /lib/libc-2.5.so
40bfb000-40bfe000 rwxp 00000000 00:00 0
40bfe000-40c11000 r-xp 00000000 01:00 28 /lib/libz.so.1.2.2
40c11000-40c18000 ---p 00013000 01:00 28 /lib/libz.so.1.2.2
40c18000-40c19000 rwxp 00012000 01:00 28 /lib/libz.so.1.2.2
40c19000-40c1b000 r-xp 00000000 01:00 112 /lib/libdl-2.5.so
40c1b000-40c22000 ---p 00002000 01:00 112 /lib/libdl-2.5.so
40c22000-40c23000 r-xp 00001000 01:00 112 /lib/libdl-2.5.so
40c23000-40c24000 rwxp 00002000 01:00 112 /lib/libdl-2.5.so
40c24000-4106c000 rwxp 00000000 00:00 0
bef1d000-bef37000 rwxp 00000000 00:00 0 [stack]
Aborted
Please let me know how to proceed here.
Ohh, and Serviio r0cks!