Bug 351142 - Add metadata tags support for video files time-stamp
Summary: Add metadata tags support for video files time-stamp
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Video (show other bugs)
Version: 4.12.0
Platform: unspecified All
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-10 00:37 UTC by gomi2013
Modified: 2017-08-12 06:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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