Bug 388065 - Audio out of sync (sampling frequency)
Summary: Audio out of sync (sampling frequency)
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: 17.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-20 10:54 UTC by mau
Modified: 2017-12-31 07:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mau 2017-12-20 10:54:03 UTC
Hi

I guess I've found a bug in kdenlive, using the 17.08.3 AppImage.

In my project most of the clips have audio with 48000 Hz sampling frequency, but some of them have only 44100 Hz. In the timeline everything is shown and played back correctly, but when I render my project I get audio and video significantly out of sync.

I could trace it back to the different sampling frequencies. If I convert these 44100 Hz files to 48000 Hz and replace them in the timeline, I can render my project correctly, audio and video are in sync.

Reproducible: always

Steps required:
1. mix 44100 Hz and 48000 Hz audio files in project
2. find that audio and video are in sync in the timeline
3. render project
4. find that audio and video are not in sync in the rendered file
5. replace 44100 Hz files by 48000 Hz variants, render and find result in sync
Comment 1 mau 2017-12-20 12:58:12 UTC
Additional info:
The 44100 Hz clip begins correctly, but runs too fast so it ends before it should. But note as well that all subsequent audio will be moved towards the beginning as well, yielding to video and audio out of sync for the remainder of the movie.
Comment 2 mau 2017-12-31 07:50:19 UTC
Problem is fixed with 17.12 release, probably related to the drop of avresample (Bug 386932).