Page 1 of 1

Fine tune playback speed

Posted: 23 Oct 2021 04:32
by psoodo
Hello everyone,

I'm just wondering is there a way to increase( or decrease ) the playback speed by 0.001 times ( currently available on the player is 0.01 ).

This is my first time posting on Forum ( or online in general ). If there's any proper posting etiquette that i should be following, please let me know

thank you for your time.

Re: Fine tune playback speed

Posted: 23 Oct 2021 18:03
by mederi

Re: Fine tune playback speed

Posted: 25 Oct 2021 07:59
by psoodo
Oh wow, the script works great. Thanks, mederi.
One more question, if you don't mind. Is there a way to set the adjusted playback speed as the default?
From what i see, right now, you'd have to open a stream or video before you can use the script, otherwise it just default to the speed in the "Input/Codec" section

Sorry for responding so late, didn't have access to my rig on the weekend.

Thank you for your help.

Re: Fine tune playback speed

Posted: 25 Oct 2021 18:08
by mederi
You can save the adjusted value in vlc config ("vlcrc" file), too:
vlc.config.set("rate", rate)

Re: Fine tune playback speed

Posted: 26 Oct 2021 04:05
by psoodo
How should i do it exactly ?
for example i wanted playback rate of 1,2 and so added:

vlc.config.set("rate", 1,2)

OR even:

vlc.config.set("rate", 1.2)

to the end of the "vlcrc" file.
neither had any effect

Re: Fine tune playback speed

Posted: 27 Oct 2021 15:35
by mederi
Just insert the line in the script in click_Rate(dir) function and whenever the button is pressed, the value is stored in vlc config, too (probably not good idea):
vlc.var.set(input, "rate", rate)
vlc.config.set("rate", rate)
--