[MPlayer-users] script control of playback

Morris Beverly morrisb at avpresentations.com
Sun Oct 29 21:07:20 CET 2006



> Hello,
> On Thu, Oct 26, 2006 at 08:41:24PM -0400, Morris Beverly wrote:
> > input.conf file:    F5 run echo "pause".  I've also tried to run shell 
> 
> This will of course write the command only to stdin, commands are read
> from stdin though (or some other file if you specified so), so you must
> of course do
> echo "pause" > /dev/stdin
> 
> Greetings,
> Reimar Döffinger


Hi,

I tried this just now, but I'm afraid I had the same result: the command
is echoed to the console that mplayer is running in, but nothing else
happens.

Here is my command line:
mplayer -slave -input conf=input.conf -quiet ~/Blackhawk_Crash.AVI
     -- I've tried it both with and without the -slave command (I'm only
using the -input keys at this point)

Here is my input.conf:

F1 pause
F2 get_time_pos
F3 seek -1000000000  # this will go back to beginning
F4 get_time_length
F5 echo "pause\n">/dev/stdin
F10 run ~/pause.sh

---- note: The F5 key command is considered invalid by mplayer


and finally, here is the pause.sh script:
#!/bin/sh
echo "get_time_pos\n" > /dev/stdin

I'm running this on two different machines, a laptop & a desktop.  The
laptop has the 32bit version of Mandriva 2007; the desktop, the 64bit
version of Mandriva 2007.

Thanks for your help on this so far.

morris






More information about the MPlayer-users mailing list