看电影的时候怎么同时显示两个字幕?

Totem,mplayer,sopcast,realplayer,bmp
回复
daning
帖子: 3
注册时间: 2006-11-03 20:46

看电影的时候怎么同时显示两个字幕?

#1

帖子 daning » 2007-01-16 0:01

一个中文字幕一个英文字幕。
能否同时显示?
那个播放器可以做到?
谢谢
zjpro
帖子: 15
注册时间: 2007-01-13 0:26

同感

#2

帖子 zjpro » 2007-01-16 0:36

可惜我连一个字幕都没搞定阿,显示英文正常中文乱码或就一条横线,楼主怎么设的呢用的mplayer
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2007-01-16 0:46

参数复杂的试试。vlc和gxine。
● 鸣学
daning
帖子: 3
注册时间: 2006-11-03 20:46

#4

帖子 daning » 2007-01-16 23:42

mplayer开始不能加载中文字幕,不过后来查阅了很多前辈的文章,尝试了以下,终于可以了。
原文
http://daningtech.blogspot.com/2007/01/mplayer.html
下面这个文章的6楼回帖,有两个设置拷屏可以参考。
viewtopic.php?t=26595&highlight=%E5%AD%97%E5%B9%95

这些字幕的加载最好将字幕和视频文件放在一个目录下面,并起除了后缀名之外, 其他名字要一样。
这一点不太喜欢,建议用VLC,参见
http://daningtech.blogspot.com/2007/01/vlc.html和
http://daningtech.blogspot.com/2007/01/vlc_14.html

mplayer首先要下载mplayer的字体文件,在新利得中搜索mplayer,应又和font相
关的包,下载安装吧。
也可以用命令: sudo apt-get install mplayer-fonts

安装mplayer之后运行的时候可能会报错,原因是找不到 ~/.mplayer/subfont.ttf
可以做一个链接(可以选择自己电脑上的中文字体)。

ln -s /usr/share/fonts/truetype/arphic/uming.ttf ~/.mplayer/subfont.ttf

如果是园体下面的语句

ln -s /usr/share/fonts/truetype/arphic/ukai.ttf ~/.mplayer/subfont.ttf

然后在设置中把Subtitle&OSD的encoding选择为 cp936 ,把font的encoding设置
unicode ,默认字体(Text Scale)为5好像有点大,可以设置为3。

怎么设置呢,可以去~/.mplayer下面,修改gui.conf文件。
sudo gedit gui.conf
找到font_text_scale = "5.000000"
修改为font_text_scale = "3.000000"

也可以去界面中修改。

视频默认输出为x11,经过研究发现 xv 占用cpu最低,可以使用这个。

如果不能全屏,修改.mplayer/config,设置
fs=no
zoom=yes

下面是我的配置文件,如果不想设置,就把下面的内容复制粘贴到~/.mplayer/gui.conf
不过修改之前,请先讲原gui.conf备份:sudo cp ~/.mplayer/gui.conf ~/.mplayer/gui.conf.bak
如果修改不成功,还可以恢复。
#配置文件开始
enable_audio_equ = "no"
vo_driver = "xv"
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 = "esd"
ao_volnorm = "no"
softvol = "no"
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 = "no"
sub_pos = "99"
sub_overlap = "no"
sub_cp = "cp936"
font_factor = "0.750000"
font_name = "/usr/share/fonts/truetype/arphic/uming.ttf"
font_encoding = "unicode"
font_text_scale = "3.000000"
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 = "no"
autosync = "no"
autosync_size = "0"
gui_skin = "default"
gui_save_pos = "yes"
gui_main_pos_x = "256"
gui_main_pos_y = "600"
gui_video_out_pos_x = "143"
gui_video_out_pos_y = "240"
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"
#配置文件结束
slash1117
帖子: 265
注册时间: 2006-02-27 9:20

#5

帖子 slash1117 » 2007-01-17 22:59

如果你的播放器放中文字幕没有问题的话,
~/.mplyae/config里设置

overlapsub=1

就可以支持SRT模式的双字幕。
前提是把两个字幕全并成一个文件。
daning
帖子: 3
注册时间: 2006-11-03 20:46

#6

帖子 daning » 2007-01-19 17:51

slash1117 写了:如果你的播放器放中文字幕没有问题的话,
~/.mplyae/config里设置

overlapsub=1

就可以支持SRT模式的双字幕。
前提是把两个字幕全并成一个文件。
我在config里面加了这个
但是似乎没有效果。
所谓的“合并”是什么意思,能否具体解释一下。
头像
yhlfh
帖子: 579
注册时间: 2006-09-02 20:42
来自: 东海明珠

#7

帖子 yhlfh » 2007-01-22 16:48

srt字幕本来就可以合并,就是把中英文写到一起。不用改什么config文件。
Life is like a box of chocolates, you never know what you're going to get.
slash1117
帖子: 265
注册时间: 2006-02-27 9:20

#8

帖子 slash1117 » 2007-01-22 22:47

daning 写了:
slash1117 写了:如果你的播放器放中文字幕没有问题的话,
~/.mplyae/config里设置

overlapsub=1

就可以支持SRT模式的双字幕。
前提是把两个字幕全并成一个文件。
我在config里面加了这个
但是似乎没有效果。
所谓的“合并”是什么意思,能否具体解释一下。
比如字幕为xxx.en.srt和xxx.gb.srt,你可以用

代码: 全选

cat xxx*srt >xxx.srt
就可以了。
回复