设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 综合讨论区 —— LinuxSir.cn
›
开源软件专题讨论
›
快被逼疯了!按照这篇文章调整mplayer中文字幕,还是有 ...
1
2
/ 2 页
下一页
返回列表
查看:
1343
|
回复:
13
快被逼疯了!按照这篇文章调整mplayer中文字幕,还是有问题“!
[复制链接]
JustPS
JustPS
当前离线
积分
108
IP卡
狗仔卡
发表于 2006-8-24 23:04:20
|
显示全部楼层
|
阅读模式
======================================
B~至于窗口模式,我采用以下方法也解决:
1.rm -rf /usr/share/mplayer/font/*
2.rm -rf ~/.mplayer/font/*
上面两步让gmplayer找不到那些英文字体,呵呵,就让它乖乖地用我们指定的字体:
3.ln -s /YOUR/PATH/TO/CHINESEFONT.ttf subfont.ttf
4.修改~/.mplayer/gui.conf如下项目:
sub_auto_load = "yes"
sub_unicode = "yes"
sub_pos = "100"
sub_overlap = "no"
sub_cp = "cp936"
font_factor = "0.750000"
font_name = "/home/badants/.mplayer/subfont.ttf"
font_encoding = "unicode"
复制代码
然后,打开gmplayer,试试看,能不能成功。
---
结果成功了一半!字幕的前半句是乱码,后半句却成功显示中文!
当然有时候是全部乱码,没有一次是全部成功显示!
我的字体是这样设置的。。。
subfont.ttf -> /usr/X11R6/lib/X11/fonts/truetype/FZSongTi.ttf
本帖子中包含更多资源
您需要
登录
才可以下载或查看,没有帐号?
注册
x
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
JustPS
JustPS
当前离线
积分
108
IP卡
狗仔卡
楼主
|
发表于 2006-8-24 23:15:17
|
显示全部楼层
我的这个影音文件是mkv的,其中包含了两条字幕,一条是中文,一条是英文的。跟这个有关系?
回复
支持
反对
使用道具
举报
显身卡
manphiz
manphiz
当前离线
积分
1153
IP卡
狗仔卡
发表于 2006-8-25 00:09:08
|
显示全部楼层
把sub_cp那行删掉试试。
回复
支持
反对
使用道具
举报
显身卡
tingxx
tingxx
当前离线
积分
690
IP卡
狗仔卡
发表于 2006-8-25 08:21:40
|
显示全部楼层
有这么复杂吗?我用的是archlinux,只是做了一个subfont.ttf的链接,什么问题都没有
本帖子中包含更多资源
您需要
登录
才可以下载或查看,没有帐号?
注册
x
回复
支持
反对
使用道具
举报
显身卡
JustPS
JustPS
当前离线
积分
108
IP卡
狗仔卡
楼主
|
发表于 2006-8-25 09:19:04
|
显示全部楼层
楼上的也是mkv版本的老友记?终于见到同好了。。。哈
能不能麻烦一下,把 gui.conf贴出来看看?
另外,如果能把mplayer的设置画面也帮忙贴一下就太感激不尽了。。。
回复
支持
反对
使用道具
举报
显身卡
JustPS
JustPS
当前离线
积分
108
IP卡
狗仔卡
楼主
|
发表于 2006-8-25 09:21:39
|
显示全部楼层
老兄这两个子目录下面有没有字体文件?
======================================
B~至于窗口模式,我采用以下方法也解决:
1.rm -rf /usr/share/mplayer/font/*
2.rm -rf ~/.mplayer/font/*
回复
支持
反对
使用道具
举报
显身卡
tingxx
tingxx
当前离线
积分
690
IP卡
狗仔卡
发表于 2006-8-25 09:54:28
|
显示全部楼层
把我的mplayer.conf帖出来了吧,其实都没有改过的
至于图形界面的配置,就不用了吧,我都没有点过那个配置
[huting@archlinux ~]$ cat /etc/mplayer/mplayer.conf
#
# MPlayer configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mplayer.conf
# and per user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
# The configuration file settings are the same as the command line
# options without the preceding '-'.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
##################
# video settings #
##################
# Specify default video driver (see -vo help for a list).
vo=x11
# Use SDL video with the aalib subdriver by default.
#vo = sdl:aalib
# FBdev driver:
#
# mode to use (read from fb.modes)
#fbmode = 640x480-120
#
# location of the fb.modes file
#fbmodeconfig = /etc/fb.modes
# Specify your monitor timings for the vesa and fbdev video output drivers.
# See /etc/X11/XF86Config for timings. Be careful; if you specify settings
# that exceed the capabilities of your monitor, you may damage it.
#
# horizontal frequency range (k stands for 1000)
#monitor-hfreq = 31.5k-50k,70k
#
# vertical frequency range
#monitor-vfreq = 50-90
#
# dotclock (or pixelclock) range (m stands for 1000000)
#monitor-dotclock = 30M-300M
# Start in fullscreen mode by default.
#fs=yes
# Change to a different videomode when going fullscreen.
#vm=yes
# Override the autodetected color depth, may need 'vm=yes' as well.
#bpp=0
# Enable software scaling (powerful CPU needed) for video output
# drivers that do not support hardware scaling.
zoom=yes
# standard monitor size, with square pixels
#monitoraspect=4:3
# Use this for a widescreen monitor, non-square pixels.
#monitoraspect=16:9
# Keep the player window on top of all other windows.
#ontop=yes
##################
# audio settings #
##################
# Specify default audio driver (see -ao help for a list).
ao=alsa
# Use SDL audio driver with the esd subdriver by default.
#ao = sdl:esd
# Specify the mixer device.
#mixer = /dev/mixer
# Resample the sound to 44100Hz with the lavcresample audio filter.
#af=lavcresample=44100
##################
# other settings #
##################
# Drop frames to preserve audio/video sync.
#framedrop = yes
# Specify your preferred skin here (skins are searched for in
# /usr/local/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
#skin = Abyss
# Resample the font alphamap.
# 0 plain white fonts
# 0.75 very narrow black outline (default)
# 1 narrow black outline
# 10 bold black outline
#ffactor = 0.75
# cache settings
#
# Use 8MB input cache by default.
cache = 10000
#
# Prefill 20% of the cache before starting playback.
#cache-min = 20.0
#
# Prefill 50% of the cache before restarting playback after the cache emptied.
#cache-seek-min = 50
# DVD: Display English subtitles if available.
#slang = en
# DVD: Play English audio tracks if available.
#alang = en
# You can also include other configuration files.
#include = /path/to/the/file/you/want/to/include
复制代码
回复
支持
反对
使用道具
举报
显身卡
tingxx
tingxx
当前离线
积分
690
IP卡
狗仔卡
发表于 2006-8-25 09:55:33
|
显示全部楼层
还有,我的ttf字体用的是simsun.ttf
回复
支持
反对
使用道具
举报
显身卡
tingxx
tingxx
当前离线
积分
690
IP卡
狗仔卡
发表于 2006-8-25 09:57:32
|
显示全部楼层
还有gui.conf,我没有改过这个文件,是mplayer自动生成的吧
[huting@archlinux ~]$ cat .mplayer/gui.conf
enable_audio_equ = "no"
vo_driver = "x11"
vo_panscan = "0.000000"
vo_doublebuffering = "yes"
vo_direct_render = "yes"
v_framedrop = "1"
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"
dvd_device = "/dev/dvd"
cdrom_device = "/dev/cdrom"
osd_level = "1"
sub_auto_load = "yes"
sub_unicode = "no"
sub_pos = "100"
sub_overlap = "no"
font_factor = "0.750000"
font_text_scale = "5.000000"
font_osd_scale = "6.000000"
font_blur = "2.000000"
font_outline = "2.000000"
font_autoscale = "3"
cache = "yes"
cache_size = "10000"
playbar = "no"
load_fullscreen = "no"
show_videowin = "yes"
stopxscreensaver = "no"
autosync = "no"
autosync_size = "0"
gui_skin = "OSX-Brushed"
gui_save_pos = "yes"
gui_main_pos_x = "109"
gui_main_pos_y = "602"
gui_video_out_pos_x = "257"
gui_video_out_pos_y = "222"
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"
复制代码
回复
支持
反对
使用道具
举报
显身卡
JustPS
JustPS
当前离线
积分
108
IP卡
狗仔卡
楼主
|
发表于 2006-8-25 15:48:25
|
显示全部楼层
Post by
tingxx
还有,我的ttf字体用的是simsun.ttf
老兄的simsun.ttf是不是从windows下面考过来的simsun.ttc改名后的?大概15兆左右的那个?
另外,老兄的老友记事不是那个什么盖天乐什么的mkv的版本呢?
回复
支持
反对
使用道具
举报
显身卡
下一页 »
1
2
/ 2 页
下一页
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
Gentoo Linux
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表