Fix Kdenlive Audio Out of Sync After Rendering
This troubleshooting guide explains how to resolve audio desynchronization issues in Kdenlive that only appear in your final exported video. While your project timeline might play back perfectly, rendering bottlenecks, variable frame rates, and mismatched audio sample rates can cause the audio to drift over time in the output file. Below are the most effective solutions to pinpoint and fix this rendering glitch.
Transcode Variable Frame Rate (VFR) Footage
The most common cause of post-render audio drift is using video clips with a Variable Frame Rate (VFR). These files are typically generated by smartphones, screen recorders like OBS, or zoom recordings. Kdenlive requires a Constant Frame Rate (CFR) for accurate synchronization during export.
To fix this inside Kdenlive: 1. Right-click the problematic video clip in your Project Bin. 2. Select Transcode to Edit-Friendly Format. 3. Choose the DNxHR or Lossless (Ut Video) preset. 4. Replace the original clip on your timeline with the newly transcoded CFR clip and re-render.
Align Audio Sample Rates
If the sample rate of your source audio does not match your Kdenlive project settings or your export settings, the audio can slowly desynchronize during the rendering process.
To align your sample rates: 1. Check the sample rate of your source
footage (usually 44,100 Hz or 48,000 Hz) by right-clicking the clip in
the Project Bin and selecting Properties. 2. Go to
Project > Project Settings and ensure your project
profile matches the sample rate of your primary audio source (48,000 Hz
is highly recommended for video). 3. In the Render
dialog, click the edit icon next to your selected render profile and
verify that the audio rate (ar=48000 or
ar=44100) matches your project settings.
Limit Encoder Threads
Multi-threading during the render process can sometimes cause the video and audio tracks to process at slightly different speeds, resulting in a drifted output.
To limit rendering threads: 1. Open the Render window (Ctrl + Enter). 2. Look for the Encoder threads option at the bottom of the window. 3. Reduce the number of threads. If it is set to a high number or “Auto”, change it to 1 or 2. While rendering will take longer, it ensures the MLT engine processes audio and video frames in strict sequential order.
Disable Hardware Acceleration
While GPU-accelerated rendering (using NVENC, VAAPI, or QSV) speeds up export times, it can occasionally introduce sync issues depending on your graphics card drivers and Kdenlive version.
To test this: 1. In the Render window, choose a standard CPU-based profile, such as the default Generic (MP4-H264/AAC). 2. Ensure no hardware encoding checkboxes are selected. 3. Render a small portion of your timeline using the Selected Zone option to verify if the CPU render resolves the sync issue.