id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	blockedby	blocking	reproduced	analyzed
2100	No burned in subtitles visible on Mac OSX	raptor399		"== Summary of the bug ==

Burning in subtitles as described in the [http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20burn%20subtitles%20into%20the%20video 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 [http://ffmpeg.org/pipermail/ffmpeg-user/2012-September/009836.html reported] on the ffmpeg-user mailinglist, alas no answer there.

== How to reproduce ==

Downloaded the [http://www.evermeet.cx/ffmpeg/snapshots/ 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.

== Side note ==
On a perhaps related side note: as reported in [https://ffmpeg.org/trac/ffmpeg/ticket/1688 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:

{{{
% LCTYPE=""en_US.UTF-8""
}}}

I'm not sure this is related to the non-appearing burned in subtitles, but I thought I should mention it."	defect	closed	normal	avfilter	git-master	invalid					0	0
