[MPlayer-users] Re: mplayer cgi

Michael Mauch michael.mauch at gmx.de
Sat Jun 8 18:51:01 CEST 2002


Reinaldo Mello wrote:

>     Sory.. i send the code with some things i tryied to change.. the
> original one is this...

Do you use the "-display" option of mplayer? You probably should -
usually there are not many environment variables (like DISPLAY)
available inside a CGI.

If this doesn't work, put mplayer inside a script and call that script
from the CGI - and have the script print mplayer's output to a log file
so you can see what happens.

#! /bin/sh
mplayer -display :0.0 your options here "$@" >/tmp/mplayer.log 2>&1 

Don't forget to make the script executable.

Regards...
		Michael




More information about the MPlayer-users mailing list