mpv-player / mpv-player/mpv

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

Open
#11,203 8 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

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"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the --msg-level= option is parsed and how terminal warnings such as Audio/Video desynchronisation and audio device underruns are emitted. Determine how wildcard matching could apply to messages without prefixes while leaving other messages visible. Done means a pattern such as *Audio/Video desynchronisation* suppresses only matching terminal output.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.