|
一时发烧新入AP2496,装机进入LINUX,模块加载一切正常,就是播放时用ALSA输出死活不出声,只得暂时用OSS替代。今晚仔细翻阅ALSA的WIKI,找到解决之道。
问题如下:
mplayer -ao alsa:device=hw=0.0 *.mp3
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Failed to initialize audio driver 'alsa:device=default'
Could not open/initialize audio device -> no sound.
更改如下:
mplayer -ao alsa:device=plughw=0.0 *.ape
MPlayer SVN-r30166-4.3.0 (C) 2000-2009 MPlayer Team
136 audio & 285 video codecs
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Playing 叶振棠 - 万里长城永不倒.ape.
libavformat file format detected.
[ape @ 0x90fe370]Estimating duration from bitrate, this may be inaccurate
[lavf] Audio stream found, -aid 0
Clip info:
Artist: 叶振棠
Title: 万里长城永不倒
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [ffape] afm: ffmpeg (FFmpeg Monkey's Audio decoder)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 3.3 (03.3) of 175.8 (02:55.8) 8.7% $<50>
Exiting... (Quit) |
|