Bug 484762

Summary: DigiKam doesn't recognize XMP video tags.
Product: [Applications] digikam Reporter: Santiago Figarola <santiagofigarola2019>
Component: Tags-KeywordsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.4.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.4.0
Sentry Crash Report:

Description Santiago Figarola 2024-03-30 15:03:46 UTC
SUMMARY

I put the tags on my images and videos using F-stop on Android. DigiKam perfectly recognizes the tags of the images, but the videos' (which are in XMP files) go ignored.


STEPS TO REPRODUCE
1. Add tags to videos, which creates an XMP file.
2. Open DigiKam and search for tags.
3. The videos do not show the assigned tags, nor you can find the video by its tag.

OBSERVED RESULT
DigiKam doesn't recognize XMP video tags.

EXPECTED RESULT
DigiKam recognizes XMP video tags.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2024-03-30 15:07:36 UTC
What does "Add tags to videos, which creates an XMP file" mean? Are we talking about sidecars?
digiKam definitely recognizes XMP tags in videos. Please upload a short sample video.

Maik
Comment 2 Maik Qualmann 2024-03-30 15:27:21 UTC
Ok, saving metadata is only possible in the Pro version, I won't buy F-spot now. But they should be sidecars.
Have you activated sidecar reading in digiKam? Have you considered that there are different sidecar formats, i.e. BASENAME.EXT.xmp and BASENAME.xmp (mostly commercial programs). Have you selected the corresponding option in the digiKam settings?

Maik
Comment 3 Santiago Figarola 2024-03-30 15:33:46 UTC
(In reply to Maik Qualmann from comment #2)
> Ok, saving metadata is only possible in the Pro version, I won't buy F-spot
> now. But they should be sidecars.
> Have you activated sidecar reading in digiKam? Have you considered that
> there are different sidecar formats, i.e. BASENAME.EXT.xmp and BASENAME.xmp
> (mostly commercial programs). Have you selected the corresponding option in
> the digiKam settings?
> 
> Maik

Hi. 
Yes, in "Sidecards", I have "Read from sidecar files" checked. The sidecar filename format on F-stop is "image.xmp"
Comment 4 Maik Qualmann 2024-03-30 15:41:47 UTC
Then you need to enable the option for “Sidecar filenames compatible with commercial programs”. After re-reading the metadata, everything will be available.

Maik
Comment 5 Santiago Figarola 2024-03-30 15:59:42 UTC
(In reply to Maik Qualmann from comment #4)
> Then you need to enable the option for “Sidecar filenames compatible with
> commercial programs”. After re-reading the metadata, everything will be
> available.
> 
> Maik

It seems to be finally working. I had to manually prompt DigiKam to re-read the metafiles. Thanks for the help.
Comment 6 Santiago Figarola 2024-03-30 19:25:34 UTC
(In reply to Maik Qualmann from comment #4)
> Then you need to enable the option for “Sidecar filenames compatible with
> commercial programs”. After re-reading the metadata, everything will be
> available.
> 
> Maik

One question: is it possible to make DigiKam write to the item and sidecar, ONLY when the item is a video?
Comment 7 Maik Qualmann 2024-03-30 19:49:04 UTC
We already have a bug report as a request to create a configuration for this.
But if you don't activate writing metadata with ExifTool and activate "Only in read-only entries" as an option for writing in sidecar, it should work.
Read-only means not only that the files are read-only, but also that Exiv2 cannot write this file type.

Maik
Comment 8 Santiago Figarola 2024-03-30 20:34:34 UTC
(In reply to Maik Qualmann from comment #7)
> We already have a bug report as a request to create a configuration for this.
> But if you don't activate writing metadata with ExifTool and activate "Only
> in read-only entries" as an option for writing in sidecar, it should work.
> Read-only means not only that the files are read-only, but also that Exiv2
> cannot write this file type.
> 
> Maik

Alright. Thank you so much.