<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hi altogether,<br>
<br>
<br>
I am curious as how to solve a peculiar "problem".<br>
<br>
I have Big-Ben chimes played out with <b>mplayer</b> every quarter
of an hour and put the respective entries in my <i>crontab</i>.<br>
Example:<br>
<br>
<br>
15 * * * * if [ ! -f /tmp/Ruhe ]; then mplayer
/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Pausenzeichen/Big_Ben_chimes/Big_Ben_quarter_hour
>/tmp/chimes.log 2>&1; fi<br>
<br>
That works very well. But I run into problems <b>if</b> I have some
other noise (sound-file) played out <b>at the same time</b>.<br>
<br>
As a rule I run this command:<br>
<br>
mpv --loop=inf
/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Musik/sounds_von_anoise/sounds/coffee_shop.ogg<br>
<br>
from within a terminal.<br>
<br>
which plays some coffee-shop background noise in a permanent loop.<br>
This command in itself works well too.<br>
<br>
However: when running the mpv-command for background noise (which
runs continually) I don´t get the chimes with mplayer any more...<br>
... which is weird as they are played back when issuing the
respective command<b> from within a terminal</b>.<br>
<br>
So, the command<br>
<br>
mplayer
/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Pausenzeichen/Big_Ben_chimes/Big_Ben_quarter_hour
<br>
<br>
works even if "coffee-shop" is running at the same time.<br>
But it <b>doesn´t</b> work whenever it´s started by crontab!<br>
<br>
I took a look at /tmp/chimes.log with "tail -f /tmp/chimes.log"<br>
<br>
and came up with this info:<br>
<br>
tail: /tmp/chimes.log: Datei abgeschnitten<br>
MPlayer 1.3.0 (Debian), built with gcc-9 (C) 2000-2016 MPlayer Team<br>
do_connect: could not connect to socket<br>
connect: No such file or directory<br>
Failed to open LIRC support. You will not be able to use your remote
control.<br>
Terminal type `unknown' is not defined.<br>
<br>
Playing
/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Pausenzeichen/Big_Ben_chimes/Big_Ben_three_quarters_of_the_hour.<br>
libavformat version 58.29.100 (external)<br>
Audio only file format detected.<br>
Load subtitles in
/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Pausenzeichen/Big_Ben_chimes/<br>
==========================================================================<br>
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III<br>
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio:
16000->176400)<br>
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers
I, II, III)<br>
==========================================================================<br>
AO: [pulse] Init failed: Connection refused<br>
Failed to initialize audio driver 'pulse'<br>
[AO_ALSA] alsa-lib: pcm_hw.c:1715:(snd_pcm_hw_open) open
'/dev/snd/pcmC0D0p' failed (-16): Device or resource busy<br>
[AO_ALSA] alsa-lib: pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to
open slave<br>
[AO_ALSA] Playback open error: Device or resource busy<br>
Failed to initialize audio driver 'alsa'<br>
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le<br>
[AO SDL] using aalib audio driver.<br>
[AO SDL] Unable to open audio: No available audio device<br>
Failed to initialize audio driver 'sdl:aalib'<br>
Could not open/initialize audio device -> no sound.<br>
Audio: no sound<br>
Video: no video<br>
<br>
<br>
Exiting... (End of file)<br>
<br>
<br>
Does anybody have a clue why that "problem" exists?<br>
<br>
Many thanks in advance.<br>
Greetings from Rosika<br>
<br>
</body>
</html>