Bug 389619

Summary: digikam does not read from sidecars for video/mp4
Product: [Applications] digikam Reporter: Andrius <aegoreev>
Component: Metadata-SidecarAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde.bugs
Priority: NOR    
Version: 5.8.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.9.0

Description Andrius 2018-01-29 22:02:01 UTC
This is continuation of this thread:
http://digikam.1695700.n4.nabble.com/Re-read-metadata-from-a-sidecar-for-mp4-td4704976.html

I have recorded two videos.

In the first video I am adding tags, rating, gps coordinates to a video in my collection. As you can see everything works just fine. digikam adds the information to the database as well as to the xmp sidecar. Rating, tags and GPS icon are seen in thumbnails view.
https://youtu.be/Nef3VvWqozc

In the second video I removed digikamrc as well as the database files and added a video file with an existing xmp sidecar to a new database. Neither tags/rating nor gps logo can be seen in thumbnails view. Trying to 'Reread metadata from Image' only shows an error. If I try to add geolocation once again the error 'Failed to open file' pops up.
https://youtu.be/67pcOJj_3RM

So basically there is no way to import an information from an existing sidecar back to the database. Even though the box 'Read from sidecars' checked in Settings - Metadata - Sidecars. I thought once the box is checked digiKam should read from sidecars automatically.
Comment 1 meku 2018-01-30 22:31:33 UTC
Duplicate of Bug 375570
Comment 2 caulier.gilles 2018-03-05 12:00:53 UTC
Git commit 907f7d8ef3428930e2b3502a7e0d597cfaad1030 by Gilles Caulier.
Committed on 05/03/2018 at 11:56.
Pushed by cgilles into branch 'master'.

Manage video as image : always parse all important file while collection scanning when video information populate the DB.
Related: bug 375570, bug 377133, bug 386921
FIXED-IN: 5.9.0

M  +11   -2    libs/database/item/imagescanner.cpp

https://commits.kde.org/digikam/907f7d8ef3428930e2b3502a7e0d597cfaad1030