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: 2011/11/25 10:45 (external edit)
Email address
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki