[MPlayer-users] remote-control mplayer

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Jul 28 16:02:27 CEST 2005


Hi,
On Thu, Jul 28, 2005 at 03:10:10PM +0200, faxmodem at free.fr wrote:
> good idea.
> I tried it:
> 
> | mkfifo /tmp/cmd
> | cat /tmp/cmd | mplayer -slave /path/to/some/file
> | echo pause >/tmp/cmd
> 
> this works however only once, as the fifo is somehow reset.
> I could workaround this using an endless loop
> 
> | while :; do cat /tmp/cmd | mplayer -slave /path/to/some/file
> 
> but then again that wouldn't work with "pause" :o)
> 
> What could I do for the named pipe to remain open after an echo?

You are not using the named pipe but actually stdin, so you probably get
a broken pipe.
mkfifo /tmp/cmd
mplayer -input file=/tmp/cmd -slave /path/to/some/file
echo pause >/tmp/cmd

should work.




More information about the MPlayer-users mailing list