[MPlayer-dev-eng] Slave mode / Perl interface

Marcus Thiesen marcus at thiesenweb.de
Fri Sep 5 18:17:10 CEST 2003


Hi folks,

I've been using MPlayer CVS for a couple of months now and love this
thing. I've scripted it a lot for a couple of functions at it always
worked quite well in slave mode, there are only some issues I want to
address here:
	- slave mode commands don't really give feedback, they just
	"happen" or not, that's not really good if you want to e.g. 
	hide whole mplayer behind a curses interface.

	- the get_percent_pos and get_time_left don't give really 	usefull
values for soundfiles, haven't tested it with video
	files yet.

	- if you try a loadfile and the file does not exist mplayer
	rather dies than just giving an error. This is not really nice 	if you
run mplayer as a subprocess

	- mplayer always needs it's filename command line options, that 	is not
nice if you e.g. use it as a player for webradio and want
	to chose the station before you start playing but want to have
	the subprocess around anyway. (By the way, most of the command 	line
options can't be changed at runtime, e.g. cache size should
	have a slave command,too). Maybe mplayer should just come up and 	wait
for input on STDIN, even if it has no initial file given.

During the time I played around with mplayer I developed a Perl Module
that maps all slave commands into a nice OO interface, just in case
anybody wants to try it, you can find it at http://perl.thiesenweb.de

Have fun,

	Marcus


-- 
---------------------------------------------------------
|Marcus Thiesen                           ICQ# 108989768|
---------------------------------------------------------
|                   www.thiesenweb.de                   |
---------------------------------------------------------
  28A7 37CC AE2C BB6C D56D  8A3D E614 E56B 7546 75F2



More information about the MPlayer-dev-eng mailing list