[MPlayer-users] Use of -slave option in latest CVS

Tom Bednarchuk tom.bednarchuk at sympatico.ca
Sat Feb 23 06:36:02 CET 2002


Hi again Alban:

I tried the following PERL with MPlayer and only the quit command worked.
Can you take a look?

#!/usr/bin/perl -w
print "Hello there !"

open(MPPIPE, "|mplayer -slave -vo x11 /mnt/cdrom/bootyl~2.mpg");
sleep 40;
print MPPIPE "stop\n";
sleep 10;
print MPPIPE "play\n";
sleep 40;
print MPPIPE "quit\n";

The video plays for the 90 or so seconds taken up by the sleep() total but
the stop doesn't seem to work. I put in some printf 's in mplayer.c where
the command is parsed and after the video stops, the printf 's show up on
the console but mpayer seems not to care.

Thanks,

Tom





More information about the MPlayer-users mailing list