User Tools

Site Tools


linux:mplayer_utf8

HOWTO SET MPLAYER TO USE UTF8 FONTS

12.03.2009

In your configuration file (~/.mplayer/config) add this:

# Set subtitle file encoding.
unicode=yes
utf8=yes

# set size
subfont-text-scale=3.25

# path to size font
font=/usr/share/fonts/TTF/arial.ttf

Of course, you'll need a character set who support utf8 (e.g. arial.ttf).

If you have subtitles in other encoding than utf8, you must translate the file from whatever encoding you have to utf8 using iconv command.

# example (run iconv -l to see all supported encodings)
iconv -f ISO_8859-2 -t UTF8 input.srt > output.srt

linux/mplayer_utf8.txt · Last modified: 2013/03/16 17:40 (external edit)