找回密码
 注册
查看: 731|回复: 2

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

[复制链接]
发表于 2005-3-5 23:38:10 | 显示全部楼层 |阅读模式
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-6 01:19:53 | 显示全部楼层
这种idx+sub的字幕需要用另外的参数vobsub,不是用sub
回复

使用道具 举报

发表于 2005-3-6 01:24:55 | 显示全部楼层
还有,如果你习惯使用mplayer命令来播放电影的话,可以在config文件中写入sub-fuzziness=0/1/2 (0、1、2三个中的某一个,详细见man),这样就能自动加载字幕。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-5-17 10:25 , Processed in 0.026242 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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