您尚未登录。

楼主 # 2023-06-21 23:51:15

xiaoxiao
会员
注册时间: 2023-06-20
已发帖子: 5
积分: 0

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.

离线

#1 2023-09-05 16:41:07

ami7777
会员
注册时间: 2021-07-30
已发帖子: 2
积分: 2

Re: t113单独aplay可以播放语音文件但是mplayer没声音报错

我也遇到这个问题 跟楼主是一样的 希望大佬们帮助解决一下
如果用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

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn