[MPlayer-users] mplayer in background

Giacomo Comes comes at naic.edu
Thu Jul 26 15:09:43 CEST 2007


On Thu, Jul 26, 2007 at 01:47:53PM +0200, Carles Pagès wrote:
> Hi,
> 
> I'm trying to launch mplayer in background but when I run this command:
> 
> # mplayer rtsp://192.168.2.225/audio1 -vc null -vo null -ao
> pcm:file=/tmp/fifo < /dev/null 2>&1 1>/dev/null &

I'm not sure if this is the solution to your problem, but with
your command line you are still redirectind stderr to the terminal.
You should invert the order: 1>/dev/null 2>&1

Giacomo
 
> the program starts but doesn't return to the shell until I press
> enter. The problem is I want to launch this from php using the
> "exec()" function and because of this it gets stuck waiting for it to
> return.
> 
> So, do you know how should I call it to avoid having to hit a key
> after launching? I've been trying multiple options but with no success
> so far.
> 
> Thanks in advance.



More information about the MPlayer-users mailing list