previewers.py's PipelineCpuAdapter / CPUUsageTracker prevents waveforms from being generated when inserting many clips at the same time
@jeff
Submitted by Jeff F.T. Assigned to Alex Băluț @aleb
Description
You can use these sample clips to reproduce the issue:
http://jeff.ecchi.ca/public/sample-pitivi-projects/2011-desktop-summit-project/2011%20desktop%20summit%20-%20clips.tar
Steps:
- rm -R ~/.cache/pitivi/waves (or move it out of the way)
- Import 35 of those clips into Pitivi
- Use the "InsertEnd" button in the media library to insert them all at once
into the timeline. - Wait, and notice that waveforms never get generated, even though CPU usage
is at 0% and the video thumbnails have been generated. - Remove those clips from the timeline
- Insert only 5 of them into the timeline, waveforms will get generated.
Tested on a fast computer (dual core with SSD)
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=728098