-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Playback speed should affect --image-display-duration #12496
Comments
You can already change |
Then the default keybinds for Like I said, I don't care how the internals work as long as shift- I don't want 2 different keybinds for video speed vs. image speed, and I'd rather not have the OSD be messy from showing a change to both speed and image-display-duration. (Or only show the later one.) Also, I know I can define versions of ] and [ like so:
Or make { and } do both with
but this now only shows the image duration, not speed. I could do the other order to see the speed instead. But how would I get backspace to restore the original |
Keys can be bound to multiple commands separated by
Commands can be silenced with the
You can set different key bindings for images as shown in the user scripts linked from the wiki to turn mpv into an image viewer.
Either just set it to 1 or write a script that saves the original value and provides a keybinding to reset to it. |
Thanks, that's quite useful; I'd been going to ask about overloading page-up as It's annoying to have to do a bunch of manual scripting for what I think would be a better default, so I still think the feature-request has merit, but yes most of what I want can be achieved with good-enough results via just binding two |
This is the script by the way: local duration = mp.get_property('image-display-duration')
mp.add_key_binding('F1', 'reset-image-display-duration', function ()
mp.set_property('image-display-duration', duration)
end) Change |
I don't think it makes sense to make |
This makes mpv usable as an image viewer out of the box, as it is currently hard to setup. Using mpv as an image viewer has several advantages, the biggest one is that it's the best program at browsing directories of mixed videos and images. This adds a builtin image conditional profile that users can extend in mpv.conf. It is written to not restore and reapply the options on each image change, because that is slow for certain options (e.g. --d3d11-flip=no restarts the VO), and causes visible flicker when options like gamma are unapplied before changing image and reapplied on the next image. But it still restores the previous options after switching to a video or audio file. Default image key bindings are defined in the image input section. sxiv is their main inspiration. Closes mpv-player#7983, closes mpv-player#12496.
This makes mpv usable as an image viewer out of the box, as it is currently hard to setup. Using mpv as an image viewer has several advantages, the biggest one is that it's the best program at browsing directories of mixed videos and images. This adds a builtin image conditional profile that users can extend in mpv.conf. It is written to not restore and reapply the options on each image change, because that is slow for certain options (e.g. --d3d11-flip=no restarts the VO), and causes visible flicker when options like gamma are unapplied before changing image and reapplied on the next image. But it still restores the previous options after switching to a video or audio file. Default image key bindings are defined in the image input section. sxiv is their main inspiration. Closes mpv-player#7983, closes mpv-player#12496.
This makes mpv usable as an image viewer out of the box, as it is currently hard to setup. Using mpv as an image viewer has several advantages, the biggest one is that it's the best program at browsing directories of mixed videos and images. This adds a builtin image conditional profile that users can extend in mpv.conf. It is written to not restore and reapply the options on each image change, because that is slow for certain options (e.g. --d3d11-flip=no restarts the VO), and causes visible flicker when options like gamma are unapplied before changing image and reapplied on the next image. But it still restores the previous options after switching to a video or audio file. Default image key bindings are defined in the image input section. sxiv is their main inspiration. Closes mpv-player#7983, closes mpv-player#12496.
This makes mpv usable as an image viewer out of the box, as it is currently hard to setup. Using mpv as an image viewer has several advantages, the biggest one is that it's the best program at browsing directories of mixed videos and images. This adds a builtin image conditional profile that users can extend in mpv.conf. It is written to not restore and reapply the options on each image change, because that is slow for certain options (e.g. --d3d11-flip=no restarts the VO), and causes visible flicker when options like gamma are unapplied before changing image and reapplied on the next image. But it still restores the previous options after switching to a video or audio file. Default image key bindings are defined in the image input section. sxiv is their main inspiration. Closes mpv-player#7983, closes mpv-player#12496.
This makes mpv usable as an image viewer out of the box, as it is currently hard to setup. Using mpv as an image viewer has several advantages, the biggest one is that it's the best program at browsing directories of mixed videos and images. This adds a builtin image conditional profile that users can extend in mpv.conf. It is written to not restore and reapply the options on each image change, because that is slow for certain options (e.g. --d3d11-flip=no restarts the VO), and causes visible flicker when options like gamma are unapplied before changing image and reapplied on the next image. But it still restores the previous options after switching to a video or audio file. Default image key bindings are defined in the image input section. sxiv is their main inspiration. Closes mpv-player#7983, closes mpv-player#12496.
Years ago,
]
and[
to change video playback speed also affected how quickly MPV would step through playlist entries that were still images. This broke (or was intentionally changed) several years ago. (Along with right-arrow going to the next jpg with auto-repeat also not working anymore, but that's a separate issue.)I'm posting this as a feature request rather than bug because I assume the current behaviour is intentional, I just don't like it. :P (I'm using mpv 0.36 on Arch GNU/Linux.)
Expected behavior of the wanted feature
speed=2.0
withimage-display-duration=1
should only pause 0.5 seconds between still images, as ifimage-display-duration
was scaled by thespeed
property.Alternative behavior of the wanted feature
[
and]
, and custom keybinds to set the playback speed, should affect how fast images flip somehow.I guess as a workaround, I could bind
[
and]
to also multiplyimage-display-duration
as well asspeed
so they just change in lock-step, if that's doable frominput.txt
. But resetting speed to1
with backspace would need a way to resetimage-display-duration
to its initial command-line value. For my own use I might be fine with that,1
is ok as long as a scale factor can be cranked up to 32x or whatever.The text was updated successfully, but these errors were encountered: