Ticket #2100 (closed defect: invalid)
No burned in subtitles visible on Mac OSX
|Reported by:||raptor399||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug
Burning in subtitles as described in the wiki does not work as advertised on Mac OSX 10.8.2 (Mountain Lion).
FFmpeg will run and convert the video, but no subtitles will be visible in the resulting video. Friends on Linux report the same command line works just fine for them, this appears to be an OSX specific problem.
A similar problem has also been reported on the ffmpeg-user mailinglist, alas no answer there.
How to reproduce
Downloaded the latest snapshot build for OSX and use this command line:
% ffmpeg -v 9 -loglevel 99 -report -i test.avi -vf subtitles=test.srt output.mpg
The file "test.srt" can be a very basic test file:
0 00:00:01,930 --> 00:00:03,800 Just testing subtitles 1 00:00:03,930 --> 00:00:05,300 Second line of subtitles and it is a long line 2 00:00:05,710 --> 00:00:07,320 Third line of subtitles, let's make it count! 3 00:00:07,770 --> 00:00:10,550 Fourth line of subtitles, which is not the last line.
Opening the file "test.avi" with VLC will display the subtitles correctly as it picks up "test.srt" automatically. Opening the converted "output.mpg" with VLC shows no subtitles.
I have tried this with .ass files and the "-vf ass=test.ass" filter, I have tried it with other input and output formats, never have I managed to get subtitles burned in on OSX.
On a perhaps related side note: as reported in ticket #1688, fontconfig will give lots of warnings:
Fontconfig warning: ignoring UTF-8: not a valid region tag Fontconfig warning: ignoring UTF-8: not a valid region tag Fontconfig warning: ignoring UTF-8: not a valid region tag
This happens because of the default locale on OSX:
% locale LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=
To silence these warnings LC_TYPE needs to be set to a valid value in the eyes of fontconfig:
I'm not sure this is related to the non-appearing burned in subtitles, but I thought I should mention it.