https://bugs.kde.org/show_bug.cgi?id=529063
Bug ID: 529063
Summary: Object mask: reuse exported source frames between mask
creations and edits
Classification: Applications
Product: kdenlive
Version First 26.08.3
Reported In:
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: Video Effects & Transitions
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Every new mask and every Edit Mask re-exports all frames of the zone, even when
the same clip and zone were just exported. On a 2160x3840 60 fps project a 10 s
clip is 600 full-resolution JPEGs per attempt, and when mask creation gets
stuck (Abort Mask, then retry, see bug 529062) the export runs again each time.
DETAILS (source v26.08.3)
MaskManager::exportFrames (src/effects/effectstack/view/maskmanager.cpp) always
calls srcMaskFolder.removeRecursively() on masks/source-frames and runs
melt xml:<tmp>.mlt -consumer avformat:<dir>/%05d.jpg start_number=0
progress=1 -preset stills/JPEG
over the whole zone at project resolution.
SUGGESTION
- Keep the exported frames keyed by (bin clip id, clip hash, zone in/out,
project profile) and skip the export when they match; invalidate on clip or
profile change.
- Optionally export at a reduced size for analysis (there is already a disabled
"rescale" branch in exportFrames), since SAM2 resizes its input to 1024 px
anyway; masks could then be upscaled.
SOFTWARE/OS VERSIONS
Windows: Windows 10 22H2 (19045)
Kdenlive: 26.08.3 standalone (Qt 6.12)
ADDITIONAL INFORMATION
Prepared with the help of an AI assistant (Claude), from reading the source.
--
You are receiving this mail because:
You are watching all bug changes.