Bug 351142

Summary: Add metadata tags support for video files time-stamp
Product: [Applications] digikam Reporter: gomi2013
Component: Metadata-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles, veaceslav.munteanu90
Priority: NOR    
Version: 4.12.0   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In: 4.13.0
Sentry Crash Report:

Description gomi2013 2015-08-10 00:37:41 UTC
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.
Comment 1 caulier.gilles 2015-08-10 10:03:11 UTC
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
Comment 2 caulier.gilles 2015-08-14 21:17:07 UTC
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
Comment 3 caulier.gilles 2015-08-14 21:27:09 UTC
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