[Digikam-users] Video sorting by date from metadata

digikam-users at kde.org digikam-users at kde.org
Wed Mar 23 10:52:25 GMT 2016


I'm struggling to get this to work properly in digikam 4.14.

Images are sorted correctly by the date/time that's present in the
metadata, however video files are sorted according to the file creation
time rather than the metadata.

My test video file is in a MP4 container, with the correct metadata set (as
far as I'm aware). I also added a custom exiftool key for xmp-video to
include the XMP tags supported according to the patch to the following bug:

https://bugs.kde.org/show_bug.cgi?id=351142

Any suggestions?

My exiftool config is as follows:

%Image::ExifTool::UserDefined::video = (
    GROUPS        => { 0 => 'XMP', 1 => 'XMP-video', 2 => 'Image' },
    NAMESPACE     => { 'video' => 'http://mydomain/video' },
    WRITABLE      => 'string',
    DateTimeOriginal => { },
    DateUTC => { },
    ModificationDate => { },
    DateTimeDigitized => { },
);

# The %Image::ExifTool::UserDefined hash defines new tags to be added
# to existing tables.
%Image::ExifTool::UserDefined = (
    # new XMP namespaces (ie. XXX) must be added to the Main XMP table:
    'Image::ExifTool::XMP::Main' => {
        video => {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::video',
            },
        },
    },
);

%Image::ExifTool::UserDefined::Shortcuts = (
    extramp4dates =>
['XMP-video:DateTimeOriginal','XMP-video:DateUTC','XMP-video:ModificationDate','XMP-video:DateTimeDigitized'],
);

1;  #end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20160323/78cd49ac/attachment.html>


More information about the Digikam-users mailing list