nickneo писал(а): ↑Ср янв 09, 2019 12:05 pm
при запущенном pulseaudio запускал?
Код: Выделить всё
sudo -u www-data mplayer /var/www/cms/sounds/dingdong.mp3
sudo -u www-data mplayer -ao pulse /var/www/cms/sounds/dingdong.mp3
и
Код: Выделить всё
sudo -u www-data mplayer -ao pulse -nolirc /var/www/cms/sounds/dingdong.mp3
Везде результат такой же:
Код: Выделить всё
root@orangepipc2:~# sudo -u www-data mplayer -ao pulse -nolirc /var/www/cms/sounds/dingdong.mp3
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
Playing /var/www/cms/sounds/dingdong.mp3.
libavformat version 57.83.100 (external)
Audio only file format detected.
Clip info:
Title:
Artist:
Album:
Year:
Comment:
Genre: Other
Load subtitles in /var/www/cms/sounds/
==========================================================================
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)
==========================================================================
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
root@orangepipc2:~# sudo -u www-data mplayer -ao pulse -nolirc /var/www/cms/sounds/dingdong.mp3
При запущенном похоже, т.к. после перезагрузки вводил команды.
А вот после
Код: Выделить всё
root@orangepipc2:~# sudo -u www-data mplayer /var/www/cms/sounds/dingdong.mp3
MPlayer 1.3.0 (Debian), built with gcc-7 (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/cms/sounds/dingdong.mp3.
libavformat version 57.83.100 (external)
Audio only file format detected.
Clip info:
Title:
Artist:
Album:
Year:
Comment:
Genre: Other
Load subtitles in /var/www/cms/sounds/
==========================================================================
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)
==========================================================================
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 1.4 (01.3) of 1.0 (01.0) 0.4%
Exiting... (End of file)
Код: Выделить всё
root@orangepipc2:~# sudo -u www-data mplayer -ao pulse /var/www/cms/sounds/dingdong.mp3
MPlayer 1.3.0 (Debian), built with gcc-7 (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/cms/sounds/dingdong.mp3.
libavformat version 57.83.100 (external)
Audio only file format detected.
Clip info:
Title:
Artist:
Album:
Year:
Comment:
Genre: Other
Load subtitles in /var/www/cms/sounds/
==========================================================================
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)
==========================================================================
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
Код: Выделить всё
root@orangepipc2:~# sudo -u www-data mplayer -ao pulse -nolirc /var/www/cms/sounds/dingdong.mp3
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
Playing /var/www/cms/sounds/dingdong.mp3.
libavformat version 57.83.100 (external)
Audio only file format detected.
Clip info:
Title:
Artist:
Album:
Year:
Comment:
Genre: Other
Load subtitles in /var/www/cms/sounds/
==========================================================================
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)
==========================================================================
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
Звука нет(
Пишет что-то про права доступа, может с этим связано..
Вот не пойму, почему до установки majordomo звук есть, а после сразу нет.