# /usr/bin/mplayer 1.mp3
MPlayer 1.3.0-6.3.1 (C) 2000-2016 MPlayer Team
Playing 1.mp3.
libavformat version 57.25.100 (internal)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.24.102 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 320.0 kbit/11.34% (ratio: 40000->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A: 11.1 (11.0) of 225.0 (03:45.0) 3.1%
MPlayer interrupted by signal 2 in module: play_audio
A: 11.1 (11.1) of 225.0 (03:45.0) 3.1%
Exiting... (Quit)
离线
使用mplayer播放音乐时警告“[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory”
这个问题主要是缺少了OSS PCM (digital audio) API模块。
cd /home/vv3/Downloads/linux#
make ARCH=arm menuconfig 配置内核
Device Drivers --->
<*> Sound card support --->
<*> Advanced Linux Sound Architecture --->
-- Advanced Linux Sound Architecture
[*] Enable OSS Emulation
<*> OSS Mixer API
<*> OSS PCM (digital audio) API
[/*] OSS PCM (digital audio) API - Include plugin system
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 编译内核
# ./tinymix set 1 63 设置声音大小
# ./tinymix set 2 1
# /usr/bin/mplayer -x 800 -y 480 -zoom aa.avi 播放频视
离线
使用mplayer播放音乐时警告“[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory”
这个问题主要是缺少了OSS PCM (digital audio) API模块。
cd /home/vv3/Downloads/linux#
make ARCH=arm menuconfig 配置内核
Device Drivers --->
<*> Sound card support --->
<*> Advanced Linux Sound Architecture --->
-- Advanced Linux Sound Architecture
[*] Enable OSS Emulation
<*> OSS Mixer API
<*> OSS PCM (digital audio) API
[/*] OSS PCM (digital audio) API - Include plugin system
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 编译内核
# ./tinymix set 1 63 设置声音大小
# ./tinymix set 2 1
# /usr/bin/mplayer -x 800 -y 480 -zoom aa.avi 播放频视
可以播放频视,但声音不同步,声音快很多,是什么问题?
离线
感觉这个问题应该是mplayer的问题,
你换别的mp4文件呢?当然也有可能是 alsa 转 oss 出了问题,
只能先判断是不是文件出问题了。
晕哥,换了几个mp4,avi都一样
离线
加了-framedrop 播放avi声音能同步,播放mp4声音还不能同步,待解决
/usr/bin/mplayer -x 800 -y 480 -zoom -framedrop aa.avi
离线