Fedora9安装mplayer支持rm,rmvb格式

mplayer官方下载最新的包,all开头的最新的包,下载后解压到:/usr/lib/codecs/目录下
有可能播放的时候提示无法找到drvc.dll,如果你有realplayer或者暴风影音的话,去安装目录搜索下,找到了复制到/usr/lib/codecs/.
在终端中执行如下命令:
[root@localhost ~]#ldd /usr/lib/codecs/drvc.so
linux-gate.so.1 => (0x00110000)
libstdc++.so.5 => not found (这个代表着你应该安装)
libc.so.6 => /lib/libc.so.6 (0x00162000)
/lib/ld-linux.so.2 (0x004ed000)

[root@localhost ~]# yum install libstdc++.so.5

安装后再次执行:ldd /usr/lib/codecs/drvc.so 你应该得到如下的提示:
[root@localhost ~]# ldd /usr/lib/codecs/drvc.so
    linux-gate.so.1 => (0x00110000)
    libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00162000)
    libc.so.6 => /lib/libc.so.6 (0x0021b000)
    libm.so.6 => /lib/libm.so.6 (0x00384000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x003ad000)
    /lib/ld-linux.so.2 (0xb8076000)

配置 Mplayer

打开文件:

sudo cp /etc/mplayer/mplayer.conf /etc/mplayer/mplayer.conf_backup
sudo gedit /etc/mplayer/mplayer.conf

1,有声音无图像

找出下面这一行

...
# Specify default video driver (see -vo help for a list).
vo=x11
...

以下面这一行取代

# Specify default video driver (see -vo help for a list).
vo=xv

2,无法全屏

查找#zoom=yes,然后去掉#即可

3,音频输出部分

#Specify default audio driver (see -ao help for a list).

ao=pulse,alsa,

或者ao=alsa,

4,混音工具(可选)

#mixer = /dev/mixer

去掉#即可

5,设置输出频率(可选)

#Resample the sound to 44100Hz with the lavcresample audio filter.

af=lavcresample=44100

推荐使用默认的44100 ,如果喜欢低频可适当调低,喜欢高频不妨设置为48000或者以上,如果没什么特殊爱好可不设置或者干脆设置为*

6,开启默认缓存(可选)

# Use 8MB input cache by default.
cache = 8192
#
# 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

其馀部分使用默认即可

配置中文字幕显示(可选)

mkdir ~/.mplayer
ln -sf /usr/share/fonts/truetype/arphic/uming.ttc ~/.mplayer/subfont.ttf
gedit ~/.mplayer/gui.conf
sub_cp = "cp936"
font_text_scale = "4.000000"
font_osd_scale = "4.000000"
sub_fuzziness=2

安装浏览器插件

sudo apt-get install mozilla-mplayer

重启Firefox使mozilla-mplayer插件生效

#
# 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=xv

# 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 = 8192
#
# 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

 

好了,现在开始放电影吧!

转载于:https://www.cnblogs.com/daviyang/archive/2008/08/13/1859288.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值