LinuxSir.cn,穿越时空的Linuxsir!

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

我的mplayer没法放.sub的字幕,只能放.srt字幕

[复制链接]
发表于 2005-3-8 15:37:40 | 显示全部楼层 |阅读模式
debian下mplayer0.91
font下空,然后~/.mplayer/下ln -s /usr/share/fonts/local/simsun.ttc subfont.ttf
把subcp=cp936写到config文件中
可改成这样候只能放.srt字幕,而且还没法自动加载,还要mplayer xxx.avi -sub xxx.srt
可是没法放.sub文件
donkey@donkey:~/movie/Amelie.From.Montmartre.2001.DVDivX_天使爱美丽$ ls
amelie.dvdivx-epic.nfo epic-divx-afm1.sub ★nomadforest★
Amelie.From.Montmartre.2001.Intro.txt epic-divx-afm2.avi thuchem.nfo
epic-divx-afm1.avi epic-divx-afm2.idx tmp
epic-divx-afm1.idx epic-divx-afm2.sub
donkey@donkey:~/movie/Amelie.From.Montmartre.2001.DVDivX_天使爱美丽$ mplayer
*1.avi -sub *1.sub
MPlayer 0.91-3.3.5 (C) 2000-2003 MPlayer Team
CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: 没有那个文件或目录
Reading config file /home/donkey/.mplayer/config
Reading /home/donkey/.mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /home/donkey/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): 权限不够
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts.
Using usleep() timing
Input config file /home/donkey/.mplayer/input.conf parsed: 52 binds

Playing epic-divx-afm1.avi
No matching VOBSUB languge found!
AVI file format detected.
VIDEO: [DIV3] 640x272 24bpp 25.00 fps 1738.7 kbps (212.2 kbyte/s)
Clip info:
Software: Nandub v1.0rc2
SUB: Detected subtitle file format: subviewer 2.0
SUB: Read 0 subtitles.
Cannot load subtitles: epic-divx-afm1.sub
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 800x600 with depth 24 and 32 bpp (":0.0" => local display)
It seems there is no Xvideo support for your video card available.
Run 'xvinfo' to verify its Xv support, and read Xv section of DOCS/video.html !
See 'mplayer -vo help' for other (non-xv) video out drivers. Try -vo x11
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 640 x 272 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 640x272 => 640x272 Planar YV12 [fs] [zoom]
Using MMX2 for colorspace transform
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
A: 3.1 V: 3.1 A-V: 0.011 ct: 0.006 79/ 79 24% 21% 2.5% 2 0 98%
Exiting... (Quit)
发表于 2005-3-8 15:57:51 | 显示全部楼层
mplayer movie.avi -vobsub movie  
比如你有movie.idx和movie.sub这两个文件。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 15:25:42 | 显示全部楼层
Post by aries1998
mplayer movie.avi -vobsub movie  
比如你有movie.idx和movie.sub这两个文件。

还是不行,请问还有什么其他方法吗?
回复 支持 反对

使用道具 举报

发表于 2005-3-9 17:14:35 | 显示全部楼层
我的什么格式的字幕都播不了,郁闷
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 17:29:44 | 显示全部楼层
Post by homesp
我的什么格式的字幕都播不了,郁闷

哪可能是字体联结的时候有问题,我以前也是这样的,没法放.srt文件格式的字幕,后来把~/.mplayer/font里所有的文件删了,再在~/.mplayer下做一个字体的联结,联结名取为subfont.ttf,然后播放时用
mplayer movie.avi -sub movie.srt就能播放了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 17:31:41 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2005-3-10 18:27:12 | 显示全部楼层
混~~~
偶的只能放SUB,不能放SRT~!
回复 支持 反对

使用道具 举报

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

本版积分规则

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