linux Centos下Mplayer没有声音的解决方法

2013年02月1日

前段时间编译安装的一个mplayer1.1版的播放器,播放文件没有声音,每次执行以下命令可以听,但一重启系统又不行了.

#modprobe snd_pcm_oss
#echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
#mplayer gongxi.mp3

有一行提示[AO OSS] audio_setup:无法打开音频设备/dev/dsp:No such file or directory

#ls/dev/

目录下并没有dsp这个文件
解决方法很简单:

#mknod /dev/dsp c 14 3
#chmod 666 /dev/dsp
#/var/log/messages

Feb 1 11:38:05 localhost polkitd[2587]: started daemon version 0.96 using authority implementation `local’ version `0.96′
Feb 1 11:38:06 localhost rtkit-daemon[2598]: Sucessfully made thread 2596 of process 2596 (/usr/bin/pulseaudio) owned by ’42’ high priority at nice level -11.
Feb 1 11:38:06 localhost pulseaudio[2596]: alsa-util.c: Disabling timer-based scheduling because running inside a VM.
Feb 1 11:38:06 localhost gdm-simple-greeter[2582]: Gtk-WARNING: gtkwidget.c:5460: widget not within a GtkWindow
Feb 1 11:38:06 localhost rtkit-daemon[2598]: Sucessfully made thread 2602 of process 2596 (/usr/bin/pulseaudio) owned by ’42’ RT at priority 5.
Feb 1 11:38:06 localhost pulseaudio[2596]: alsa-util.c: Disabling timer-based scheduling because running inside a VM.
Feb 1 11:38:06 localhost pulseaudio[2596]: alsa-sink.c: ALSA 提醒我们在该设备中写入新数据,但实际上没有什么可以写入的!
Feb 1 11:38:06 localhost pulseaudio[2596]: alsa-sink.c: 这很可能是 ALSA 驱动程序 ‘snd_ens1371′ 中的一个 bug。请向 ALSA 开发人员报告这个问题。
Feb 1 11:38:06 localhost pulseaudio[2596]: alsa-sink.c: 提醒我们设置 POLLOUT — 但结果是 snd_pcm_avail() 返回 0 或者另一个小于最小可用值的数值。
Feb 1 11:38:06 localhost rtkit-daemon[2598]: Sucessfully made thread 2603 of process 2596 (/usr/bin/pulseaudio) owned by ’42’ RT at priority 5.
Feb 1 11:38:10 localhost kernel: readahead-collector: sorting
Feb 1 11:38:10 localhost kernel: readahead-collector: finished
Feb 1 11:38:11 localhost tpvmlpd2[2621]: device type not supported
Feb 1 11:38:24 localhost pam: gdm-password[2636]: WARNING: unable to log session
Feb 1 11:38:24 localhost kernel: type=1400 audit(1359689904.694:33450): avc: denied { read } for pid=2636 comm=”gdm-session-wor” name=”root” dev=dm-0 ino=2621441 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir
Feb 1 11:38:25 localhost seahorse-daemon[2734]: init gpgme version 1.1.8
Feb 1 11:38:26 localhost tpvmlpd2[2750]: device type not supported
Feb 1 11:38:27 localhost pulseaudio[2830]: pid.c: Stale PID file, overwriting.
Feb 1 11:38:27 localhost pulseaudio[2830]: alsa-sink.c: ALSA 提醒我们在该设备中写入新数据,但实际上没有什么可以写入的!
Feb 1 11:38:27 localhost pulseaudio[2830]: alsa-sink.c: 这很可能是 ALSA 驱动程序 ‘snd_ens1371’ 中的一个 bug。请向 ALSA 开发人员报告这个问题。
Feb 1 11:38:27 localhost pulseaudio[2830]: alsa-sink.c: 提醒我们设置 POLLOUT — 但结果是 snd_pcm_avail() 返回 0 或者另一个小于最小可用值的数值。
Feb 1 11:38:31 localhost nautilus: [N-A] Nautilus-Actions Tracker 2.30.3 initializing…
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] 无法在模块路径中找到主题引擎:“clearlooks”,
Feb 1 11:38:33 localhost vmusr[2777]: [ warning] [Gtk] gtk_disable_setlocale() must be called before gtk_init()
Feb 1 11:38:34 localhost nautilus: [N-A] Nautilus-Actions Menu Extender 2.30.3 initializing…
Feb 1 11:38:41 localhost tpvmlpd2[3086]: device type not supported
Feb 1 11:38:56 localhost tpvmlpd2[3104]: device type not supported
Feb 1 11:39:11 localhost tpvmlpd2[3109]: device type not supported
Feb 1 11:39:26 localhost tpvmlpd2[3113]: device type not supported
Feb 1 11:39:41 localhost tpvmlpd2[3184]: device type not supported
Feb 1 11:39:56 localhost tpvmlpd2[3189]: device type not supported
Feb 1 11:40:11 localhost tpvmlpd2[3196]: device type not supported
Feb 1 11:40:26 localhost tpvmlpd2[3202]: device type not supported
Feb 1 11:40:41 localhost tpvmlpd2[3206]: device type not supported
Feb 1 11:40:56 localhost tpvmlpd2[3215]: device type not supported
Feb 1 11:41:11 localhost tpvmlpd2[3219]: device type not supported
Feb 1 11:41:26 localhost tpvmlpd2[3224]: device type not supported
Feb 1 11:41:41 localhost tpvmlpd2[3231]: device type not supported
Feb 1 11:41:56 localhost tpvmlpd2[3235]: device type not supported
Feb 1 11:42:11 localhost tpvmlpd2[3239]: device type not supported
Feb 1 11:42:26 localhost tpvmlpd2[3252]: device type not supported
Feb 1 11:42:41 localhost tpvmlpd2[3256]: device type not supported
Feb 1 11:42:56 localhost tpvmlpd2[3262]: device type not supported
Feb 1 11:42:56 localhost tpvmlpd2[2201]: aborting
Screenshot


sicnature ---------------------------------------------------------------------
Your current IP address is: 54.198.134.127
Your IP address location: 美国
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 海南仙岛海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://www.myzhenai.com.cn/post/925.html

没有评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注