Mpv: Change speed by x0.1

Created on 3 Aug 2013  ·  5Comments  ·  Source: mpv-player/mpv

If I put "]" while playing a movie, the speed will be x1.1. If I continue doing this, it will be x1.10, x1.21, x1.33, x1.46, x1.61, ...
In most of players, user can change speeds by +0.1. This mean the speed will be x1.1, x1.2, x1.3, x1.4, x1.5, ...
Please make us to change by x0.1.
Sorry, my English is difficult to understand.

Most helpful comment

For Googlers

If you want to use the solution of @divVerent, in case anyone wonders about where input.conf file is, you do not need to edit /etc/mpv/input.conf as @usingsystem8 has said, it is a system file.

Edit $HOME/.config/mpv/input.conf. You do not need sudo and it is user specific. You can create the file if it does not exist.

All 5 comments

Personally, I would rather want a multiplication by pow(2, 1/12.0) than 1.1. That way, pressing 12 times is exactly a factor of two.

But mainly, this simply should be user configurable. And it is. Can you try adding these lines to your input.conf:

] add speed 0.1
[ add speed -0.1

It almost works right for me, but it snaps to 0.17 (what a weird number) when going too low. Where does this 0.17 come from? Probably should be changed to something like 0.1 or 0.125.

Thank you for your comment! Though I didn't know where input.conf is, I found the answer. input.conf was in mpv/etc/. I'll try this.

It almost works right for me, but it snaps to 0.17 (what a weird number) when going too low. Where does this 0.17 come from?

Normally, audio playback speed is changed by resampling the audio. For some reason, the source sample frequency is clamped to the range 8000-192000. So 8000/48000=0.1666... I'm not sure why the range is clamped this range. The comment in the source code says "limits are taken from libaf/af_resample.c", but this code has been removed long ago. libavresample, which is what's used now, has no limit on the sample rate.

I could imagine that extremely low sample rates could lead to excessively large internal audio buffers, though.

Looks like this issue can be considered solved, so I'm closing this to clean up.

For Googlers

If you want to use the solution of @divVerent, in case anyone wonders about where input.conf file is, you do not need to edit /etc/mpv/input.conf as @usingsystem8 has said, it is a system file.

Edit $HOME/.config/mpv/input.conf. You do not need sudo and it is user specific. You can create the file if it does not exist.

Was this page helpful?
0 / 5 - 0 ratings