[FFmpeg-user] Subtitle corruption in FFMPEG-0.9
Ross Alexander
Ross.Alexander at EMEA.NEC.COM
Tue Dec 13 17:46:18 CET 2011
I'm not sure if this is an issue with just 0.9 since I've only just started looking at it but when I copy a dvdsub stream it is not copying properly (ffprobe doesn't recognise it and totem completely throws it toys). Look at stream 5 in the output (copied from stream 2 in the input file).
mig27 16:09:13$ ffmpeg -i NCIS.03.12.BoxedIn.vob -c:v libx264 -preset fast -tune film -vprofile main -crf 26 -map 0:0 -c:a libfaac -ab 128k -ac 2 -ar 44100 -map 0:11 -c:a libfaac -ab 128k -ac 2 -ar 44100 -map 0:12 -c:a libfaac -ab 128k -ac 2 -ar 44100 -map 0:13 -c:a libfaac -ab 128k -ac 2 -ar 44100 -map 0:14 -c:s copy -map 0:2 -threads 8 -f mp4 -y out/NCIS.03.12.BoxedIn.mp4
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 12 2011 10:19:19 with gcc 4.6.2
configuration: --prefix=/usr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-gpl --enable-shared --enable-postproc --enable-libxvid --enable-pthreads --enable-nonfree --enable-libfaac --enable-libschroedinger --enable-libmp3lame
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mpeg @ 0x97f3ac0] max_analyze_duration 5000000 reached at 5024000
Input #0, mpeg, from 'NCIS.03.12.BoxedIn.vob':
Duration: 00:42:06.33, start: 0.062233, bitrate: 6434 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x20]: Subtitle: dvd_subtitle
Stream #0:2[0x21]: Subtitle: dvd_subtitle
Stream #0:3[0x22]: Subtitle: dvd_subtitle
Stream #0:4[0x23]: Subtitle: dvd_subtitle
Stream #0:5[0x24]: Subtitle: dvd_subtitle
Stream #0:6[0x25]: Subtitle: dvd_subtitle
Stream #0:7[0x26]: Subtitle: dvd_subtitle
Stream #0:8[0x27]: Subtitle: dvd_subtitle
Stream #0:9[0x28]: Subtitle: dvd_subtitle
Stream #0:10[0x29]: Subtitle: dvd_subtitle
Stream #0:11[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:12[0x81]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:13[0x82]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:14[0x83]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
[buffer @ 0x9d8e220] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:64/45 sws_param:
[libx264 @ 0x9806040] using SAR=64/45
[libx264 @ 0x9806040] using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
[libx264 @ 0x9806040] profile Main, level 3.0
[libx264 @ 0x9806040] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:-1:-1 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=26.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out/NCIS.03.12.BoxedIn.mp4':
Metadata:
encoder : Lavf53.24.0
Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 25 tbn, 25 tbc
Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2 channels, s16, 128 kb/s
Stream #0:2: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2 channels, s16, 128 kb/s
Stream #0:3: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2 channels, s16, 128 kb/s
Stream #0:4: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2 channels, s16, 128 kb/s
Stream #0:5: Subtitle: dvd_subtitle ([224][0][0][0] / 0x00E0)
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:11 -> #0:1 (ac3 -> libfaac)
Stream #0:12 -> #0:2 (ac3 -> libfaac)
Stream #0:13 -> #0:3 (ac3 -> libfaac)
Stream #0:14 -> #0:4 (ac3 -> libfaac)
Stream #0:2 -> #0:5 (copy)
Press [q] to stop, [?] for help
Input stream #0:11 frame changed from rate:48000 fmt:s16 ch:6 to rate:48000 fmt:s16 ch:2
frame=63160 fps= 51 q=-1.0 Lsize= 298710kB time=00:41:19.48 bitrate= 986.9kbits/s dup=5 drop=0
video:133391kB audio:157817kB global headers:0kB muxing overhead 2.575851%
[libx264 @ 0x9806040] frame I:1425 Avg QP:22.66 size: 13544
[libx264 @ 0x9806040] frame P:34602 Avg QP:26.15 size: 2590
[libx264 @ 0x9806040] frame B:27133 Avg QP:27.63 size: 1020
[libx264 @ 0x9806040] consecutive B-frames: 29.9% 32.8% 17.1% 20.3%
[libx264 @ 0x9806040] mb I I16..4: 60.7% 0.0% 39.3%
[libx264 @ 0x9806040] mb P I16..4: 5.5% 0.0% 1.2% P16..4: 34.2% 5.7% 3.9% 0.0% 0.0% skip:49.6%
[libx264 @ 0x9806040] mb B I16..4: 3.1% 0.0% 0.1% B16..8: 17.3% 2.2% 0.1% direct: 7.1% skip:70.3% L0:36.2% L1:59.9% BI: 3.9%
[libx264 @ 0x9806040] coded y,uvDC,uvAC intra: 22.7% 52.3% 17.3% inter: 3.4% 14.5% 0.3%
[libx264 @ 0x9806040] i16 v,h,dc,p: 56% 17% 10% 17%
[libx264 @ 0x9806040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 16% 25% 5% 5% 6% 4% 5% 3%
[libx264 @ 0x9806040] i8c dc,h,v,p: 58% 13% 24% 4%
[libx264 @ 0x9806040] Weighted P-Frames: Y:2.8% UV:1.1%
[libx264 @ 0x9806040] ref P L0: 73.6% 26.4%
[libx264 @ 0x9806040] ref B L0: 79.3% 20.7%
[libx264 @ 0x9806040] ref B L1: 96.1% 3.9%
[libx264 @ 0x9806040] kb/s:432.53
ffprobe version 0.9, Copyright (c) 2007-2011 the FFmpeg developers
built on Dec 12 2011 10:19:19 with gcc 4.6.2
configuration: --prefix=/usr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-gpl --enable-shared --enable-postproc --enable-libxvid --enable-pthreads --enable-nonfree --enable-libfaac --enable-libschroedinger --enable-libmp3lame
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8b8dba0] multiple edit list entries, a/v desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'NCIS.03.12.BoxedIn.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.24.0
Duration: 00:42:06.40, start: 0.000000, bitrate: 968 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 432 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream #0:2(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream #0:3(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream #0:4(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream #0:5(und): Data: none ([224][0][0][0] / 0x00E0)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name :
Unsupported codec with id 0 for input stream 5
More information about the ffmpeg-user
mailing list