Bug 383588 - Imported video files have time shifted exactly 2 hours later
Summary: Imported video files have time shifted exactly 2 hours later
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Video (show other bugs)
Version: 5.5.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-16 09:14 UTC by Piotr
Modified: 2018-05-13 10:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr 2017-08-16 09:14:37 UTC
I have noticed that all my video files imported from USB device (SD card) have time shifted exactly 2 hours later (ie. original file has 16:00 creation time, digikam claims it is 18:00). I have import rules which renames my files (videos and pictures) according to its date, so my video files also have wrong file names.

On my camera side everything is OK of course, the dates are right.

In import window (before the actual import operation) I can  already see wrong time on video files. Please notice that pictures time is OK.

I'm not sure when this time shift occurred first time (maybe with dk5.6) but it is quite annoying.

Regards
Piotr
Comment 1 caulier.gilles 2017-08-16 09:20:01 UTC
What's the date of video file from SD card ? As video metadata cannot be read with Exiv2 for the moment (else it crash violently), the FS time stamp is used instead.

Gilles Caulier
Comment 2 caulier.gilles 2018-02-28 10:54:59 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
Comment 3 Piotr 2018-05-12 20:39:58 UTC
The video file time on the SD card is exactly the same as the one on the DK. So it is wrong time, and I don't know why. Checked with dolphin. So DK is doing what it can. A bug of the camera software? It is Olympus EPL-3.

I have not tried yet DK6 in the import of the video files, but I'm afraid it will not change anything.
P.
Comment 4 Piotr 2018-05-13 10:50:27 UTC
It is not camera problem. The same video on the camera has the proper time, not shifted. So it is something between SD card and OS. What is it?
Comment 5 caulier.gilles 2018-05-13 10:57:20 UTC
If you use 5.x, the video metadata handling was the hell through Exiv2.

With 6.0.0, ffmpeg is now used in background and this must fix the problem.

But for performance reason, in camera interface, the metadata are not read by default to catch the video date. There is an option to enable in Setup/camera for that. When this open is disable, the file system date is used.

You can try the last 6.0.0 pre-release as AppImage bundle available here :

https://files.kde.org/digikam/

Gilles Caulier