My goal is to have mplayer start at one volume, then change to a different volume in a scripted fashion.
My current script (pseudo code - simplicity)
mkfifo mplayer_fifo
(sleep 5m; echo "set_property volume 80" > "mplayer_fifo")&
mplayer -volume 100 -slave -input file="mplayer_fifo" song1 song2 song3
The above starts mplayer at volume 100 then changes to volume 80 after 5 minutes.
The issue however is it only changes to volume 80 for the current song then reverts back to 100 on the next song. I desire that it change to 80 and stay there.
Is this possible?
mplayer
spawns itself while playing multiple files, just a guess — check mplayer PID between songs to be sure. What about dropping the-volume 100
argument? mplayer will always start at full volume anyway. If that doesn't work, B plan might be to set the application volume through pulseaudio. – Mar 03 '15 at 08:55