mplayer的字体成了直线,只能显示数字和些标点,怎么办?

Totem,mplayer,sopcast,realplayer,bmp
回复
manfred
帖子: 8
注册时间: 2006-10-22 16:25
送出感谢: 0
接收感谢: 0

mplayer的字体成了直线,只能显示数字和些标点,怎么办?

#1

帖子 manfred » 2006-10-30 19:39

今天安装了mplayer,有照这论坛上的帖子进行了一些设置。主要是想显示中文字幕,不过现在显示的都是一些横线,不知道怎么回事,望各位高手指点。我贴下gui.conf 和config 中的内容。
config:
# Write your default config options here!
font=/usr/share/fonts/VeraSansYuanTi/VeraSansYuanTi-Regular.ttf
subfont-text-scale=3.5
vo=x11
zoom=yes
gui.conf:
enable_audio_equ = "no"
vo_driver = "xv,sdl,x11"
vo_panscan = "0.000000"
vo_doublebuffering = "yes"
vo_direct_render = "no"
vo_dxr3_device = "/dev/em8300-0"
v_framedrop = "0"
v_flip = "0"
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"
ao_extra_stereo = "no"
ao_extra_stereo_coefficient = "1.000000"
cdrom_device = "/dev/cdrom"
osd_level = "1"
sub_auto_load = "yes"
sub_unicode = "yes"
sub_pos = "99"
sub_overlap = "no"
sub_cp = "cp936"
font_factor = "0.750000"
font_name = "/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF"
font_text_scale = "5.000000"
font_osd_scale = "6.000000"
font_blur = "2.000000"
font_outline = "2.000000"
font_autoscale = "3"
cache = "no"
cache_size = "2048"
playbar = "yes"
load_fullscreen = "no"
show_videowin = "yes"
stopxscreensaver = "no"
autosync = "no"
autosync_size = "0"
gui_skin = "default"
gui_save_pos = "yes"
gui_main_pos_x = "638"
gui_main_pos_y = "620"
gui_video_out_pos_x = "5"
gui_video_out_pos_y = "49"
equ_band_00 = "0.000000"
equ_band_01 = "0.000000"
equ_band_02 = "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"
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_27 = "0.000000"
equ_band_28 = "0.000000"
equ_band_29 = "0.000000"
equ_band_30 = "0.000000"
equ_band_31 = "0.000000"
equ_band_32 = "0.000000"
equ_band_33 = "0.000000"
equ_band_34 = "0.000000"
equ_band_35 = "0.000000"
equ_band_36 = "0.000000"
equ_band_37 = "0.000000"
equ_band_38 = "0.000000"
equ_band_39 = "0.000000"
equ_band_40 = "0.000000"
equ_band_41 = "0.000000"
equ_band_42 = "0.000000"
equ_band_43 = "0.000000"
equ_band_44 = "0.000000"
equ_band_45 = "0.000000"
equ_band_46 = "0.000000"
equ_band_47 = "0.000000"
equ_band_48 = "0.000000"
equ_band_49 = "0.000000"
equ_band_50 = "0.000000"
equ_band_51 = "0.000000"
equ_band_52 = "0.000000"
equ_band_53 = "0.000000"
equ_band_54 = "0.000000"
equ_band_55 = "0.000000"
equ_band_56 = "0.000000"
equ_band_57 = "0.000000"
equ_band_58 = "0.000000"
equ_band_59 = "0.000000"
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#2

帖子 eexpress » 2006-10-30 20:48

记得是在~/.mplayer下面ln -s一个带gbk的字体。比如simsun。wiki可能也有。很久不用mplayer了。 :lol:
● 鸣学
aBiNg
帖子: 1331
注册时间: 2006-07-09 12:22
来自: 南京
送出感谢: 0
接收感谢: 2 次

#3

帖子 aBiNg » 2006-10-30 21:16

可以这样操作:
1.TrueType Fonts
如果单用户,即你自己使用,可以:
$ln -s path_of_font_file_you_wanna_use ~/.mplayer/subfont.ttf

如果要系统共享,即所有用户都可使用,则:
$ln -s path_of_font_file_you_wanna_use /usr/share/mplayer/subfont.ttf

如果你编译安装mplayer时加入了fontconfig支持,则以上两种方法皆无效,可以:
$mplayer -font 'font_supported' 囗囗囗囗囗.mkv #font_supported可用"fc-list"列出

2.Bitmap Fonts #点阵字体
$ln -s path_of_font_file_you_wanna_use ~/.mplayer/font
or
$ln -s path_of_font_file_you_wanna_use /usr/share/mplayer/font
头像
deng
帖子: 130
注册时间: 2006-04-09 14:09
来自: 北京
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 deng » 2006-11-16 9:26

在~/.mplayer下建一个到中文字体的链接即可:)
Programming is fun
==========================
http://oteam.cn
图片
winstars
帖子: 131
注册时间: 2006-09-07 16:02
送出感谢: 0
接收感谢: 0

#5

帖子 winstars » 2006-11-25 10:28

一般来说可以在gmplayer的设置界面中设置OSD的FONT,选取一个可以显示中文的字体,再把encoding改为CP936(Simplified Chinese)
L_BOY
帖子: 9
注册时间: 2006-11-13 10:11
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 L_BOY » 2006-11-27 23:24

在下面两句加入一句
font_name = "/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF"
font_text_scale = "5.000000"
变成
font_name = "/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF"
font_encoding = "unicode"
font_text_scale = "5.000000"
或者
font_encoding = "CP936"
rqn2004
帖子: 6
注册时间: 2005-11-26 16:07
送出感谢: 0
接收感谢: 0

#7

帖子 rqn2004 » 2006-12-02 18:53

我是改了gui的源代码来解决的
我用gmplayer播放gb18030的srt 字幕,每次都有问题。字幕编码用cp936的话,很多字幕都会报错。后来我发现用命令行指定subcp gb18030,可以播放我就觉得是gui的问题。但是又没办法解决。总不能每次都用命令行吧?
下了最新的源代码看了看。找到了它定义字幕的下拉菜单的地方,干脆就加了一项gb18030,这样简体中文的srt应该都可以播放了。费了好大劲才把依赖的库文件和头文件安装好。编译以后,真的起作用了。
哈哈。爽。当然最好是让官方改比较好。cp936真的不够用。
jake
帖子: 40
注册时间: 2006-09-16 22:32
送出感谢: 0
接收感谢: 0
联系:

#8

帖子 jake » 2006-12-09 2:29

谢谢三楼, 按照那个方法做了之后用mplayer有界面放电影的时候字幕已经是正常了
但是当我想要在终端里mplayer xxxx.avi时字幕却依然是乱码..试过在/etc/mplayer/mplayer.conf里面添加
sub_cp之类的东西 但是提示无效选项...不知道改怎么办了
回复

回到 “影音多媒体”