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

Andrey Derevyagin 2derand at gmail.com
Thu Sep 20 12:59:02 CEST 2012


>
> Le jour de la Raison, an CCXX, Andrey Derevyagin a écrit :
> > 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.
>
> If you set "-loglevel debug", do you see ASS-related messages?
>
> Ok, full log you can see at http://pastebin.com/qJfWHT7n

my log:

[Parsed_ass_0 @ 0x7fb27840e200] Raster: FreeType 2.4.10
[Parsed_ass_0 @ 0x7fb27840e200] Shaper: FriBidi 0.19.2 (SIMPLE)
[Parsed_ass_0 @ 0x7fb27840e200] Initialized
[Parsed_ass_0 @ 0x7fb27840e200] File size: 2019
[Parsed_ass_0 @ 0x7fb27840e200] Style format: Name, Fontname, Fontsize,
PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic,
Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline,
Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
[Parsed_ass_0 @ 0x7fb27840e200] [0x7fb278410e20] Style:
STD,Georgia,50,&H00FFFFFF,&H00FFFFFF,&H641A1A1E,&H961A1A1E,0,0,0,0,100,100,0,0,1,2,2,2,15,15,25,204
...   loads sub styles
[Parsed_ass_0 @ 0x7fb27840e200] Event format: Layer, Start, End, Style,
Name, MarginL, MarginR, MarginV, Effect, Text
[Parsed_ass_0 @ 0x7fb27840e200] Layer = 0
[Parsed_ass_0 @ 0x7fb27840e200] Start = 0:00:02.69
[Parsed_ass_0 @ 0x7fb27840e200] Duration = 0:00:04.01
[Parsed_ass_0 @ 0x7fb27840e200] Style = STD
[Parsed_ass_0 @ 0x7fb27840e200] Name = 1
[Parsed_ass_0 @ 0x7fb27840e200] MarginL = 0000
[Parsed_ass_0 @ 0x7fb27840e200] MarginR = 0000
[Parsed_ass_0 @ 0x7fb27840e200] MarginV = 0000
[Parsed_ass_0 @ 0x7fb27840e200] Effect =
[Parsed_ass_0 @ 0x7fb27840e200] Text = Эй, Микуру!

... load sub events

[Parsed_ass_0 @ 0x7fb27840e200] Added subtitle file: 'Ga-Rei Zero - 04
(BDRip H264 1280x720)_0_30.ass' (3 styles, 10 events)
[buffer @ 0x7fb2784125a0] Setting entry with key 'video_size' to value
'1280x720'
[buffer @ 0x7fb2784125a0] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x7fb2784125a0] Setting entry with key 'time_base' to value
'1/24000'
[buffer @ 0x7fb2784125a0] Setting entry with key 'pixel_aspect' to value
'1/1'
[buffer @ 0x7fb2784125a0] Setting entry with key 'sws_param' to value
'flags=2'
[buffer @ 0x7fb2784125a0] Setting entry with key 'frame_rate' to value
'24000/1001'
 [graph 0 input from stream 0:0 @ 0x7fb2784123a0] w:1280 h:720
pixfmt:yuv420p tb:1/24000 fr:24000/1001 sar:1/1 sws_param:flags=2
[scaler for output stream 0:0 @ 0x7fb278412e00] w:1280 h:720 fmt:yuv420p
sar:1/1 -> w:1280 h:720 fmt:yuv420p sar:1/1 flags:0x4

...
and coding process, many lines like:

[libx264 @ 0x7fb278831a00] frame=  66 QP=22.68 NAL=0 Slice:B Poc:130 I:0
 P:1689 SKIP:1894 size=3130 bytes
[Parsed_ass_0 @ 0x7fb27840e200] frame copy needed (have perms 5, need 3,
reject 0)


and still don't have subs on video.


When I run this command on my linux server (on this computer ffmpeg adds
subtitle to video) coding looks like:

[libx264 @ 0x29c1140] frame=   8 QP=16.20 NAL=2 Slice:P Poc:16  I:754
 P:2145 SKIP:701  size=13776 bytes
[Parsed_ass_0 @ 0x29b2180] frame copy needed (have perms 5, need 3, reject
4)

reject param diffs
and log have lines:

[Parsed_ass_0 @ 0x29b2180] frame copy needed (have perms 5, need 3, reject
4)
[Parsed_ass_0 @ 0x29b2180] fontconfig: Selected font is not the requested
one: 'DejaVu Sans' != 'Georgia'
[Parsed_ass_0 @ 0x29b2180] Font info: family 'DejaVu Sans', style 'Book',
fullname 'DejaVu Sans', slant 0, weight 80
[Parsed_ass_0 @ 0x29b2180] fontconfig_select: (Georgia, 80, 0) ->
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf, 0
[Parsed_ass_0 @ 0x29b2180] Change happened at time ms:2711.041667


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


More information about the ffmpeg-user mailing list