mpv-player / mpv-player/mpv

Keyword "default" for cycle-values

Open
#3,721 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Using mpv 0.21.0

I would like to be able when using cycle-values to specify a keyword that would set the property as it was at startup.
For instance, running mpv --scale bilinear file, cycle-values scale bicubic default would cycle between bilinear and bicubic.
In general, I don't think it is currently possible to reset a value altered with cycle-values, a "default" keyword (or maybe that particular name would clash with property values) could allow that.
Also, as there is a !reverse flag, maybe a !with-default flag would do.

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 reproducing the reported cycle-values behavior with --scale bilinear and the cycle-values scale bicubic default command, then review how the existing !reverse flag is handled. Done means a cycle can restore the property's startup value, with the keyword or flag behavior clearly defined and covered by verification.

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.