I specified vaapi as the video driver for MPlayer, and every time it plays, it spits out output from libva about loading the VA-API driver.
Is there a way to suppress this output? I tried the "-really-quiet" option, and that hid everything else but this output.
Last edited by mellowmaroon (2013-04-26 04:49:16)
mplayer -really-quiet 2>/dev/null
Sorry for taking so long to reply, I've been busy working on stuff for the end of my school semester.
I meant to ask if there was any way it could be done through configuration options or actual parameters, since I also want youtube-viewer to not spit out all the libva info.
Your method works, mar04, but I guess I would have to make an alias for mplayer. I want to really be sure there is no cleaner way before I look into doing that.
Is there a compilation option for libva that might allow me to suppress its output?
You know, the best way to check for compilation options is to... check yourself.
I was about to ask how I should do that, but I found it. I used ./configure --help after downloading the libva source, but the only option there that had anything to do with suppressing output, --enable-silent-rules, looked like that applied only to the build output.
Is there anything else I can check?
One way is to suppress or filter stderr manually with e.g. a shellscript.
The other way is to patch libva in va/sysdeps.h (va_log_info, va_log_error) and/or va/va.c (va_errorMessage, va_infoMessage)
Last edited by progandy (2013-04-26 02:03:54)
So the easiest way I could manage the behavior I wanted was creating a small wrapper script that calls mplayer and redirects the stderr to /dev/null.
Thanks for the help anyway! I'll mark it as solved now.