Приветствую!foxvlad писал(а): ↑Ср янв 13, 2016 2:31 pmipz писал(а):И не будет, если majordomo запущен от root'a
У тебя по командескорее всего вот это:Код: Выделить всё
cat /etc/group | grep audio
audio29:pi,www-data
Добавь в группу аудио root:Код: Выделить всё
sudo usermod -a -G audio root
root тоже добавил, сразу вместе с www-data та же беда
Понимаю, что дело было в 2016 году.... Но у меня сегодня такая же проблема.....
Звука в MJDM нет (кроме Алисы).
Звук через консоль есть: sudo -u pi mplayer http://radio.bestfm.fm:8080/bestfm64.
СпойлерПоказать
pi@raspberrypi:~ $ sudo -u pi mplayer http://radio.bestfm.fm:8080/bestfm64
MPlayer 1.3.0 (Debian), built with gcc-8 (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 http://radio.bestfm.fm:8080/bestfm64.
Resolving radio.bestfm.fm for AF_INET6...
Couldn't resolve name for AF_INET6: radio.bestfm.fm
Resolving radio.bestfm.fm for AF_INET...
Connecting to server radio.bestfm.fm[195.234.215.152]: 8080...
Name : Best FM
Genre : Radio
Website: https://bestfm.fm
Public : yes
Bitrate: 64kbit/s
Cache size set to 320 KBytes
Cache fill: 0.00% (0 bytes)
ICY Info: StreamTitle='Sigma - Dilemma';
Audio only file format detected.
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 13.3 (13.3) of -0.0 (unknown) 0.7% 35%
ICY Info: StreamTitle='';
A: 17.4 (17.3) of -0.0 (unknown) 0.7% 36%
A: 4.0 (03.9) of -0.0 (unknown) 0.1% 83%
MPlayer 1.3.0 (Debian), built with gcc-8 (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 http://radio.bestfm.fm:8080/bestfm64.
Resolving radio.bestfm.fm for AF_INET6...
Couldn't resolve name for AF_INET6: radio.bestfm.fm
Resolving radio.bestfm.fm for AF_INET...
Connecting to server radio.bestfm.fm[195.234.215.152]: 8080...
Name : Best FM
Genre : Radio
Website: https://bestfm.fm
Public : yes
Bitrate: 64kbit/s
Cache size set to 320 KBytes
Cache fill: 0.00% (0 bytes)
ICY Info: StreamTitle='Sigma - Dilemma';
Audio only file format detected.
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 13.3 (13.3) of -0.0 (unknown) 0.7% 35%
ICY Info: StreamTitle='';
A: 17.4 (17.3) of -0.0 (unknown) 0.7% 36%
A: 4.0 (03.9) of -0.0 (unknown) 0.1% 83%
Аудио файлы проигрываются: pi@raspberrypi:~ $ sudo -u www-data /usr/bin/mplayer /var/www/html/cms/cached/voice/****.mp3
СпойлерПоказать
pi@raspberrypi:~ $ sudo -u www-data /usr/bin/mplayer /var/www/html/cms/cached/voice/****.mp3
MPlayer 1.3.0 (Debian), built with gcc-8 (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 /var/www/html/cms/cached/voice/geroi.mp3.
libavformat version 58.20.100 (external)
Mismatching header version 58.12.100
Audio only file format detected.
Load subtitles in /var/www/html/cms/cached/voice/
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
Home directory not accessible: Permission denied
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 8.5 (08.5) of 16.0 (16.0) 1.3%
MPlayer 1.3.0 (Debian), built with gcc-8 (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 /var/www/html/cms/cached/voice/geroi.mp3.
libavformat version 58.20.100 (external)
Mismatching header version 58.12.100
Audio only file format detected.
Load subtitles in /var/www/html/cms/cached/voice/
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
Home directory not accessible: Permission denied
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 8.5 (08.5) of 16.0 (16.0) 1.3%
Алису я перенаправил в Яндекс.колонку, удалив штатный Rhvoice,
Что делать, куда двигаться?
Заранее спасибо за помощь!