[MPlayer-users] two sound files at the same time - problem with crontab (mplayer involved)

Christian abelschreck3 at freenet.de
Sat May 15 14:32:09 EEST 2021

Hi altogether,

I am curious as how to solve a peculiar "problem".

I have Big-Ben chimes played out with *mplayer* every quarter of an hour 
and put the respective entries in my /crontab/.

15 * * * * if [ ! -f /tmp/Ruhe ]; then mplayer 
 > /dev/null 2>&1; fi

That works very well. But I run into problems if I have some other noise 
(sound-file) played out *at the same time*.

As a rule I run this command:

mpv --loop=inf 

from within a terminal.

which plays some coffee-shop background noise in a permanent loop.
This works well too.

However: when running the mpv-command for background noise (which runs 
continually) I don´t get the chimes with *mplayer* any more...
... which is weird as they *ARE* played back when issuing the respective 
command from within a terminal.

So, the command


works even if "coffee-shop" is running at the same time.
But it *doesn´t* work whenever it´s started by *crontab*!

Does anybody have a clue why that "problem" exists?

Many thanks in advance.
Greetings from Rosika

More information about the MPlayer-users mailing list