Bug 380847 - MP4 video not importing with correct date
Summary: MP4 video not importing with correct date
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Video (show other bugs)
Version: 5.5.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-05 01:36 UTC by matrix43547
Modified: 2018-02-28 10:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0
Sentry Crash Report:


Attachments
Correct Date in Properties Panel (143.96 KB, image/png)
2017-06-05 14:29 UTC, matrix43547
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matrix43547 2017-06-05 01:36:17 UTC
Hello,

In attempting to migrate my DAM to digikam I have been testing it with some MP4 files. Digikam is not finding the correct date.

For a file "a.mp4" I have a particular date and time (the correct one) for all metadata fields except for Encoding Time. It appears that digikam is importing the MP4 using Encoding Time which sorts it incorrectly within my library. 

Is there anyway to change the time that Digikam imports MP4's under? Or is there a way to change MP4 encoding metadata (not supported by Exiftool).

Thanks!
Comment 1 matrix43547 2017-06-05 01:58:13 UTC
Additionally, when I view the MP4 properties via the 'properties' pane, the correct date is shown, however it still sorts incorrectly when viewing images by date.
Comment 2 caulier.gilles 2017-06-05 10:43:38 UTC
Can you take a screenshot where you see the MP4 correct date in right side bar ?

Gilles Caulier
Comment 3 matrix43547 2017-06-05 14:29:46 UTC
Created attachment 105929 [details]
Correct Date in Properties Panel

date correct in side panel
Comment 4 matrix43547 2017-06-05 14:30:24 UTC
Hey Giles, here you can see it is sorted in May 2014, yet the date is correctly showing as December 2013.
Comment 5 caulier.gilles 2017-06-05 15:14:12 UTC
The date from properties panel is the File System date, not the MP4 metadata date.

Gilles Caulier
Comment 6 matrix43547 2017-06-15 00:33:46 UTC
From what metadata field does Digikam then source the MP4 date? As I said in the original post, all metadata fields have the correct date except for the Encoding Time. I viewed metadata using Exiftool.

Cheers
Comment 7 matrix43547 2017-06-17 00:32:29 UTC
Digikam will not display any metadata from my mp4 files in the properties pane.
Comment 8 caulier.gilles 2018-02-28 10:59:26 UTC
With 6.0.0, we have now a FFMpeg low level metadata parser based on libav C API
for video files database registration.

The Exiv2 video support is not used anymore as this code is buggous and nobody
sound motivated in Exiv2 to finalize the code.

The original post for this file must be fixed now and video metadata support
with ffmpeg must be enough to populate database entries.

Gilles Caulier