mpv-player / mpv-player/mpv

Add option to hide unused/unselected sub and audio tracks from terminal output

Open
#17,235 2 comments 0 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

Expected behavior of the wanted feature

Add a config option, something like --term-hide-unselected-tracks so in case of opening a file with multiple subtitle or audio tracks, it doesn't take a lot of space in the terminal.

The exemple below is what I'm trying to avoid. Maybe only show the first three that are actually in use and a small message like:

and 18 more languages (thanks @stax76)

Image
Alternative behavior of the wanted feature

Instead of showing everything by default, hide them all by default and add an option to display the info on the terminal

Log File

No response

Sample Files

No response

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

No file or test is named in the issue, so first locate the terminal output code that lists subtitle and audio tracks and the existing terminal configuration options. Confirm how selected tracks are identified, then add the requested way to hide unselected tracks while retaining a concise count or display option, and cover the resulting terminal output with tests if that area has them.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.