Bug 449397

Summary: Audio waveforms incorrect for mono tracks when opening projects from older versions
Product: [Applications] kdenlive Reporter: Mazin07 <mazin07+kde>
Component: Audio Effects & TransitionsAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: normal CC: fritzibaby
Priority: NOR    
Version First Reported In: git-master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot showing actual vs expected timeline preview

Description Mazin07 2022-01-31 00:19:54 UTC
Created attachment 146090 [details]
Screenshot showing actual vs expected timeline preview

SUMMARY

Using Kdenlive 22.03.07 (or Kdenlive 21.12.1) to open a project created in Kdenlive 21.04.1 results in the audio waveforms shown in the timeline to be incorrect.

STEPS TO REPRODUCE
1. Run Kdenlive 21.04.1 Linux AppImage.
2. Drag a mono FLAC audio file onto the timeline and see that the audio thumbnail shows a waveform that matches the track.
3.  Save the project and quit kdenlive.
4. Run Kdenlive 22.03.7 from kdenlive master ppa or Kdenlive 21.12.1 AppImage official release.
5. Open project file.

OBSERVED RESULT

The waveform preview for the mono audio track on the timeline is stretched 2x and no longer matches the audio as it's playing.

EXPECTED RESULT

The waveform should appear the same as it did in Kdenlive 21.04.1.

SOFTWARE/OS VERSIONS

Ubuntu 20.04 x86_64


ADDITIONAL INFORMATION

I also cannot find an obvious way to regenerate the preview so my video project that I started in the old version is now stuck.