Nevcairiel / LAVFilters

LAV Filters - Open-Source DirectShow Media Splitter and Decoders
GNU General Public License v2.0
7.19k stars 786 forks source link

Feature Request: Pitch Correction Support During Playback Speed Adjustments #584

Closed MarsGao closed 4 months ago

MarsGao commented 4 months ago

I'm using potplayer player, when audio decoding with ffmpeg and audio renderer with potplayer itself, accelerated playback of video files tone stays normal; when audio decoding and audio rendering are both with lav audio decoder, accelerated playback of video files tone can't stay normal. I would like to suggest the addition of a "Pitch Correction" feature to LAV Audio Decoder. This feature would maintain the original pitch of the audio even when the playback speed is increased or decreased. Thank you for considering this request. I am looking forward to your thoughts on this suggestion.

Best regards, MarsGao

clsid2 commented 4 months ago

That is job of audio renderer, not the decoder.

MPC-HC player has two internal audio renderers that support pitch correction.

Nevcairiel commented 4 months ago

Indeed, LAV has no concept of audio playback rate, all it does is decode the audio. Any adjustment should happen afterwards.