[MPlayer-users] input fifo file in background - changed

Rich Felker dalias at aerifal.cx
Sat Oct 8 23:35:54 CEST 2005


On Sat, Oct 08, 2005 at 04:09:08PM -0500, Jerry Geis wrote:
> Jerry Geis wrote:
> 
> >/ On Sat, Oct 08, 2005 at 03:13:46PM -0500, Jerry Geis wrote:
> />/ 
> />>>/ I wish to run mplayer similiar to:
> />>>/ "mplayer -quiet -input file=/tmp/fifo -loop 0 video.mpg &"
> />>>/ If I run without the "&" it works - as soon as I put the "&" on
> />>/ the command it gives me an error about /dev/rtc.
> />>/ 
> />>/ You'll need to show us the output. IMO the rtc thing is irrelevant.
> />/ 
> />/ THe error was
> />/ Failed to open /dev/rtc: device or resource busy.
> /
> >He didn't ask for the "error", he asked for the OUTPUT. What you think
> >is the relevant error message may well have nothing to do with the
> >actual problem; the full output is what he asked for.
> 
> >-- 
>       The Wanderer
> 
> >Warning: Simply because I argue an issue does not mean I agree with any
> >side of it.
> 
> >Secrecy is the beginning of tyranny.
> 
> I noticed I have a number of "stopped" mplayers running. so I killed them 
> all.
> 
> I then tried the command "mplayer video.mpg &" and it starts mplayer and 
> puts it in the background I get the "stopped mplayer" message on the 
> console window.
> If I then run "fg" it brings it to the foreground and plays.
> 
> How do I start mplayer in the background and have it actually play.

Add </dev/null to the command line. This applies to any interactive
program you want to run in the background, not just MPlayer.

Rich




More information about the MPlayer-users mailing list