Skip to content

Add an option to suppress stream/edition printouts #18819

Description

@markozajc

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions