[MEncoder-users] Quiet output piping

faxmodem at free.fr faxmodem at free.fr
Tue Feb 15 20:02:49 CET 2005


On Tue, Feb 15, 2005 at 02:43:41PM +0100, Bill Eldridge wrote:
> 
> I'm trying to pipe the audio/video output from mencoder into
> another program, and am looking to turn off all error/warning messages
> from hitting stdout. I tried the typical 2>&/dev/null and someone's
> weird 3>&2  2>&1 etc. that I found on the list, with not very good
> luck. Is there a straightforward way to do this? (Yes, I've parsed the
> docs trying to find it).

One pretty straightforward way of doing it is using a named pipe:

mkfifo tmp.pipe
mencoder [...] -o tmp.pipe

Then do whatever you like with tmp.pipe, e.g.

mplayer tmp.pipe

I use this to watch a multiple file dvd copied from vobcopy:

mkfifo tmp
cat *.vob >tmp

mplayer tmp




More information about the MEncoder-users mailing list