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

fast playback on resumed playback #2

Open
markifi opened this issue Jun 16, 2024 · 2 comments
Open

fast playback on resumed playback #2

markifi opened this issue Jun 16, 2024 · 2 comments

Comments

@markifi
Copy link

markifi commented Jun 16, 2024

it works amazingly well, the only very slight thing i found is if mpv.conf has
save-position-on-quit
and you quit while it's sped up, open the file later to resume, playback speed defaults to the multiplied speed.

also the default threshold setting was low to me and i increased it to -26 dB, but i guess that's personal preference.

@ferreum
Copy link
Owner

ferreum commented Jun 21, 2024

Yeah, I'm aware of the problem, but I don't know if there's a way to prevent this. For now you'll have to reset the speed manually after resuming from saved position.

Alternatively you may prefer removing speed from watch-later-options, so it's not saved at all, by adding this to mpv.conf:

watch-later-options-remove=speed

@idMysteries
Copy link

idMysteries commented Sep 11, 2024

local watch_later_list = mp.get_property("watch-later-options", {})
local watch_later_speed = mp.get_property_bool("options/save-position-on-quit") and watch_later_list:find("speed")

local function toggle(flag)
    local arg
    if flag == "no-osd" then
        arg = "no-osd"
    end
    if is_enabled then
        disable(arg)
    else
        enable(arg)
    end

    if watch_later_speed then
        mp.commandv("change-list", "watch-later-options", is_enabled and "remove" or "append", "speed")
    end
end

Something like that? The speed will not be saved if the script is enabled. It's not a perfect solution, but I did it for myself.

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

No branches or pull requests

3 participants