[FFmpeg-user] libass don't add subtitles on Mac OS X

Andrey Derevyagin 2derand at gmail.com
Wed Sep 19 22:52:03 CEST 2012


Hi,

OS: Mac OS X 10.8.1
I compiled static ffmpeg with libass library. When I try convert video with
subtitle ffmpeg converts with no errors but without subs on video.

command:
*$ ffmpeg -y -i Ga-Rei\ Zero\ -\ 04\ \(BDRip\ H264\ 1280x720\)_0_30.mp4
-map 0:0 -an -vcodec libx264 -crf 18 -s 1280x720 -refs 6 -threads 4
-partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 12 -trellis
1 -coder 1 -me_range 32 -level 4.1 -profile:v high -bf 12 -vf "ass=Ga-Rei\
Zero\ -\ 04\ \(BDRip\ H264\ 1280x720\)_0_30.ass" -r 23.976 ./ga_rey_04.mp4*
*
*
my output (http://pastebin.com/VxpBTEuZ):

*ffmpeg version N-44459-g8bdba0b Copyright (c) 2000-2012 the FFmpeg
developers*
*  built on Sep 19 2012 23:09:42 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
*
*  configuration: --enable-gpl --enable-version3 --enable-nonfree
--disable-shared --enable-static --disable-ffplay --disable-ffprobe
--disable-ffserver --disable-network --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libfreetype --enable-libass --enable-fontconfig
--enable-libopenjpeg --enable-libspeex --enable-libxvid --enable-libvpx
--enable-openssl --enable-postproc --target-os=darwin --arch=i386
--prefix=/usr/local --extra-ldflags=-liconv*
*  libavutil      51. 73.100 / 51. 73.100*
*  libavcodec     54. 55.100 / 54. 55.100*
*  libavformat    54. 27.100 / 54. 27.100*
*  libavdevice    54.  2.100 / 54.  2.100*
*  libavfilter     3. 16.103 /  3. 16.103*
*  libswscale      2.  1.101 /  2.  1.101*
*  libswresample   0. 15.100 /  0. 15.100*
*  libpostproc    52.  0.100 / 52.  0.100*
*Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ga-Rei Zero - 04 (BDRip H264
1280x720)_0_30.mp4':*
*  Metadata:*
*    major_brand     : isom*
*    minor_version   : 1*
*    compatible_brands: isom*
*    creation_time   : 2012-06-24 19:23:33*
*  Duration: 00:00:30.03, start: 0.000000, bitrate: 1250 kb/s*
*    Stream #0:0(jpn): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 1065 kb/s, 23.98 fps, 23.98 tbr, 24k tbn,
47.95 tbc*
*    Metadata:*
*      creation_time   : 2010-07-30 01:31:50*
*      handler_name    : [QTS] Ga-Rei -Zero- ep 04_BD*
*    Stream #0:1(jpn): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
s16, 181 kb/s*
*    Metadata:*
*      creation_time   : 2010-07-30 01:32:14*
*      handler_name    : Japanese Audio 2.0ch*
*[Parsed_ass_0 @ 0x7faf21c0e0c0] Added subtitle file: 'Ga-Rei Zero - 04
(BDRip H264 1280x720)_0_30.ass' (11 styles, 10 events)*
*[libx264 @ 0x7faf22031a00] using SAR=1/1*
*[libx264 @ 0x7faf22031a00] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2 AVX*
*[libx264 @ 0x7faf22031a00] profile High, level 4.1*
*[libx264 @ 0x7faf22031a00] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC
codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options:
cabac=1 ref=6 deblock=1:0:0 analyse=0x3:0x133 me=hex subme=9 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=12 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00*
*Output #0, mp4, to './ga_rey_04.mp4':*
*  Metadata:*
*    major_brand     : isom*
*    minor_version   : 1*
*    compatible_brands: isom*
*    encoder         : Lavf54.27.100*
*    Stream #0:0(jpn): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2997 tbn, 23.98 tbc*
*    Metadata:*
*      creation_time   : 2010-07-30 01:31:50*
*      handler_name    : [QTS] Ga-Rei -Zero- ep 04_BD*
*Stream mapping:*
*  Stream #0:0 -> #0:0 (h264 -> libx264)*
*Press [q] to stop, [?] for help*
*frame=  723 fps= 16 q=32686.0 Lsize=    3545kB time=00:00:30.07 bitrate=
965.7kbits/s dup=3 drop=0    *
*video:3537kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.214252%*
*[libx264 @ 0x7faf22031a00] frame I:6     Avg QP:11.71  size: 43131*
*[libx264 @ 0x7faf22031a00] frame P:165   Avg QP:14.90  size: 14772*
*[libx264 @ 0x7faf22031a00] frame B:552   Avg QP:18.00  size:  1676*
*[libx264 @ 0x7faf22031a00] consecutive B-frames:  5.9%  4.1%  2.1%  9.4%
17.3% 24.1% 30.0%  4.4%  1.2%  1.4%  0.0%  0.0%  0.0%*
*[libx264 @ 0x7faf22031a00] mb I  I16..4: 40.2% 43.5% 16.2%*
*[libx264 @ 0x7faf22031a00] mb P  I16..4:  2.2%  4.8%  1.4%  P16..4: 36.9%
10.5%  7.4%  0.2%  0.1%    skip:36.5%*
*[libx264 @ 0x7faf22031a00] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 23.7%
 1.0%  0.1%  direct: 0.8%  skip:74.1%  L0:48.9% L1:48.1% BI: 3.0%*
*[libx264 @ 0x7faf22031a00] 8x8 transform intra:52.2% inter:72.0%*
*[libx264 @ 0x7faf22031a00] coded y,uvDC,uvAC intra: 52.9% 42.5% 21.6%
inter: 5.8% 5.6% 0.4%*
*[libx264 @ 0x7faf22031a00] i16 v,h,dc,p: 47% 21%  5% 26%*
*[libx264 @ 0x7faf22031a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 14% 15%  7%
10%  9%  9%  9% 10%*
*[libx264 @ 0x7faf22031a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16%  9% 10%  9%
15% 13% 10%  9%  8%*
*[libx264 @ 0x7faf22031a00] i8c dc,h,v,p: 59% 21% 15%  6%*
*[libx264 @ 0x7faf22031a00] Weighted P-Frames: Y:8.5% UV:7.9%*
*[libx264 @ 0x7faf22031a00] ref P L0: 56.3%  5.1% 19.5%  7.7%  6.0%  4.5%
 0.7%  0.0%*
*[libx264 @ 0x7faf22031a00] ref B L0: 75.4% 14.9%  6.9%  2.0%  0.8%*
*[libx264 @ 0x7faf22031a00] ref B L1: 89.9% 10.1%*
*[libx264 @ 0x7faf22031a00] kb/s:960.80*


file with video you can download from http://rghost.net/40467580

also, when I run this command on my Ubuntu machine ffmpeg add subtitles
correctly.


More information about the ffmpeg-user mailing list