[MPlayer-users] mplayer in background

Carles Pagès page at cubata.homelinux.net
Thu Jul 26 15:32:30 CEST 2007


Thanks a lot Giacomo, that solved my problem!

2007/7/26, Giacomo Comes <comes at naic.edu>:
> 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.
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>



More information about the MPlayer-users mailing list