# /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
离线
请教一个问题,我用qt5中multimedia做视频播放,ubuntu 和开发板运行程序,都会出现defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer",网上说安装sudo apt-get install qtmultimedia5-dev sudo apt-get install libqt5multimedia5-plugins工具包都不行,有没有什么办法解决?
离线
大佬们我这内核里面的配置好了,而且在/dev路径下也有dsp文件,运行程序的时候也没出现错误,但是为什么mplayer运行后再耳机里面还是没有声音啊?
离线
@晕哥
晕哥请问下,在v3s上移植mplayer1.3.0时,我在编译时遇到了如下的错误,不知道该怎么解决?
我是参考这个网址来进行配置的:http://www.cnblogs.com/guanglun/p/9141791.html
ffmpeg/libavcodec/libavcodec.a(pngdec.o): In function `decode_text_chunk.isra.4':
pngdec.c:(.text+0x20c): undefined reference to `inflateInit_'
pngdec.c:(.text+0x26c): undefined reference to `inflate'
pngdec.c:(.text+0x2a4): undefined reference to `inflateEnd'
pngdec.c:(.text+0x4d8): undefined reference to `inflateEnd'
ffmpeg/libavcodec/libavcodec.a(pngdec.o): In function `decode_frame_common.isra.6':
pngdec.c:(.text+0x1048): undefined reference to `inflate'
ffmpeg/libavcodec/libavcodec.a(pngdec.o): In function `decode_frame_apng':
pngdec.c:(.text+0x354c): undefined reference to `inflateInit_'
pngdec.c:(.text+0x35c4): undefined reference to `inflateEnd'
ffmpeg/libavcodec/libavcodec.a(rscc.o): In function `rscc_decode_frame':
rscc.c:(.text+0x2f8): undefined reference to `uncompress'
rscc.c:(.text+0x514): undefined reference to `uncompress'
ffmpeg/libavcodec/libavcodec.a(screenpresso.o): In function `screenpresso_decode_frame':
screenpresso.c:(.text+0x90): undefined reference to `uncompress'
ffmpeg/libavcodec/libavcodec.a(tdsc.o): In function `tdsc_decode_frame':
tdsc.c:(.text+0x74): undefined reference to `uncompress'
collect2: error: ld returned 1 exit status
Makefile:747: recipe for target 'mplayer' failed
make: *** [mplayer] Error 1
下面是我的配置选项:
./configure --enable-cross-compile --host-cc=gcc --cc=arm-linux-gnueabihf-gcc --as=arm-linux-gnueabihf-as --ar=arm-linux-gnueabihf-ar --ranlib=arm-linux-gnueabihf-ranlib --target=arm-linux --disable-dvdread --disable-win32dll --enable-fbdev --disable-mencoder --disable-live --disable-mp3lame --disable-armv5te --enable-alsa --extra-cflags="-I /usr/local/alsa/build/include" --extra-ldflags="-L /usr/local/alsa/build/lib "
之后make就出现上面的错误了。
离线
@晕哥
晕哥,请问下如果使用buildroot的话,因为我是个新手,对这个使用不是特别的熟悉,有没有一些参考的网址来学习下如何使用的呢?
离线