LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1505|回复: 15

gmplayer怎么显示中文?

[复制链接]
发表于 2006-3-16 22:51:43 | 显示全部楼层 |阅读模式
我的locale:
LANG=zh_CN
LANGUAGE=zh_CN:zh:en_US:en
LC_CTYPE=zh_CN.gb2312
LC_NUMERIC="zh_CN"
LC_TIME="zh_CN"
LC_COLLATE="zh_CN"
LC_MONETARY="zh_CN"
LC_MESSAGES="zh_CN"
LC_PAPER="zh_CN"
LC_NAME="zh_CN"
LC_ADDRESS="zh_CN"
LC_TELEPHONE="zh_CN"
LC_MEASUREMENT="zh_CN"
LC_IDENTIFICATION="zh_CN"
LC_ALL=

.mplayer/gui.conf:
enable_audio_equ = "no"
vo_driver = "x11"
vo_panscan = "0.000000"
vo_doublebuffering = "yes"
vo_direct_render = "no"
v_framedrop = "0"
v_flip = "-1"
v_ni = "no"
v_idx = "-1"
vf_pp = "no"
vf_autoq = "0"
vf_lavc = "no"
ao_driver = "alsa"
ao_volnorm = "no"
softvol = "no"
ao_surround = "no"osd_level = "1"
sub_auto_load = "yes"
sub_unicode = "yes"
sub_pos = "100"
sub_overlap = "no"
sub_cp = "cp936"
font_factor = "0.750000"
font_encoding = "unicode"
font_name = "/home/badants/.mplayer/subfont.ttf"
font_text_scale = "5.000000"
font_osd_scale = "6.000000"
font_blur = "2.000000"stopxscreensaver = "no"
autosync = "no"
autosync_size = "0"
gui_skin = "default"
gui_save_pos = "yes"
gui_main_pos_x = "265"
gui_main_pos_y = "0"
gui_video_out_pos_x = "181"
gui_video_out_pos_y = "87"
equ_band_00 = "0.000000"
equ_band_01 = "0.000000"
equ_band_02 = "0.000000"equ_band_09 = "0.000000"
equ_band_10 = "0.000000"
equ_band_11 = "0.000000"
equ_band_12 = "0.000000"
equ_band_13 = "0.000000"
equ_band_14 = "0.000000"
equ_band_15 = "0.000000"
equ_band_16 = "0.000000"
equ_band_17 = "0.000000"
equ_band_18 = "0.000000"
equ_band_19 = "0.000000"
equ_band_20 = "0.000000"
equ_band_21 = "0.000000"
equ_band_22 = "0.000000"
equ_band_23 = "0.000000"
equ_band_24 = "0.000000"
equ_band_25 = "0.000000"
equ_band_26 = "0.000000"



equ_band_03 = "0.000000"
equ_band_04 = "0.000000"
equ_band_05 = "0.000000"
equ_band_06 = "0.000000"
equ_band_07 = "0.000000"
equ_band_08 = "0.000000"

font_outline = "2.000000"
font_autoscale = "2"
cache = "yes"
cache_size = "1024"
playbar = "yes"
load_fullscreen = "no"
show_videowin = "yes"

ao_extra_stereo = "no"
ao_extra_stereo_coefficient = "1.000000"
dvd_device = "/dev/dvd"
cdrom_device = "/dev/cdrom"

subfont.ttf拷的simsun.ttf

目前还是英文的界面,而且playlist里中文目录看不到
发表于 2006-3-16 23:31:12 | 显示全部楼层
我是子集编译的,
./configure   时加上  --language=zh_CN
回复 支持 反对

使用道具 举报

发表于 2006-3-16 23:54:42 | 显示全部楼层
http://nkbai.shineblog.com/user1/19485/archives/2006/288000.shtml
这个链接上有说明,但是不知道行不行,我用了可以,对你的不知道可不可以。
回复 支持 反对

使用道具 举报

发表于 2006-3-17 12:36:23 | 显示全部楼层
mplayer显示中文的方法我试过并且好使的是如下两种
mplayer -utf8
mplayer -slang=cp936
楼主试试吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-17 16:58:40 | 显示全部楼层
感谢各位

mplayer我感觉不需要中文支持,直接看rmvb 格式的可以看到中文字幕
我现在的问题不是中文字幕
而是gmplayer中看不到中文目录
回复 支持 反对

使用道具 举报

发表于 2006-3-17 19:09:05 | 显示全部楼层
面板是gtk2还是gtk1的?
回复 支持 反对

使用道具 举报

发表于 2006-3-17 21:20:24 | 显示全部楼层
编译时./configure 时加上 --language=zh_CN才有中文菜单,apt-get的不行
回复 支持 反对

使用道具 举报

发表于 2006-3-18 09:41:20 | 显示全部楼层
如果使用GTK2编译mplayer,你的locale最好设为zh_CN.UTF-8或者en_US.UTF-8,否则gmplayer就不能正常显示中文目录和文件,至少几个月前是这样,还有一些基于gtk2的程序也是这样的.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-18 16:09:13 | 显示全部楼层
我的gmplayer 就是apt-get 的
原来是这样

谢!!!!!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2006-3-18 16:27:11 | 显示全部楼层
gmplayer是基于GTK1。2的
编译是要装GTK1。2的DEV包
还有UTF8环境下
要把HELP文件夹中的中文帮助文档
就是那个带zh_CN的C文件转化成UTF8编码(原文件是GB2312编码的)
编译时加上上面的参数
这样在UTF8下才能显示中文帮助菜档(GUI界面也正常)。
我是这样做的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表