Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--save-position-on-interval for watch-later #15428

Open
brian6932 opened this issue Dec 2, 2024 · 2 comments
Open

--save-position-on-interval for watch-later #15428

brian6932 opened this issue Dec 2, 2024 · 2 comments

Comments

@brian6932
Copy link

brian6932 commented Dec 2, 2024

Expected behavior of the wanted feature

The problem:

https://github.com/mpv-player/mpv/blob/master/DOCS/man/mpv.rst#resuming-playback
if mpv is terminated abruptly and doesn't have the time to save, then the position will not be saved

I want a way to preserve playback position for long media files, regardless of the method the program was closed by (e.g. power loss). Maybe this is out of scope for the mpv project itself, and better suited for a plugin that calls write-watch-later-config in an async manner, but I don't think this is that niche.

I envision the feature would work something like this:

  • --save-position-on-interval=<timestamp> - interval to write to ~~/watch_later/<file> at.
  • --save-position-on-interval-min-length=<timestamp> - minimum file timestamp required to keep a watch-later interval.
  • --save-position-on-interval-max-length=<timestamp> - maximum file timestamp required to keep a watch-later interval.
  • --save-position-extensions=<extensions> - a comma separated list of file extensions to consider for these features (the reverse is also fine, file extensions which would be blacklisted from this behavior).

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

No response

@guidocella
Copy link
Contributor

https://gist.github.com/CyberShadow/2f71a97fb85ed42146f6d9f522bc34ef

@brian6932
Copy link
Author

Ah I didn't know about that, that does most of what I mentioned.

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

No branches or pull requests

2 participants