| Summary: | When crashing Krita during video import, it leaves a ton of video import files behind. | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | wolthera <griffinvalley> |
| Component: | Animation | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | eoinoneill1991 |
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/commit/86db9358f2fea2b528346a5f7351dcbe58948316 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
wolthera
2021-05-12 12:41:25 UTC
The solution here would be to do frame extraction in batches and also restrict the number of frames. I might also look into ways to see if ffmpeg can be smart about skipping frames that are equivalent to a certain threshold... Looking into this more, having now optimized the FFMPEG to import less frames (optionally) for longer files on my own branch, another solution is to properly use the temp directories at krita's disposal. At least on linux, these temp directories will be cleaned up after system reboot. Git commit b6b1f2355e0118f23c39a002273f0ad1b1c9edfa by Eoin O'Neill. Committed on 06/01/2022 at 23:23. Pushed by eoinoneill into branch 'master'. Initial proof-of-concept of keyframe detection and duplicate frame removal during video import process. Steps remaining... 1) Plug UI in with meaningful value range for users to tweak. 2) Use frame file names to determine position within file, and insert accordingly. ... And more? This should help people when importing animations that are long and repetitive. They might not need every single duplicate frame, depending on their user case. Users will be able to dial in sensitivity to adjust to their liking. M +3 -2 libs/ui/animation/KisDlgImportVideoAnimation.cpp M +102 -37 libs/ui/animation/VideoImportDialog.ui https://invent.kde.org/graphics/krita/commit/b6b1f2355e0118f23c39a002273f0ad1b1c9edfa Git commit 86db9358f2fea2b528346a5f7351dcbe58948316 by Eoin O'Neill. Committed on 11/01/2022 at 21:55. Pushed by eoinoneill into branch 'master'. Use QTemporaryDir class instead of manual temporary directory management. Should help w/ preventing file leakage. In odd case that it does crash on import, QTemporaryDir should safely clean up files (and, if not, files should at least be cleaned on reboot.) M +5 -5 libs/ui/KisMainWindow.cpp M +5 -15 libs/ui/animation/KisDlgImportVideoAnimation.cpp M +1 -4 libs/ui/animation/KisDlgImportVideoAnimation.h https://invent.kde.org/graphics/krita/commit/86db9358f2fea2b528346a5f7351dcbe58948316 |