Enable audio output on A20?

Started by wsteven2, April 29, 2015, 09:47:10 PM

Previous topic - Next topic

wsteven2

Hello,

Trying to redirect audio output from my laptop, but first it should be working locally on my board shouldn't it?
root@a20-OLinuXino:~# mpg123 /mnt/sda1/01\ I\ Need\ A\ Dollar.mp3
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jackdmp 1.9.9
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
[jack.c:252] error: Failed to open jack client: 0x11
[jack.c:58] warning: FIXME: One needs to wait or write some silence here to prevent the last bits of audio to vanish out of the ringbuffer.
[module.c:142] error: Failed to open module portaudio: file not found
[pulse.c:84] error: Failed to open pulse audio output: Connection refused
[nas.c:220] error: could not open default NAS server
Segmentation fault


I don't know much about how audio is working. Any help much appreciated.
Steven

rouvas

Have you tried with mplayer?
What version of A20 are you using? micro? lime? lime2?

wsteven2

Hi Rouvas,

It's the MICRO version.

With mplayer :

root@a20-OLinuXino:~# mplayer /mnt/sda1/01\ I\ Need\ A\ Dollar.mp3
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /mnt/sda1/01 I Need A Dollar.mp3.
Detected file format: MPEG audio layer 2/3 (libavformat)
[mp3 @ 0xb5bee558]Incorrect BOM value
[mp3 @ 0xb5bee558]Error reading frame TRCK, skipped
[mp3 @ 0xb5bee558]max_analyze_duration reached
[lavf] stream 0: audio (mp3), -aid 0
Clip info:
date: 2010
Load subtitles in /mnt/sda1/
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 320.0 kbit/10.42% (ratio: 40003->384000)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pcm_direct.c:1505:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format floatle
[AO SDL] using aalib audio driver.
[AO SDL] Unsupported audio format: 0x1d.
[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)

rouvas

Well, the answer is in the output of mplayer:

----
Detected file format: MPEG audio layer 2/3 (libavformat)
[mp3 @ 0xb5bee558]Incorrect BOM value
[mp3 @ 0xb5bee558]Error reading frame TRCK, skipped
[mp3 @ 0xb5bee558]max_analyze_duration reached
[lavf] stream 0: audio (mp3), -aid 0
Clip info:
date: 2010
Load subtitles in /mnt/sda1/
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
---

May the file you try to play is corrupt?

wsteven2

I reckon message looks like an mp3 problems. But I have similar problems with every file. Most probably the clearer message would be this one :

root@a20-OLinuXino:~# mplayer Dassin\ -\ Le\ Moustique.mp3
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Dassin - Le Moustique.mp3.
Detected file format: MPEG audio layer 2/3 (libavformat)
[mp3 @ 0xb5b6e558]max_analyze_duration reached
[lavf] stream 0: audio (mp3), -aid 0
Clip info:
artist: Joe Dassin
title: Le Moustique
TEXT: Joe Dassin
track: 16
genre: Chanson
Load subtitles in .
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 169.2 kbit/6.00% (ratio: 21151->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pcm_direct.c:1505:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format floatle
[AO SDL] using aalib audio driver.
[AO SDL] Unsupported audio format: 0x1d.
[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)
root@a20-OLinuXino:~#


Especially the "[AO_ALSA] alsa-lib: pcm_direct.c:1505:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card". Which I saw once in dmesg.

rouvas

Can you please check that you have a properly configured /etc/asound.conf ?

In the "pcm.dmixer", the "hw:1,0" is for HDMI sound and "hw:0,0" is for analog sound.

Seems that you somehow have lost the /etc/asound.conf

wsteven2

You're the man!
Thanks a lot, indeed had to change output in asound.conf.
As I wasn't using the hdmi output, but the headphones, it had to be changed.

Thanks again,
Steven

wsteven2

Hello,

mplayer is indeed working as root.

But trying to listen with vlc (with a regular user) gives me
Audio output failed:
The audio device "default" could not be used:
No such file or directory


While starting Mixer (I just installed xfce desktop) gives me :
GStreamer was unable to detect any sound devices. Some sound system specific GStreamer packages may be missing. It may also be a permissions problem.

mplayer giving :

charrette@a20-OLinuXino:~$ mplayer 01\ I\ Need\ A\ Dollar.mp3
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 01 I Need A Dollar.mp3.
Detected file format: MPEG audio layer 2/3 (libavformat)
[mp3 @ 0xb5b97558]Incorrect BOM value
[mp3 @ 0xb5b97558]Error reading frame TRCK, skipped
[mp3 @ 0xb5b97558]max_analyze_duration reached
[lavf] stream 0: audio (mp3), -aid 0
Clip info:
date: 2010
Load subtitles in .
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 320.0 kbit/10.42% (ratio: 40003->384000)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pcm_direct.c:1505:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format floatle
[AO SDL] using aalib audio driver.
[AO SDL] Unsupported audio format: 0x1d.
[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)


Any ideas where rights have to be settled?

wsteven2

My user had to be in the audio group. Solved a bunch a weird acting stuff (like youtube not playing videos...).