I’ve noticed that if I open a project I’ve left alone for a while then Shotcut will rebuild all waveforms across the project. I asked Google why and it said that there is limited space in the db/cache so some projects require this “refresh”.
If this is correct, is there a way to force this to happen on a per-project basis? I’ve explained why I need this hack/workaround below.
Background:
Windows 10 PC. Using Proxy, stored in Project Folder. Source file is an mp4, and I did not / do not get the “variable frame rate” warning when opening (double-checked with copy file & new dummy project).
Weird bug affecting only one project (so far, out of maybe 40 running currently) - audio waveforms (both on video clips and detached audio) are not in sync with actual audio. Audio itself perfectly in sync w/ video in the project and also on export (short 30s clip from middle of >12m project to test).
Old version (didn’t keep build no): rebuild waveform works but undone by slice. Save after rebuild is undone when re-opening.
New version (26/9) installed today: rebuild no longer undone by editing options, so project is salvageable (yey), but the correct visual is still lost on save and rebuilding multiple video/audio slices one at a time for each edit session will be time-consuming.
Three hours spent today trying multiple suggestions from Google AI “answers”, nothing I tried allows the rebuilt waveforms to be saved so that they remain in place when project is closed and re-opened.
However, sometimes global rebuild occurs without me asking for it. How can I force this to happen for this one project?
I can’t say for certain how the waveform cache is handled, so treat these as things to test rather than a confirmed fix. Since the audio is in sync on export, the waveform is probably being drawn from something other than your original mp4. With Proxy on, the waveform may come from the proxy file rather than the source, and a proxy can have a slightly different audio start or length.
Close the project, delete the proxy files for just th
One of the things I’ve tried is renaming the proxy so the project cannot find it and reverts to using the original file. This didn’t fix the waveform display, but it’s possible they were still being drawn from the db or cache. That said, I’ve also renamed the db.sqlite3 file to see if that would force a refresh but that didn’t seem to do anything.
One AI suggestion was to look for an audio folder inside the AppData but there is only a “thumbnails” one. I deleted all those related to the project as a test, again no change.
I haven’t tried creating a brand new proxy. I will give this a go.
I deleted old proxy and forced the project to create a new one. Problem persists.
What I don’t get is that the correct waveforms ARE available. If not, I wouldn’t be able to rebuild them inside clips. The project is somehow reverting to the out of sync ones when it’s closed, even when changes are saved.
It is correct. There is no way to do it per project.
In version 26.6 there was a fix, from release notes:
Fixed Rebuild Audio Waveform was not saving on Windows.
Maybe that fix was not 100%. I just tried it, and it appeared to work by inspecting the cache file’s Properties from Windows Explorer. Created Tuesday, Modified Today.
look for an audio folder inside the AppData but there is only a “thumbnails” one.
It is stored in the thumbnails folder as a PNG.
In order to get the waveforms, you need to get the file’s hash code using Properties > Proxy > Copy Hash Code even if you do not have proxy turned on. They are also stored in the project file. Then, Settings > App Data Directory > Show…, go into thumbnails and paste the hash code into the search field. There are files ending with audiolevels.png.
Audio levels are never collected from the proxy unless you somehow unlinked the proxy from its source and are directly using a proxy now as its own source.