You are not logged in.

#1 2013-04-16 08:11:08

mellowmaroon
Member
Registered: 2012-04-20
Posts: 68

[SOLVED] Suppress libva/vaapi output

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)

Offline

#2 2013-04-16 09:05:26

mar04
Member
From: Poland
Registered: 2010-02-08
Posts: 116

Re: [SOLVED] Suppress libva/vaapi output

mplayer -really-quiet 2>/dev/null

Offline

#3 2013-04-25 23:55:11

mellowmaroon
Member
Registered: 2012-04-20
Posts: 68

Re: [SOLVED] Suppress libva/vaapi output

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?

Offline

#4 2013-04-26 00:11:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] Suppress libva/vaapi output

You know, the best way to check for compilation options is to... check yourself.

Offline

#5 2013-04-26 01:02:45

mellowmaroon
Member
Registered: 2012-04-20
Posts: 68

Re: [SOLVED] Suppress libva/vaapi output

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?

Offline

#6 2013-04-26 02:00:58

progandy
Member
Registered: 2012-05-17
Posts: 2,143

Re: [SOLVED] Suppress libva/vaapi output

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)

Offline

#7 2013-04-26 04:48:49

mellowmaroon
Member
Registered: 2012-04-20
Posts: 68

Re: [SOLVED] Suppress libva/vaapi output

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.

Offline

Board footer

Powered by FluxBB