Bug 491390

Summary: Videos not sorted into albums created by date when importing
Product: [Applications] digikam Reporter: Sebastian <ghgbd4da>
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: ghgbd4da, metzpinguin
Priority: NOR    
Version First Reported In: 8.4.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 8.6.0
Sentry Crash Report:

Description Sebastian 2024-08-07 14:10:02 UTC
SUMMARY
When downloading items via Import > Add images with automatic album creation by date, videos are not sorted correctly.
I guess this is because videos lack EXIF metadata, but often have other metadata including a date, such as RIFF for AVI videos. It would be nice if digiKam could fallback to this when sorting videos into albums by date.

STEPS TO REPRODUCE
I don't think this is actually a bug and rather an improvement, but here is what I did:

1. Open the Import Tool (Import > Add Images)
2. Select a folder containing videos (AVI with RIFF in my case)
3. Configure automatic creation of albums by date on the right
4. Click Download All
5. Videos with a correct date in the RIFF metadata are treated as if they were taken right now (and thus are sorted into the wrong album)

OBSERVED RESULT
digiKam uses the current date as opposed to the correct date in the RIFF metadata.

EXPECTED RESULT
digiKam prioritizes file metadata (RIFF in this case) over the current date and sorts the videos into the correct album by the date they were shot.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Arch-Linux; 6.10.2-zen1-2-zen (64-bit)
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Comment 1 Maik Qualmann 2024-08-07 14:16:30 UTC
Probably fixed with Bug 490552. We need a video sample for testing.

Maik
Comment 2 Maik Qualmann 2025-01-23 22:00:34 UTC
Fixed with Bug 499074.

Maik