For photographs, digikam obtains the date that the photo was taken from the exif metadata of the image, and then falls back to using the creation date of the file if exif metadata is unavailable. Currently it does not do the same for videos, it just uses the file creation date. I suggest that it should scan the metadata of videos to obtain the creation date. The following exiv2 tags could be looked for: Xmp.video.DateTimeOriginal Xmp.video.DateUTC Xmp.video.ModificationDate Xmp.video.DateTimeDigitized Reproducible: Always Steps to Reproduce: Add a video file to an album See what date digikam has assigned to it Actual Results: Digikam uses the file creation date as reported by the operating system Expected Results: If there is a creation date recorded in the video file's metadata, digikam should use that.
Veaceslav, I will patch libkexiv2 to support date extract with video file through common methods. I will backport as well this patch in Frameworks, but you must take a care with your new implementation of MetadatHub to add these tags in list of supported info to manage. Gilles
Git commit 4350f5146525d0a78664d918c5b918506f72e066 by Gilles Caulier. Committed on 14/08/2015 at 21:15. Pushed by cgilles into branch 'master'. add XMP video time stamp tags to handle video files date from metadata FIXED-IN: 4.13.0 M +118 -8 libkexiv2/kexiv2image.cpp http://commits.kde.org/libkexiv2/4350f5146525d0a78664d918c5b918506f72e066
Git commit 447bede55d2e1d0d8dc9eb20be895c7d48701cdc by Gilles Caulier. Committed on 14/08/2015 at 21:26. Pushed by cgilles into branch 'frameworks'. backport commit #4350f5146525d0a78664d918c5b918506f72e066 from git /master to frameworks branch M +118 -8 src/kexiv2image.cpp http://commits.kde.org/libkexiv2/447bede55d2e1d0d8dc9eb20be895c7d48701cdc