mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Option to suppress warning/error messages that aren't prefixed with [...] without suppressing everything else

Open bpsib opened this issue 2 years ago • 6 comments

it's great that mpv has an option to suppress certain messages using the --msg-level= option but there are many warning messages that aren't prefixed so can't suppress without suppressing everything else. An example is the annoying Audio/Video desynchronisation detected warning message. I don't notice any desynchronisation so is not needed for me. One of the others is the audio device underrun message.

Expected behavior of the wanted feature

The ability to suppress terminal message using wildcard matches. E.g. --msg-level="*Audio/Video desynchronisation*=no"

bpsib avatar Jan 24 '23 14:01 bpsib

You should be able to control those though. They should be under cplayer.

Dudemanguy avatar Jan 24 '23 14:01 Dudemanguy

You should be able to control those though. They should be under cplayer.

The problem is with that is it also hides useful info messages. Is it possible to hide cplayer warning messages only?

bpsib avatar Jan 24 '23 15:01 bpsib

Yeah there's not currently a way to pick a msg-level at specific log levels. Suppression works via hiding messages at that certain log level and greater (i.e. if you hide warnings than everything more noisy is hidden too).

Dudemanguy avatar Jan 24 '23 17:01 Dudemanguy

It's a shame that no one cares to do anything about this. The error message DRIVES ME BLOODY INSANE

bpsib avatar Oct 09 '23 09:10 bpsib

I use auto-save-state.lua. It runs every 60 seconds. I am spammed with "Saving state". I'd like to filter logs by regex.

NRKWL avatar Sep 26 '24 22:09 NRKWL

Just lower the log level in the script before saving state and the restore it to the old value afterwards.

Dudemanguy avatar Sep 27 '24 02:09 Dudemanguy

I jump in here á la classic thread necromancy. Nah, jokes put aside, I suffer from this, too.

client removed during hook handling ↑ This message comes up in yellow every now and then when launching my newly installed v0.4.0. With older versions I never had it. I don't care where it comes from, I don't want to see it. How can I suppress it without ignoring everything else? Or am I all out of luck?

gevvan avatar Apr 26 '25 01:04 gevvan