Bug 467740

Summary: After saving, move waveform/thumbnail cache instead of regenerating
Product: [Applications] kdenlive Reporter: Jacob Kauffmann <jacob>
Component: Project Bin & ImportAssignee: Jean-Baptiste Mardelle <jb>
Status: CONFIRMED ---    
Severity: normal CC: fritzibaby
Priority: NOR Keywords: triaged
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jacob Kauffmann 2023-03-24 06:22:14 UTC
SUMMARY
Kdenlive discards and re-generates data such as audio waveforms if the project is saved to a new location. This can often mean waiting for waveforms to generate twice when starting a new project (once before saving for the first time, and once after.)

STEPS TO REPRODUCE
1. Open Kdenlive
2. Drag a video into the Project Bin
3. Drag the video to the Timeline
4. Wait for some waveforms to appear
5. Save the new project to a non-default directory (e.g. if the project has its own directory where the footage is stored, save it there)

OBSERVED RESULT
Kdenlive notifies the user: "The location of the project file changed. You selected to use the location of the project file to save temporary files. This will move all temporary files from /old/directory to /new/directory, the project file will then be reloaded"

After this, all audio waveforms are gone and the loading bar under the clip in the Project Bin restarts from zero to generate them again.

EXPECTED RESULT
The already-generated waveform thumbnails should be moved (as the dialog indicates) and generating should not start over from zero.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2.7-arch1-1
(available in About System)
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Comment 1 emohr 2024-10-26 11:19:54 UTC
I think this is more a bug. Cached audio waveforms should be linked to the new project location too.