mpv-player / mpv-player/mpv

Add `--save-position-on-error` feature

Open
#16,449 10 comments 2 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

As youtube and other providers are cracking down on direct streaming outside of their platforms, various intermittent failures are increasing.

It would be really cool if user could define save-position-on-error=yes which would not save video playback position on normal quit, but only on explicit save-quit (which is handled by different option/command Shift+Q by default I think) AND also should streaming error happen if this setting is true.

This would allow one restart the videos easily on failure, without the need to rewind forward to time of failure. Normal quit is user wanted quit, invoked by command, so then save-on-quit feature is not needed. Explicit save-and-quit feature is as well always honored, when bound.

Alternative behavior of the wanted feature

No response

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

Start by tracing the existing save-on-quit option and the Shift+Q save-and-quit command, then locate where streaming errors are handled. Define the behavior for normal quit, explicit save-and-quit, and streaming failure, and verify each path with the relevant playback or command tests.

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
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.