realplayer无声解决办法

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
friend.ethan
帖子: 687
注册时间: 2008-05-13 20:40
来自: 江南西道

realplayer无声解决办法

#1

帖子 friend.ethan » 2009-04-30 22:39

今天研究了下无声的解决办法,看了许多的帖子。

我安装的是http://www.real.com/linux上的,虽然很多人说依赖包什么的。

第一,下载
论坛里面也有
这个包的依赖关系混乱,建议使用这个
http://ftp.ubuntu.org.cn/home/aariz/rea ... 3_i386.deb
Username: ubuntu
Password: ubuntuftp
官方网站上的
http://www.real.com/realcom/R?href=http ... 11GOLD.bin

http://www.real.com/realcom/R?href=http ... 11GOLD.deb

装好了以后无论在线还是本地果然是没声音的。



我安装的是RealPlayer11GOLD.deb,安装地方是
/opt/real/RealPlayer

第二,安装alsa-oss
安装好了再安装

代码: 全选

apt-get install alsa-oss 

安装好了以后在终端里面输入

代码: 全选

aoss realpyer
就有声音,看来让real启动的时候加载aoss就可以

第三,让real启动的时候加载aoss
用文本编辑器打开

代码: 全选

sudo gedit /opt/real/RealPlayer/realplay
#!/bin/bash

# To install this script, create a symlink to it from somewhere in your
# path. Do *not* move the script out of the player directory, since
# it relies on the true location of hxplay to derive the location of the
# player directory

ARG0=$0

# Bugbuggy has been causing a lot of trouble with desktop stability. Disable it.
export GNOME_DISABLE_CRASH_DIALOG=1

if [ "${OSTYPE:0:7}" = "solaris" ] ; then
# Solaris requires this setup to use POSIX utilities.
PATH=/usr/xpg4/bin:${PATH}
fi


if [ -d "$HELIX_LIBS" ] ; then
true
elif [ "$HELIX_LIBS" = "" -a -L ${ARG0} ] ; then
HELIX_LIBS=$(readlink ${ARG0})
HELIX_LIBS=${HELIX_LIBS%/*} # Delete trailing file name.
elif [ "$HELIX_LIBS" = "" -a -f ${ARG0} ] ; then
HELIX_LIBS=$ARG0
HELIX_LIBS=${HELIX_LIBS%/*} # Delete trailing file name.
HELIX_LIBS=$(cd $HELIX_LIBS; pwd)
elif [ -z "$HELIX_LIBS" ]; then
echo "\$HELIX_LIBS is not set"
else
echo "\$HELIX_LIBS points to a directory that does not exist ($HELIX_LIBS)"
fi

export HELIX_LIBS

if [ -n "$HELIX_LIBS" -a -d "$HELIX_LIBS" ]; then
# See if LD_PRELOAD contains any of the sound server libs. If so, remove them.
LD_PRELOAD=`echo $LD_PRELOAD | sed -e 's/\([^:]*libesd[^:]*\|[^:]*libarts[^:]*\):\?//g'`
export LD_PRELOAD

if [ -n "$LD_PRELOAD" ]; then
echo "Warning: LD_PRELOAD=\"$LD_PRELOAD\""
fi

if [ -z "GTK_MODULES" ]; then
# Enable accessibility
export GTK_MODULES="gail:atk-bridge"
fi

while /bin/true; do
# Restart the player if exit code is 10 (player reset)
aoss $HELIX_LIBS/realplay.bin "$@"
if [ $? -ne 10 ]; then
break
fi
done
fi
第四,其他

如果安装地方不一样,就只要找到安装目录下的realplay用,编辑器打开,在
$REALPLAYBIN “$@”

改成
aoss $REALPLAYBIN “$@”
或者有命令,我没有验证过
如果仍然无效,则需要强制让RealPlayer以alsa的oss兼容模式运行。以root身份执行下面的代码即可完成这项功能(如果使用Ubuntu,则可以以普通用户身份sudo执行):

# sed -i 's/$REALPLAYBIN\ "$@"/aoss\ $REALPLAYBIN\ "$@"/' `which realplay`

提示:
上面语句的含义是:使用which找到RealPlayer启动脚本,然後在文件中$REALPLAYBIN “$@”一行前面加上aoss。
commonno
帖子: 68
注册时间: 2009-03-22 14:48

Re: realplayer无声解决办法

#2

帖子 commonno » 2009-09-13 7:50

方法很有效,已经验证。
回复