树莓派论坛

 找回密码
 立即注册

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

fks1945 发表于 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报错,请教下,这个是什么原因?
bianbian 发表于 2012-8-9 13:30:20 | 显示全部楼层
看了头晕
ukonline2000 发表于 2012-8-9 15:57:26 | 显示全部楼层
感觉像声卡没设置好,换个播放器试试呢?
shekinah 发表于 2012-8-9 23:27:50 | 显示全部楼层
1. 在X11界面下验证这个流程确实可以播放声音
2. 查找audio driver 'pulse',audio driver 'alsa',audio driver 'sdl:aalib'三项失败的原因。
fangpeishi 发表于 2012-10-23 14:03:41 | 显示全部楼层
[s:10] 还有这需求?
夜长梦多 发表于 2012-10-23 22:37:20 | 显示全部楼层
我用的moc
crabhero 发表于 2012-10-23 23:57:39 | 显示全部楼层
断开hdmi,只连接3.5mm输出,
默认mplayer使用的就是3.5mm输出端,但系统会在接上hdmi后自动屏蔽3.5mm输出,所以会造成你这种错误
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版 | Archiver | 树莓派论坛 ( 粤ICP备15075382号-1 )