查看: 2364|回复: 6
收起左侧

putty 登录无法在终端播放音乐?

2012-8-9 01:03:31 | 显示全部楼层 |阅读模式
  1. pi@raspberrypi /mnt/usb $ mplayer song.mp3
  2. MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
  3. Playing song.mp3.
  4. libavformat version 53.21.0 (external)
  5. Mismatching header version 53.19.0
  6. Audio only file format detected.
  7. Load subtitles in ./
  8. ==========================================================================
  9. Requested audio codec family [mpg123] (afm=mpg123) not available.
  10. Enable it at compilation.
  11. Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
  12. libavcodec version 53.35.0 (external)
  13. Mismatching header version 53.32.2
  14. AUDIO: 44100 Hz, 2 ch, floatle, 320.0 kbit/11.34% (ratio: 40000->352800)
  15. Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
  16. ==========================================================================
  17. AO: [pulse] Init failed: Connection refused
  18. Failed to initialize audio driver 'pulse'
  19. [AO_ALSA] Unable to set hw-parameters: Invalid argument
  20. Failed to initialize audio driver 'alsa'
  21. [AO SDL] Samplerate: 44100Hz Channels: Stereo Format floatle
  22. [AO SDL] using aalib audio driver.
  23. [AO SDL] Unsupported audio format: 0x1d.
  24. [AO SDL] Unable to open audio: No available audio device
  25. Failed to initialize audio driver 'sdl:aalib'
  26. Could not open/initialize audio device -> no sound.
  27. Audio: no sound
  28. Video: no video
  29. Exiting... (End of file)
  30. pi@raspberrypi /mnt/usb $
复制代码

我是在putty登录的,然后挂载了一个U盘,用mplayer播放mp3报错,请教下,这个是什么原因?
回复

使用道具 举报

2012-8-9 13:30:20 | 显示全部楼层
看了头晕
回复 支持 反对

使用道具 举报

2012-8-9 15:57:26 | 显示全部楼层
感觉像声卡没设置好,换个播放器试试呢?
回复 支持 反对

使用道具 举报

2012-8-9 23:27:50 | 显示全部楼层
1. 在X11界面下验证这个流程确实可以播放声音
2. 查找audio driver 'pulse',audio driver 'alsa',audio driver 'sdl:aalib'三项失败的原因。
回复 支持 反对

使用道具 举报

2012-10-23 14:03:41 | 显示全部楼层
[s:10] 还有这需求?
回复 支持 反对

使用道具 举报

2012-10-23 22:37:20 | 显示全部楼层
我用的moc
回复 支持 反对

使用道具 举报

2012-10-23 23:57:39 | 显示全部楼层
断开hdmi,只连接3.5mm输出,
默认mplayer使用的就是3.5mm输出端,但系统会在接上hdmi后自动屏蔽3.5mm输出,所以会造成你这种错误
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热点推荐

关注我们,了解更多

官方微信

服务时间:10:00-16:00

13714503811

公司地址:深圳市龙岗区南湾街道东门头路8号

Copyright © 2012-2020 Powered by 树莓派论坛 2019.4  粤ICP备15075382号-1
快速回复 返回列表 返回顶部