-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
command: let frame-step go through multiple frames
This commit gives the frame-step command the ability to accept an additional argument specifying the amount of frames (forwards or backwards) to step through. By default, it steps forward 1. The frame-back-step command is reworked to simply be a call to frame-step with a -1 value. An additional flag is added that controls how exactly mpv steps through frames. By default, "play" is used which behaves like before. mpv will play through the requested amount of frames before stopping. This is more robust and reliable but could also take much longer if a high amount of frames is requested to be skipped through. This mode only works if mpv is skipping frames forward. Otherwise, the "seek" flag is used which performs a very exact seek. This working well, depends on pts values being reliable which may not always be the case. Frame skipping like this is more of a guess and should be less accurate. As a minor note, MPSEEK_BACKSTEP is renamed to MPSEEK_FRAMESTEP since forward seeks can use this as well. Fixes #10128.
- Loading branch information
1 parent
6407095
commit 544a2e7
Showing
5 changed files
with
79 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters