[MPlayer-users] Re: New Mplayer Release???

Alban Bedel albeu at free.fr
Thu Jul 10 13:38:23 CEST 2003


Hi Konstantinos Karydas,

on Thu, 10 Jul 2003 11:58:58 +0300 you wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read
> DOCS/bugreports.html] Can you please make an example on this? The
> MPlayer documentation for the slave mode is pathetic and I am not sure
> how this happens. How can you pipe commands to the stdin? How can we use
> the -input file option combined with the -slave option? I know my
> questions are very general, but I've never been involved into this
> before.
MPlayer have to kind of inputs, key codes and commands. Key codes are
read from the terminal and/or the vo driver. Most commands are described
in the docs. They are simple strings separeted by new lines (\n) like
seek 60
pause

By default mplayer read keycodes from stdin, if you give -slave
it will instead read commands. With -use-stdin you can prevent
mplayer from reading key events from stdin (this option has no
effect if -slave is used).
Now the -input file option allow to open a file and read commands
from it. I originaly made this to control mplayer when reading
audio only file from stdin. So i can do 'echo quit > ~/mpcmd'
where ~/mpcmd is a named pipe and have mplayer quit.
	Albeu


-- 

Everything is controlled by a small evil group
to which, unfortunately, no one we know belongs.




More information about the MPlayer-users mailing list