[MPlayer-users] Re: mplayer during system init
MAL
mal at komcept.com
Wed Jun 4 17:44:13 CEST 2003
Jonathan Rogers wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> MAL wrote:
>
>> cat <mpeg2_file> | /usr/local/bin/mplayer -vo fbdev -nosound -nocache -
>
>
> May I ask why you're using cat? This command would work just as well:
> ---------------------------------------------------------------------
> /usr/local/bin/mplayer -vo fbdev -nosound -nocache <mpeg2_file>
> ---------------------------------------------------------------------
Because the input is normally coming from an encoder card via a
recording app, and I simply wanted to keep using the pipe in order to
not compound the problem.
> But, more to the point, it looks like your problem is related to the
> lack of a controlling tty. On Linux, processes don't normally use
> /dev/tty as a controlling tty. Rather, they typically use virtual
> consoles, rather than the one main one. It should work to redirect stdin
> and stdout to /dev/null, like this:
> ---------------------------------------------------------------------
> /usr/local/bin/mplayer -vo fbdev -nosound -nocache <mpeg2_file> \
> >/dev/null </dev/null 2>&1
> ---------------------------------------------------------------------
>
> An even better idea would be to check how mplayer is run from dedicated
> distros like these two, since they've probably dealt with the same
> issues already:
> <URL:http://geexbox.free.fr/us/index.html>
> <URL:http://movix.sourceforge.net/>
Looking into it, thanks!
MAL
More information about the MPlayer-users
mailing list