t113单独aplay可以播放语音文件但是mplayer没声音报错
-
# mplayer -zoom -x 320 -y 240 ruguomeiyou.FLV -fs -ao alsa -framedrop MPlayer 1.5-7.2.1 (C) 2000-2022 MPlayer Team Playing ruguomeiyou.FLV. libavformat version 59.17.102 (internal) libavformat file format detected. [lavf] stream 0: video (h264), -vid 0 [lavf] stream 1: audio (aac), -aid 0 VIDEO: [H264] 1280x720 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s) ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 59.21.100 (internal) Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== Load subtitles in ./ ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->352800) Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio)) ========================================================================== [AO_ALSA] alsa-lib: pcm_hw.c:1895:(_snd_pcm_hw_open) Unknown field slave [AO_ALSA] Playback open error: Invalid argument Failed to initialize audio driver 'alsa' Could not open/initialize audio device -> no sound. Audio: no sound Starting playback... Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] [swscaler @ 0xf2d958]bicubic scaler, from yuv420p to bgra using C VO: [fbdev] 320x240 => 320x240 BGRA [fs] [zoom] V: 45.5 0/ 0 178% 150% 0.0% 0 0 MPlayer interrupted by signal 2 in module: flip_page V: 45.5 0/ 0 178% 150% 0.0% 0 0 Exiting... (Quit) # # # # mplayer help MPlayer 1.5-7.2.1 (C) 2000-2022 MPlayer Team Playing help. File not found: 'help' Failed to open help.
-
我也遇到这个问题 跟楼主是一样的 希望大佬们帮助解决一下
如果用aplay 也是这样# aplay /root/test.wav ALSA lib pcm_hw.c:2021:(_snd_pcm_hw_open) Unknown field slave aplay: main:828: audio open error: Invalid argument
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号