Vietnamese subtitle with mplayer

In the most case, when you watch video in mplayer with vietnamese subtitle,you'll meet this error :
SUB: Could not determine file format
Let's type this command :

file subfile
0oH, it show :
spread.srt: Little-endian UTF-16 Unicode English text, with CRLF, CR line terminators

Reason of this problem is subtitle file in UTF-16 , mplayer only play with UTF-8. Okie, we'll use the tool iconv , power tool to convert sub file to UTF-8

iconv -f UTF-16 -t UTF-8 fileneedconvert > filenew
Now, play your video with command :

mplayer -utf8 -sub subfile videofile
If sub don't show correct font, use option -font "path/to/font" .

No comments:

Post a Comment