Thanks to all who kindly replied.
David Wright <
deb...@lionunicorn.co.uk> writes:
> Secondly, most of the error messages involved alsa rather
> than the CD player. How does root get on with playing
> sound files from other sources?
Yes, the error message remains also with sound files, so it actually does not
concern cdda:
# mplayer beeth-symph3-klemperer_01.wav
MPlayer 1.3.0 (Debian), built with gcc-6.3.0 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing beeth-symph3-klemperer_01.wav.
libavformat version 57.56.101 (external)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
[AO_ALSA] alsa-lib: pcm_hw.c:1602:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
[AO_ALSA] alsa-lib: pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO SDL] using aalib audio driver.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver 'sdl:aalib'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
> First, it would seem sensible to clean up your first post by
> revealing the output from, say,
>
> # mplayer --noconfig=all --ao=alsa cdda://
>
> Currently I don't have mplayer installed, only mplayer2.
> I would point out that this command still reads input.conf
> files so you might want to move them out of the way too.
The error remains:
# mplayer -noconfig all -ao alsa beeth-symph3-klemperer_01.wav
MPlayer 1.3.0 (Debian), built with gcc-6.3.0 (C) 2000-2016 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing beeth-symph3-klemperer_01.wav.
libavformat version 57.56.101 (external)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
[AO_ALSA] alsa-lib: pcm_hw.c:1602:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
[AO_ALSA] alsa-lib: pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
Please note that if, instead of becoming root with `su', I log in as root, the
error message is smaller:
# mplayer cdda://
MPlayer 1.3.0 (Debian), built with gcc-6.3.0 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing cdda://.
Found audio CD with 12 tracks.
rawaudio file format detected.
Track 1
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pcm_hw.c:1602:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
[AO_ALSA] alsa-lib: pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO SDL] using aalib audio driver.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver 'sdl:aalib'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
My output seems to be the same as yours:
# ls -lR /dev/snd
/dev/snd:
total 0
drwxr-xr-x 2 root root 80 Jul 1 23:55 by-path
crw-rw----+ 1 root audio 116, 2 Jul 1 23:55 controlC0
crw-rw----+ 1 root audio 116, 5 Jul 1 23:55 controlC1
crw-rw----+ 1 root audio 116, 4 Jul 1 23:55 hwC0D0
crw-rw----+ 1 root audio 116, 9 Jul 1 23:55 hwC1D0
crw-rw----+ 1 root audio 116, 3 Jul 1 23:56 pcmC0D3p
crw-rw----+ 1 root audio 116, 7 Jul 1 23:56 pcmC1D0c
crw-rw----+ 1 root audio 116, 6 Jul 1 23:56 pcmC1D0p
crw-rw----+ 1 root audio 116, 8 Jul 1 23:55 pcmC1D2c
crw-rw----+ 1 root audio 116, 1 Jul 1 23:55 seq
crw-rw----+ 1 root audio 116, 33 Jul 1 23:55 timer
/dev/snd/by-path:
total 0
lrwxrwxrwx 1 root root 12 Jul 1 23:55 pci-0000:00:01.1 -> ../controlC0
lrwxrwxrwx 1 root root 12 Jul 1 23:55 pci-0000:00:14.2 -> ../controlC1
Thanks,
Rodolfo