[TriLUG] Repeating the playlist in mplayer? <SOLVED>

Steve Litt slitt at troubleshooters.com
Wed Dec 5 11:17:04 EST 2007


Oh never mind, I was too quick to ask for help. When mplayer is instantiated, 
using the -loop 0 argument in the command line does the trick:

nohup mplayer -loop 0 -input file=/d/bats/steve.fifo -playlist $FN &

It's not perfect. Giving a "previous song" command after you go forward 
through to the next iteration will not bring you to the last song in the 
playlist, but it's easily good enough.

Thanks

SteveT
 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


On Wednesday 05 December 2007 10:56, Steve Litt wrote:
> Hi all,
>
> I've created a CLI front end for mplayer, and it works very nicely in every
> respect except one: I cannot get mplayer to automatically repeat the
> playlist after the last song on the playlist completes. Does anyone know
> how I do that?
>
> Because mplayer is operated in slave mode, I can't put keystrokes into
> mplayer, but I CAN change its config file, and I CAN inject slave mode
> commands. Here's a document discussing slave mode:
>
> http://www.mplayerhq.hu/DOCS/tech/slave.txt
>
> A slave mode command would probably be the easiest for me, but I can't find
> a proper command. If anyone has any idea how to make the playlist repeat
> over and over again, please let me know. By the way, this didn't work for
> me:
>
> echo loop 20 > /d/bats/steve.fifo
>
> Thanks
>
> SteveT
>
> Steve Litt
> Author: Universal Troubleshooting Process books and courseware
> http://www.troubleshooters.com/



More information about the TriLUG mailing list