[MPlayer-users] quieting mplayer?

Arpi arpi at thot.banki.hu
Sun Jul 7 20:54:36 CEST 2002


Hi,

> A couple of weeks ago the question was already asked - are there plans
> to let '-quiet' really shut up mplayer? I'd like to use mplayer in
> pipes and would therefore implement output to stdout for
> -dumpstream/video/audio, -aofile, -vo yuv4mpeg. At the moment that's
> simply impossible as there are still tons of (valuable, of course)
> debug information spilling out even with -quiet.
> 
> Is someone working on this? Is it on the TODO for version XXX? Should I
no

> do it myself and send a patch? :)
dunno, probably not

currently all messages printed using mplayer's msg system (mp_msg.h) goes to
stderr, nothing to stdout. but there are several libs used by mplayer which
uses printf() to stdout, we don't want and probably can't change them.

also there are parts of mplayer not yet migrated to use mp_msg, they will be
converted sooner or later, but it doesn't solve your problem.

the only way i can imagine, is redirecting stdout to devnull from the code
(using the dup/close/reopen trick) so printf will print to devnull while you
can still write to the real stdout. it could be done if one of the output is
stdout. -quiet option shouldn't be chnged.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu




More information about the MPlayer-users mailing list