-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
mpv Information
$ pacman -Q mpv
mpv 1:0.40.0-7
$ mpv --version
mpv v0.40.0-dirty Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
built on Sep 24 2025 17:56:15
libplacebo version: v7.351.0
FFmpeg version: n8.0
FFmpeg library versions:
libavcodec 62.11.100
libavdevice 62.1.100
libavfilter 11.4.100
libavformat 62.3.100
libavutil 60.8.100
libswresample 6.1.100
libswscale 9.1.100Other Information
- Linux version: Arch Linux
- Kernel Version: 6.17.2
- GPU Model: irrelevant
- Mesa/GPU Driver Version: irrelevant
- Window Manager and Version: irrelevant
- Source of mpv: Arch Linux extra repo
- Latest known working version: n/a
- Issue started after the following happened: n/a
Reproduction Steps
I've noticed the issue after adding p cycle audio-pitch-correction to my input.conf.
Issue
The --audio-pitch-correction={yes,no} CLI argument is applied correctly, same as the mpv.conf value, but when toggling the value via a hotkey after opening an audio file, the audio-pitch-correction is not applied immediately and requires seeking or changing the playback speed.
As mentioned in the issue title, this appears to be only the case for audio files. Video files do not seem to be affected, and everything is working as intended. I've tested this with many different media files (with different container formats and codecs).
input.conf example:
p cycle audio-pitch-correction
[ add speed -0.1
] add speed 0.1
BS set speed 1.0
RIGHT seek 5
LEFT seek -5
# FISH (can't post a BASH cmd, because --input-conf=<(cat HEREDOC) doesn't work - FISH's psub uses tmp files instead)
$ mpv --no-config --audio-pitch-correction=no --input-conf=(echo -e '
p cycle audio-pitch-correction
[ add speed -0.1
] add speed 0.1
BS set speed 1.0
RIGHT seek 5
LEFT seek -5
' | psub) "$MEDIA_FILE"Audio file
- Open audio file
- Change speed
- Toggle audio-pitch-correction -> no change
- Seek or change speed again -> change applied
Video file
- Open video file
- Change speed
- Toggle audio-pitch-correction -> applied immediately
Expected Behavior
Toggling the audio-pitch-correction value via the hotkey should work immediately.
Actual Behavior
Seeking or changing speed is required in order for the changed audio pitch correction value to take effect.
Log File
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
- I tested with the latest mpv version to validate that the issue is not already fixed.
- I provided all required information including system and mpv version.
- I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- I attached the full, untruncated log file.
- I attached the backtrace in the case of a crash.