[FFmpeg-user] Same style in ass while burning in video

Dielson Sales dielsonscarvalho at gmail.com
Fri Jan 17 22:48:14 CET 2014


2014/1/17 Dielson Sales <dielsonscarvalho at gmail.com>

> 2014/1/17 Dielson Sales <dielsonscarvalho at gmail.com>
>
>> Hi guys, I have compiled the last version of ffmpeg today and I am trying
>> to burn the subtitles in the video to watch it in my DVD, but the style is
>> always the same, no matter what modifications I do in the .ass file.
>>
>> Here is my command line and the output:
>>
>> $ ~/bin/ffmpeg -i
>> Where.the.Wild.Things.Are.UNRATED.2009.720p.BrRip.x264.BOKUTOX.YIFY.mp4 -f
>> avi -r 29.97 -c:v mpeg4 -vtag XVID -vf scale=640:272,ass=subtitle.ass
>> -aspect 2.35 -maxrate 1800k -b:v 1500k -qmin 3 -qmax 5 -bufsize 1500k -mbd
>> 2 -trellis 1 -flags +aic -cmp 2 -subcmp 2 -g 300 -acodec libmp3lame -ar
>> 48000 -b:a 128k -ac 2 -t 00:02:00 teste.avi
>>
>> ffmpeg version git-2014-01-17-3ca7085 Copyright (c) 2000-2014 the FFmpeg
>> developers
>>   built on Jan 17 2014 02:49:42 with gcc 4.8 (Ubuntu/Linaro
>> 4.8.1-10ubuntu9)
>>   configuration: --prefix=/home/dielson/ffmpeg_build
>> --extra-cflags=-I/home/dielson/ffmpeg_build/include
>> --extra-ldflags=-L/home/dielson/ffmpeg_build/lib --bindir=/home/dielson/bin
>> --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
>> --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
>> --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
>>   libavutil      52. 62.100 / 52. 62.100
>>   libavcodec     55. 48.101 / 55. 48.101
>>   libavformat    55. 23.103 / 55. 23.103
>>   libavdevice    55.  5.102 / 55.  5.102
>>   libavfilter     4.  1.100 /  4.  1.100
>>   libswscale      2.  5.101 /  2.  5.101
>>   libswresample   0. 17.104 /  0. 17.104
>>   libpostproc    52.  3.100 / 52.  3.100
>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
>> 'Where.the.Wild.Things.Are.UNRATED.2009.720p.BrRip.x264.BOKUTOX.YIFY.mp4':
>>   Metadata:
>>     major_brand     : isom
>>     minor_version   : 1
>>     compatible_brands: isomavc1
>>     creation_time   : 2013-02-28 07:22:32
>>   Duration: 01:41:01.97, start: 0.000000, bitrate: 900 kb/s
>>     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
>> 1280x528 [SAR 1:1 DAR 80:33], 806 kb/s, 23.98 fps, 23.98 tbr, 24k tbn,
>> 47.95 tbc (default)
>>     Metadata:
>>       creation_time   : 2013-02-28 07:22:32
>>       handler_name    :
>> the.Wild.Things.Are.UNRATED.1080p.BrRip.x264.BOKUTOX.YIFY.mkv.264#trackID=1:fps=23.976 at GPAC0.5.1-DEV-rev4283
>>     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
>> fltp, 92 kb/s (default)
>>     Metadata:
>>       creation_time   : 2013-02-28 01:14:05
>>       handler_name    : Sound Media Handler
>> [Parsed_ass_1 @ 0xa42e080] Added subtitle file: 'subtitle.ass' (2 styles,
>> 996 events)
>> [mpeg4 @ 0xa42d1e0] Invalid pixel aspect ratio 799/800, limit is 255/255
>> reducing
>> Output #0, avi, to 'teste.avi':
>>   Metadata:
>>     major_brand     : isom
>>     minor_version   : 1
>>     compatible_brands: isomavc1
>>     ISFT            : Lavf55.23.103
>>     Stream #0:0(und): Video: mpeg4 (XVID / 0x44495658), yuv420p, 640x272
>> [SAR 1:1 DAR 40:17], q=3-5, 1500 kb/s, SAR 799:800 DAR 47:20, 29.97 tbn,
>> 29.97 tbc (default)
>>     Metadata:
>>       creation_time   : 2013-02-28 07:22:32
>>       handler_name    :
>> the.Wild.Things.Are.UNRATED.1080p.BrRip.x264.BOKUTOX.YIFY.mkv.264#trackID=1:fps=23.976 at GPAC0.5.1-DEV-rev4283
>>     Stream #0:1(und): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055),
>> 48000 Hz, stereo, fltp, 128 kb/s (default)
>>     Metadata:
>>       creation_time   : 2013-02-28 01:14:05
>>       handler_name    : Sound Media Handler
>> Stream mapping:
>>   Stream #0:0 -> #0:0 (h264 -> mpeg4)
>>   Stream #0:1 -> #0:1 (aac -> libmp3lame)
>> Press [q] to stop, [?] for help
>> [Parsed_ass_1 @ 0xa42e080] Neither PlayResX nor PlayResY defined.
>> Assuming 384x288
>> frame=   67 fps=0.0 q=2.0 size=      65kB time=00:00:02.90 bitrate=
>> 182.8kbits/sframe=  133 fps=133 q=2.0 size=     117kB time=00:00:05.80
>> bitrate= 164.7kbits/sframe=  184 fps=122 q=2.0 size=     252kB
>> time=00:00:07.84 bitrate= 263.0kbits/sframe=  232 fps=116 q=2.0 size=
>> 332kB time=00:00:10.08 bitrate= 269.6kbits/sframe=  283 fps=113 q=2.0
>> size=     487kB time=00:00:11.92 bitrate= 334.2kbits/sframe=  338 fps=112
>> q=2.0 size=     605kB time=00:00:14.23 bitrate= 348.2kbits/sframe=  393
>> fps=112 q=2.0 size=     711kB time=00:00:16.80 bitrate= 346.8kbits/sframe=
>> 451 fps=112 q=2.0 size=     815kB time=00:00:19.24 bitrate=
>> 346.9kbits/sframe=  513 fps=114 q=2.0 size=     904kB time=00:00:21.52
>> bitrate= 344.0kbits/sframe=  558 fps=111 q=2.0 size=    1054kB
>> time=00:00:23.39 bitrate= 369.1kbits/sframe=  591 fps=107 q=2.0 size=
>> 1253kB time=00:00:25.10 bitrate= 408.9kbits/sframe=  624 fps=103 q=2.0
>> size=    1489kB time=00:00:26.12 bitrate= 466.9kbits/sframe=  645 fps= 98
>> q=2.0 size=    1632kB time=00:00:27.02 bitrate= 494.6kbits/sframe=  678
>> fps= 96 q=2.0 size=    1864kB time=00:00:28.41 bitrate= 537.5kbits/sframe=
>> 709 fps= 94 q=2.0 size=    2106kB time=00:00:29.78 bitrate=
>> 579.2kbits/sframe=  741 fps= 92 q=2.0 size=    2352kB time=00:00:31.17
>> bitrate= 618.1kbits/sframe=  774 fps= 90 q=2.0 size=    2591kB
>> time=00:00:32.54 bitrate= 652.2kbits/sframe=  806 fps= 89 q=2.0 size=
>> 2859kB time=00:00:33.91 bitrate= 690.7kbits/sframe=  839 fps= 87 q=2.0
>> size=    3160kB time=00:00:35.28 bitrate= 733.6kbits/sframe=  872 fps= 86
>> q=2.0 size=    3448kB time=00:00:36.67 bitrate= 770.3kbits/sframe=  906
>> fps= 85 q=2.0 size=    3714kB time=00:00:38.04 bitrate= 799.9kbits/sframe=
>> 941 fps= 85 q=2.0 size=    3978kB time=00:00:39.43 bitrate=
>> 826.4kbits/sframe=  976 fps= 84 q=2.0 size=    4213kB time=00:00:40.80
>> bitrate= 845.8kbits/sframe= 1012 fps= 83 q=2.0 size=    4482kB
>> time=00:00:42.62 bitrate= 861.3kbits/sframe= 1048 fps= 83 q=2.0 size=
>> 4756kB time=00:00:44.01 bitrate= 885.1kbits/s[Parsed_ass_1 @ 0xa42e080]
>> fontconfig: Selected font is not the requested one: 'Liberation Sans Bold'
>> != 'Arial'
>> frame= 1090 fps= 83 q=2.0 size=    4926kB time=00:00:45.84 bitrate=
>> 880.3kbits/sframe= 1144 fps= 84 q=2.0 size=    4975kB time=00:00:48.14
>> bitrate= 846.5kbits/sframe= 1202 fps= 85 q=2.0 size=    5090kB
>> time=00:00:50.42 bitrate= 826.9kbits/sframe= 1240 fps= 85 q=2.0 size=
>> 5295kB time=00:00:52.17 bitrate= 831.4kbits/sframe= 1281 fps= 84 q=2.0
>> size=    5438kB time=00:00:53.66 bitrate= 830.1kbits/sframe= 1317 fps= 84
>> q=2.0 size=    5631kB time=00:00:55.32 bitrate= 833.9kbits/sframe= 1349
>> fps= 83 q=2.0 size=    5998kB time=00:00:56.40 bitrate= 871.3kbits/sframe=
>> 1363 fps= 82 q=3.5 size=    6112kB time=00:00:57.31 bitrate=
>> 873.6kbits/sframe= 1376 fps= 80 q=3.5 size=    6218kB time=00:00:57.76
>> bitrate= 881.8kbits/sframe= 1387 fps= 78 q=3.5 size=    6306kB
>> time=00:00:58.24 bitrate= 886.8kbits/sframe= 1400 fps= 77 q=4.4 size=
>> 6410kB time=00:00:58.68 bitrate= 894.9kbits/sframe= 1407 fps= 75 q=3.5
>> size=    6464kB time=00:00:59.16 bitrate= 895.1kbits/sframe= 1415 fps= 73
>> q=3.5 size=    6526kB time=00:00:59.16 bitrate= 903.7kbits/sframe= 1426
>> fps= 72 q=2.0 size=    6601kB time=00:00:59.61 bitrate= 907.0kbits/sframe=
>> 1443 fps= 71 q=2.0 size=    6682kB time=00:01:00.52 bitrate=
>> 904.4kbits/sframe= 1466 fps= 70 q=2.0 size=    6788kB time=00:01:01.44
>> bitrate= 905.0kbits/sframe= 1493 fps= 70 q=1.6 size=    7074kB
>> time=00:01:02.44 bitrate= 928.0kbits/sframe= 1520 fps= 70 q=2.0 size=
>> 7347kB time=00:01:03.74 bitrate= 944.2kbits/sframe= 1536 fps= 69 q=2.0
>> size=    7480kB time=00:01:04.20 bitrate= 954.4kbits/sframe= 1547 fps= 68
>> q=2.7 size=    7570kB time=00:01:04.65 bitrate= 959.2kbits/sframe= 1561
>> fps= 67 q=3.5 size=    7679kB time=00:01:05.56 bitrate= 959.3kbits/sframe=
>> 1576 fps= 66 q=3.5 size=    7800kB time=00:01:06.02 bitrate=
>> 967.9kbits/sframe= 1592 fps= 65 q=3.5 size=    7929kB time=00:01:06.50
>> bitrate= 976.7kbits/sframe= 1610 fps= 64 q=3.5 size=    8072kB
>> time=00:01:07.41 bitrate= 980.8kbits/sframe= 1624 fps= 64 q=3.5 size=
>> 8183kB time=00:01:07.87 bitrate= 987.7kbits/sframe= 1656 fps= 64 q=2.0
>> size=    8294kB time=00:01:09.24 bitrate= 981.3kbits/sframe= 1694 fps= 64
>> q=2.0 size=    8440kB time=00:01:11.08 bitrate= 972.6kbits/sframe= 1735
>> fps= 64 q=2.0 size=    8562kB time=00:01:12.48 bitrate= 967.7kbits/sframe=
>> 1778 fps= 64 q=2.0 size=    8665kB time=00:01:14.28 bitrate=
>> 955.6kbits/sframe= 1818 fps= 65 q=2.0 size=    8829kB time=00:01:16.12
>> bitrate= 950.1kbits/sframe= 1858 fps= 65 q=2.0 size=    8967kB
>> time=00:01:17.95 bitrate= 942.3kbits/sframe= 1900 fps= 65 q=2.0 size=
>> 9113kB time=00:01:19.34 bitrate= 940.9kbits/sframe= 1944 fps= 66 q=2.0
>> size=    9258kB time=00:01:21.31 bitrate= 932.7kbits/sframe= 1979 fps= 66
>> q=2.0 size=    9512kB time=00:01:23.01 bitrate= 938.7kbits/sframe= 2010
>> fps= 66 q=2.0 size=    9827kB time=00:01:23.95 bitrate= 958.9kbits/sframe=
>> 2043 fps= 66 q=2.0 size=   10107kB time=00:01:25.32 bitrate=
>> 970.4kbits/sframe= 2075 fps= 66 q=2.0 size=   10365kB time=00:01:26.68
>> bitrate= 979.5kbits/sframe= 2116 fps= 66 q=2.0 size=   10552kB
>> time=00:01:28.51 bitrate= 976.6kbits/sframe= 2157 fps= 66 q=2.0 size=
>> 10723kB time=00:01:30.33 bitrate= 972.4kbits/sframe= 2197 fps= 66 q=2.0
>> size=   10921kB time=00:01:31.75 bitrate= 975.0kbits/sframe= 2230 fps= 66
>> q=2.0 size=   11209kB time=00:01:33.12 bitrate= 986.0kbits/sframe= 2263
>> fps= 66 q=2.0 size=   11507kB time=00:01:34.87 bitrate= 993.6kbits/sframe=
>> 2301 fps= 66 q=2.0 size=   11673kB time=00:01:36.31 bitrate=
>> 992.9kbits/sframe= 2337 fps= 66 q=2.0 size=   11814kB time=00:01:37.68
>> bitrate= 990.8kbits/sframe= 2378 fps= 67 q=2.0 size=   11971kB
>> time=00:01:39.52 bitrate= 985.3kbits/sframe= 2425 fps= 67 q=2.0 size=
>> 12056kB time=00:01:41.35 bitrate= 974.4kbits/sframe= 2465 fps= 67 q=2.0
>> size=   12145kB time=00:01:43.20 bitrate= 964.1kbits/sframe= 2502 fps= 67
>> q=2.0 size=   12245kB time=00:01:44.56 bitrate= 959.3kbits/sframe= 2548
>> fps= 68 q=2.0 size=   12342kB time=00:01:46.41 bitrate= 950.1kbits/sframe=
>> 2593 fps= 68 q=2.0 size=   12433kB time=00:01:48.52 bitrate=
>> 938.5kbits/sframe= 2631 fps= 68 q=2.0 size=   12545kB time=00:01:50.08
>> bitrate= 933.5kbits/sframe= 2674 fps= 68 q=2.0 size=   12674kB
>> time=00:01:51.91 bitrate= 927.8kbits/sframe= 2712 fps= 68 q=2.0 size=
>> 12802kB time=00:01:53.28 bitrate= 925.8kbits/sframe= 2741 fps= 68 q=2.0
>> size=   12986kB time=00:01:54.67 bitrate= 927.7kbits/sframe= 2769 fps= 68
>> q=2.0 size=   13145kB time=00:01:55.75 bitrate= 930.3kbits/sframe= 2801
>> fps= 68 q=2.0 size=   13318kB time=00:01:56.95 bitrate= 932.9kbits/sframe=
>> 2831 fps= 68 q=2.0 size=   13565kB time=00:01:58.34 bitrate=
>> 939.0kbits/sframe= 2860 fps= 68 q=2.0 size=   13895kB time=00:01:59.71
>> bitrate= 950.9kbits/sframe= 2875 fps= 67 q=3.5 size=   13996kB
>> time=-577014:-32:-22.-77 bitrate=N/A  frame= 2875 fps= 67 q=3.5 Lsize=
>> 14153kB time=00:02:00.02 bitrate= 966.0kbits/s
>> video:12065kB audio:1875kB subtitle:0 global headers:0kB muxing overhead
>> 1.526702%
>>
>
>
>
> I've installed the packages gsfonts-x11 and otfbdf and the error
> "fontconfig: Selected font is not the requested one" disappeared, but still
> no styles in the video.
>



Already found the problem. For some reason, ffmpeg had not converted the
subtitle from srt to ass right. The subtitles had to have:

Format: Layer, Start, End, Style, Text

But the ass generated by ffmpeg only had

Format: Layer, Start, End, Text

It seems it is now converting right.


More information about the ffmpeg-user mailing list