Bug 471280 - Pitch compensation on clips sped up by ~1000% or more may cause audio playback issues on those clips
Summary: Pitch compensation on clips sped up by ~1000% or more may cause audio playbac...
Status: REPORTED
Alias: None
Product: kdenlive
Classification: Applications
Component: Audio Effects & Transitions (other bugs)
Version First Reported In: 23.04.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-21 03:25 UTC by Alex
Modified: 2024-10-01 18:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Short clip of the issue at 5% volume, occurred immediately after enabling proxy clips (VOLUME WARNING) (1.96 MB, video/mp4)
2023-06-21 03:25 UTC, Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2023-06-21 03:25:42 UTC
Created attachment 159799 [details]
Short clip of the issue at 5% volume, occurred immediately after enabling proxy clips (VOLUME WARNING)

SUMMARY
Pitch compensation on clips sped up by ~1000% (+/-100%) or more may cause audio playback issues on those clips.

Random noise will play at random times through the right audio channel during video playback, usually lasting less than 1 second, up to around 3 seconds.

Occasionally, the random noise plays for the entire duration of the clip, the same noise repeats if the clip is replayed; restarting Kdenlive may change the noise that plays back, but it will still repeat when the clip is replayed.
This random noise can be VERY loud.

Audio playback on the left channel appears to be normal.

STEPS TO REPRODUCE
1. Create a new project
2. Add a clip to the timeline
3. Speed up the clip to 1000% and enable "Pitch Compensation"
4. Turn down your volume and play the video preview

Strangely, enabling proxy clips seems to more consistently cause the issue, tested on an existing project with sped up video already on the timeline. In this case the steps are:
1. Create a new project
2. Add a clip to the timeline
3. Speed up the clip to 1000% and enable "Pitch Compensation"
4. Open Project Settings and enable proxy clips
5. turn down your volume and play the video preview

OBSERVED RESULT
Random noise occasionally plays through the right audio channel, or for the entire duration of the clip. 

EXPECTED RESULT
Audio plays back normally at the speed selected.

SOFTWARE/OS VERSIONS
OS: Windows 10 Version 22H2 (OS Build 19045.3086)
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
Playback works properly with pitch compensation disabled, at even higher speeds

Original files are 1080p 60fps .mkv files with 3 audio tracks recorded using OBS Studio version 29.1.2
Maybe relevant OBS settings:
Recording Format: .mkv

Audio Encoder: FFmpeg AAC
Audio Bitrate: 320Kbps (per track)
Sample rate: 48kHz
Channels: Stereo

Video Encoder: NVIDIA NVENC AV1
Rate Control: CQP (Level 24)
Keyframe Interval: 2s
Preset: P7: Slowest
Tuning: High Quality
Profile: main
Look-ahead and Psycho Visual Tuning: enabled
Max B-frames: 2

System specs:
CPU: Ryzen 7 3700X
GPU: NVIDIA RTX 4090 Asus TUF
RAM: 64GB DDR4 3200MHz (CL20)
Storage: 2TB Crucial MX500 SATA SSD
Audio interface: Behringer UCA-202 USB interface