Loading subtitle in myplayer(without Chinese messy code)

Assume we have movie.mkv  and movie.sc.ass under some directory

mplayer  -ass -subcp cp936 movie.mkv -sub movie.sc.ass

Notes:

-ass: Turn on SSA/ASS subtitle rendering. With this option, libass will be used for SSA/ASS external subtitles and Matroska tracks. You may also want to use -embeddedfonts. NOTE: Unlike normal OSD, libass uses fontconfig by default. To disable it, use -nofontconfig.

-subcp codepage: Specify the subtitle codepage.
The Chinese character codepages:
936 — GBK Supports Simplified Chinese 简体中文
950 — Supports Traditional Chinese 繁体中文

-sub: Use these subtitle files.

Also we may use sub-fuzziness to automatically load the subtitle file

-sub-fuzziness mode: Adjust matching fuzziness when searching for subtitles:
0 exact match
1 Load all subs containing movie name.
2 Load all subs in the current directory.

 

Reference:

http://www.fclose.com/b/linux/603/mplayer-chinese/

 

 

posted on 2012-12-18 13:36  bian  阅读(34487)  评论(0编辑  收藏  举报

导航