Add an option to suppress stream/edition printouts

Open
#18,819 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
56/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c

Research direction

Start by tracing where mpv prints the stream and edition entries when a file loads, then check how message levels and playback options control terminal output. The issue describes the unwanted lines and desired behavior, but names no files or tests. Done when a switch or message-level setting suppresses the requested entries while preserving the other listed terminal output.

Written by the indexing model from the issue text.

Description

meta:feature-request
Expected behavior of the wanted feature

The recent (otherwise much appreciated!) changes to how yt-dlp is integrated mean that mpv sees all formats available to yt-dlp, which are printed every time a stream is loaded. For instance, running mpv https://www.youtube.com/watch?v=aqz-KE-bpKQ shows 58 lines of this:

● --edition=0 '401 - 3840x2160 (2160p60) (av1 60 fps 8981 kbps)'
○ --edition=1 '315 - 3840x2160 (2160p60) (vp9 60 fps 17174 kbps)'
… snipped for brevity …
○ Audio  --aid=17 '234 - audio only (Default, high)' (null)
○ Audio  --aid=18 '233 - audio only (Default, low)' (null)

This fills up my terminal, especially on playlists.

Could you add a switch that either prevents A/V streams and editions from being printed on file load, or only prints the ones that are selected by default, while keeping all other terminal output (file metadata, AO/VO lines, progress line, etc)?

Alternative behavior of the wanted feature
  • These lines could be given a module name, which would let users suppress them with --msg-level.
  • There could be an option to whitelist or blacklist streams and editions from yt-dlp specifically, as regular files tend not to have that many.
Log File

No response

Sample Files

No response

Dominant language
C
Stars
38.2k
Forks
3.7k
Avg merge
1d 13h
Merged PRs (30d)
76

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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.

More from mpv-player/mpv

All issues in mpv-player/mpv

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.