Bug 423307

Summary: warnings on face detection with movies
Product: [Applications] digikam Reporter: Marcel <maeseee>
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.0.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.0.0
Sentry Crash Report:

Description Marcel 2020-06-21 05:14:30 UTC
SUMMARY
Having movies in the same folder with the pictures and running face detection, results in 2 warnings on each movie. This is bad as it overloads the output.

STEPS TO REPRODUCE
1. Folder with movie files
2. Run face detection
3. See terminal while face detection is running

OBSERVED RESULT
Digikam::PreviewLoadingTask::execute: Cannot extract preview for "/media/nas326/photo/2008/080924_1006 Tarifa/MOV01228.MPG.wmv"
Digikam::DImg::load: "/media/nas326/photo/2008/080924_1006 Tarifa/MOV01234.MPG.wmv" : Unknown image format !!!

EXPECTED RESULT
Movies are not supported by face detection, so it should not result in a warning.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 20.04

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-06-21 06:05:27 UTC
Yes and no. DigiKam is plugin-capable, there could be a possibility that an external plugin could decode an image from the video and the facial engine would then detected faces. We shouldn't generally exclude file types. I will change the debug level from warning to debug. Debug output is disabled by default.

Maik
Comment 2 Maik Qualmann 2020-06-21 06:18:52 UTC
Git commit e62e25be1f48ae2f407e93ecabf0beb9d3b1e7b2 by Maik Qualmann.
Committed on 21/06/2020 at 06:15.
Pushed by mqualmann into branch 'master'.

change debug level
FIXED-IN: 7.0.0

M  +2    -1    NEWS
M  +1    -1    core/libs/dimg/dimg_fileio.cpp
M  +1    -1    core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/graphics/digikam/commit/e62e25be1f48ae2f407e93ecabf0beb9d3b1e7b2