[已解决]mplayer 加载 UTF-8字幕中文有些乱码有些正常,GBK字幕正常

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
haiweiyangsink
帖子: 68
注册时间: 2008-07-18 9:12
来自: 计算机系
送出感谢: 0
接收感谢: 0

[已解决]mplayer 加载 UTF-8字幕中文有些乱码有些正常,GBK字幕正常

#1

帖子 haiweiyangsink » 2008-07-19 0:49

看 《老无所依》,字幕为utf-8格式中文字幕,用mplayer播放,有一些字是乱码,大部分字正常,很奇怪

把 字幕格式 另存为 GBK 格式,一切正常了,我在网上还没有搜索到这种情况呢

真费解啊,有人知道吗


已解决,mplayer 就是只认 GB18030的 中文字幕,手动另存为GB18030编码即可


代码: 全选

# Write your default config options here!

font=/usr/share/fonts/truetype/arphic/ukai.ttc
subcp=cp936

代码: 全选

enable_audio_equ = "yes"
vo_driver = "xv"
vo_panscan = "0.000000"
vo_doublebuffering = "yes"
vo_direct_render = "no"
vo_dxr3_device = "/dev/em8300-0"
v_framedrop = "1"
v_flip = "0"
v_ni = "no"
v_idx = "-1"
vf_pp = "no"
vf_autoq = "0"
vf_lavc = "no"
ao_driver = "oss"
ao_volnorm = "yes"
softvol = "yes"
ao_surround = "no"
ao_extra_stereo = "no"
ao_extra_stereo_coefficient = "1.000000"
dvd_device = "/dev/dvd"
cdrom_device = "/dev/cdrom"
osd_level = "1"
sub_auto_load = "yes"
sub_unicode = "yes"
ass_enabled = "no"
ass_use_margins = "no"
ass_top_margin = "0"
ass_bottom_margin = "0"
sub_pos = "100"
sub_overlap = "no"
sub_cp = "cp936"
font_factor = "0.750000"
font_name = "/usr/share/fonts/truetype/arphic/ukai.ttc"
font_encoding = "unicode"
font_text_scale = "4.020000"
font_osd_scale = "6.000000"
font_blur = "2.000000"
font_outline = "2.000000"
font_autoscale = "3"
cache = "no"
cache_size = "2048"
playbar = "no"
load_fullscreen = "no"
show_videowin = "yes"
stopxscreensaver = "yes"
autosync = "no"
autosync_size = "0"
gui_skin = "clearplayer"
gui_save_pos = "yes"
gui_main_pos_x = "1056"
gui_main_pos_y = "756"
gui_video_out_pos_x = "12"
gui_video_out_pos_y = "72"
上次由 haiweiyangsink 在 2008-08-06 13:20,总共编辑 1 次。
AMD Athlon™ Dual-Core + ATI Radeon Xpress 1250 + 500GB + 折腾 Opensuse; Fedora; Ubuntu

我错了,Linux就是给专家用的,我再也不抱怨了。(读《Linux不是Windows》有感)
头像
bones7456
论坛版主
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
送出感谢: 0
接收感谢: 8 次
联系:

#2

帖子 bones7456 » 2008-07-19 4:55

subcp=cp936 去掉呢?
关注我的blog: ε==3
ildg
帖子: 438
注册时间: 2007-11-26 13:38
送出感谢: 0
接收感谢: 0

#3

帖子 ildg » 2008-07-22 9:39

自己用命令行把参数传进去就行了啊。
mplayer xxx.avi -sub subfile -subcp utf8
回复

回到 “影音多媒体”