On one of the video files, the display of the audio track behaves very strangely.
It is impossible to mount it. We have to constantly rebuild audio waveform
I tried turning the use higher performance wave form setting on and off but the problem persists.
I also tried turning the waveform display off and on. Moreover, on a file encoded with the same codec, with the same parameters, everything works well.
The problem persists even when working with a proxy of this file.
Did you know that is not instant? It takes as long as when a new video is initially added to the Timeline, and that can take a fairly long time depending on the weight and duration of the file. You might not notice this due to the timeline zoom level and you only see a small part of the clip near the beginning. If you still do not understand that, do an experiment:
Start Shotcut
do not open an existing project
add a long video (at least 30 minutes) to the timeline by itself
use Zoom Timeline to Fit (zoom out to see the whole clip)
Rebuild Audio Waveform
watch it draw the waveform slowly by chunk
Also, it may not be obvious when the task is done if it is updating the display of an existing clip near the beginning. Therefore, it may appear to be an instant action. The only way I reproduced the problem shown in your video is by splitting a clip while the background waveform task is still running. I also noticed that if I continue working, when the background task completes, the waveform is updated and correct. However, it is possible that is not the case, and the F5 key redraws without making a new, heavy waveform task.
The workaround is to be more patient. Only use Rebuild Audio Waveform as a last resort, and when you do use it wait a minute for the results (time varies per file, machine, system busyness etc). For the next version, I will make it show a status message briefly when a waveform task is done.
I understand that building a waveform is not instantaneous, but I’ve been editing in shotcut for several years in a row and this is the first time I’ve seen this behavior.
I recorded a video where I take an hour-long video, on it the waveform behaves as usual, it can be edited, the sound changes instantly. This video is also recorded in OBS as the problematic one. Then I take the latest video, compressed with the same codec, and capture completely different behavior.
OK, thanks for the video. I do not know at this time why it will behave fine on one file and not on another. We developers will be on the lookout for when it happens to us.
If you want to manually reset the waveform data instead of use Rebuild Audio Waveform:
start Shotcut
open the audio/video file
Properties > Proxy > Copy Hash Code
Settings > App Data Directory > Show
go into thumbnails in Explorer (or whatever)
do a Find (F3)
Ctrl+V to paste and Enter
Now, you see a list of icons and files containing “audiolevels” in their name (there might be more than one audiolevels).
Your remark gave me an idea, I divided a large piece of the video on the right side.
When cut, the waveform of the previous parts disappears, but those parts on the right do not move and
needs to be constantly rebuilt. This way I can finish editing the video.
But something about shotcut’s behavior with this file is clearly not right.