Bug 469408 - Tags added to videos files (mp4 or mov) in Digikam 8.0.0 are +written to file but not recognized in other software
Summary: Tags added to videos files (mp4 or mov) in Digikam 8.0.0 are +written to file...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Video (other bugs)
Version First Reported In: 8.6.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-06 09:11 UTC by malte.boensch
Modified: 2025-02-23 19:21 UTC (History)
4 users (show)

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


Attachments
tag-missing-in-windows-explorer (104.22 KB, image/jpeg)
2025-02-23 08:46 UTC, malte.boensch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malte.boensch 2023-05-06 09:11:36 UTC
SUMMARY
See Digicam tags written to videos using exiftool extension in other software (e.g. Synology Photos).

STEPS TO REPRODUCE
1. Ensure that in Digicam settings metadata is being written using exiftool extension
2. Write any tag to a video file (e.g. mp4 or mov) using Digicam 8.0.0
3. Upload to synology photos and check "information" (=metadata) that is being recognized there

OBSERVED RESULT
The tag (in my case "Favorit") is indeed written into the video's metadata. (See below extract from exiftool.exe export).
However, neither Windows File Details nor Synology Photos recognize the tag in the file.

EXPECTED RESULT
Since the tag is indeed written into the MP4 file, I was hoping that it is also recognized by other programs (e.g. Synology).



SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Metadata analysis using exiftool.exe:
[...]
Last Keyword XMP                : Favorit
Categories                      : <Categories><Category Assigned="1">Favorit</Category></Categories>
Subject                         : Favorit
Tags List                       : Favorit
[...]
Hierarchical Subject            : Favorit
Catalog Sets                    : Favorit
Comment 1 caulier.gilles 2023-05-06 09:27:36 UTC
Well, if extra software are not able to parse XMP contents and import tags written in standard places, we cannot do anything...

Gilles Caulier
Comment 2 malte.boensch 2023-05-06 10:10:53 UTC
I suppose tagging photos and videos is a different thing - and I know nothing about it.
What I observe however is that both person/face-tags or other tags attached to videos are also not visible in a "standard" software like Windows Explorer (when viewing file details).
For photos that is no problem.

Is there any opportunity to write the tag somehow differently?
Comment 3 Maik Qualmann 2023-05-06 16:23:00 UTC
Git commit a5aaceaa533475f768630e13fd0eb03aa4ad2ce7 by Maik Qualmann.
Committed on 06/05/2023 at 16:22.
Pushed by mqualmann into branch 'master'.

write QuickTime itemList to video files

M  +10   -0    core/libs/metadataengine/exiftool/exiftoolparser_command.cpp
M  +1    -0    core/libs/metadataengine/exiftool/exiftoolparser_p.h

https://invent.kde.org/graphics/digikam/commit/a5aaceaa533475f768630e13fd0eb03aa4ad2ce7
Comment 4 Maik Qualmann 2023-05-06 16:24:55 UTC
Windows Explorer only supports QuickTime Metadata in video files, not XMP. With the next digiKam-8.1.0 test version we will see if it works.

Maik
Comment 5 malte.boensch 2023-05-06 16:35:15 UTC
Thx! Would this potentially cover both MOV and MP4 files?
Comment 6 Maik Qualmann 2023-05-06 17:26:04 UTC
Git commit 6283610d7a66e7abb219818c589e30b6cee2a432 by Maik Qualmann.
Committed on 06/05/2023 at 17:25.
Pushed by mqualmann into branch 'master'.

more adjustments to Windows Explorer

M  +3    -1    core/libs/metadataengine/exiftool/exiftoolparser_command.cpp

https://invent.kde.org/graphics/digikam/commit/6283610d7a66e7abb219818c589e30b6cee2a432
Comment 7 Maik Qualmann 2023-05-06 18:35:43 UTC
Git commit 2f58f62568254dd5cecd5ef359caef623a482a76 by Maik Qualmann.
Committed on 06/05/2023 at 18:34.
Pushed by mqualmann into branch 'master'.

add delete QuickTime metadata

M  +13   -5    core/libs/metadataengine/exiftool/exiftoolparser_command.cpp

https://invent.kde.org/graphics/digikam/commit/2f58f62568254dd5cecd5ef359caef623a482a76
Comment 8 Maik Qualmann 2023-05-15 05:48:16 UTC
Git commit cb257633de0a1da01eda75d4a8305092465b33e4 by Maik Qualmann.
Committed on 15/05/2023 at 05:46.
Pushed by mqualmann into branch 'master'.

disable writing to video QuickTime metadata
At the moment we don't have a way to import
the metadata in a configurable way.

M  +4    -3    core/libs/metadataengine/exiftool/exiftoolparser_command.cpp

https://invent.kde.org/graphics/digikam/commit/cb257633de0a1da01eda75d4a8305092465b33e4
Comment 9 Maik Qualmann 2023-06-04 18:52:51 UTC
*** Bug 470641 has been marked as a duplicate of this bug. ***
Comment 10 malte.boensch 2023-07-15 06:17:46 UTC
Hi,
Is there any update on mp4 support?
Thx
Comment 11 malte.boensch 2024-02-19 06:13:40 UTC
Hi there,
Is this still something in the pipeline?

Cheers
Comment 12 malte.boensch 2024-06-09 15:11:55 UTC
Do you have an update for this bug ?
Comment 13 Maik Qualmann 2024-06-09 20:16:59 UTC
Git commit d3631ae2355734c7cf67f76dd5e55fb62b297e5d by Maik Qualmann.
Committed on 09/06/2024 at 20:16.
Pushed by mqualmann into branch 'master'.

first step to support Microsoft video QuickTime metadata

M  +20   -16   core/libs/metadataengine/exiftool/exiftoolparser_command.cpp

https://invent.kde.org/graphics/digikam/-/commit/d3631ae2355734c7cf67f76dd5e55fb62b297e5d
Comment 14 malte.boensch 2025-02-15 20:02:08 UTC
Hey team, 
Unfortunately this is still an issue. Is there an opportunity to getting this fixed?
Comment 15 Maik Qualmann 2025-02-15 20:07:23 UTC
I tested it with Windows Explorer, it works.

Maik
Comment 16 Maik Qualmann 2025-02-15 20:16:51 UTC
We write tags in XMP and QuickTime containers. The question is which metadata entry Synology Photos only supports for tags.
A sample video that contains tags that are recognized by Synology Photos would be helpful. At the moment we are compatible with Windows Explorer.

Maik
Comment 17 malte.boensch 2025-02-23 08:46:49 UTC
Created attachment 178762 [details]
tag-missing-in-windows-explorer
Comment 18 malte.boensch 2025-02-23 08:48:57 UTC
I used digikam 8.6.0 to tag this video with a tag called "Favorit".
See video: https://drive.google.com/file/d/1c4RWin_WqvP89dcCMA_fDqP3mAUOyNFK/view?usp=sharing

The tag is visible using the exif tool:

ExifTool Version Number         : 12.62
File Name                       : IMG_20250222_151515.MOV
File Size                       : 21 MB
File Type                       : MOV
File Type Extension             : mov
Last Keyword XMP                : Favorit
Categories                      : <Categories><Category Assigned="1">Favorit</Category></Categories>
Subject                         : Favorit
Tags List                       : Favorit
Hierarchical Subject            : Favorit
Catalog Sets                    : Favorit
Category                        : Favorit

But the tag is not visible looking at "Details" in Windows Explorer (see screenshot)
You said you are seeing the tag in Windows Explorer?

The tag is also not visible in "Synology Photos" - but this might be more of a Synology Photos problem.
Comment 19 Maik Qualmann 2025-02-23 09:44:54 UTC
Well, the metadata is correctly written to Quicktime Microsoft:Category. If I do it with an MP4 file, it works with Explorer without any problems. Explorer doesn't seem to support MOV files with metadata, at least here under Windows 10. Because I can't set a rating, title or tags with Explorer.
I'll test this later with Windows 11. This would be more of a Microsoft problem with supporting the MOV format.

Maik
Comment 20 Maik Qualmann 2025-02-23 10:22:22 UTC
The same thing happens here under Windows 11, Explorer can neither read nor change this metadata.
You have to find out for yourself whether there is an extension that makes it possible to change MOV files. There is a lot of information about this on the web, most people have the same problem with MOV files and Explorer.

From digiKam's point of view, we can't do anything more. I'm closing the bug now. If there is new information that shows we need to change something, you can reopen it.

Maik
Comment 21 Maik Qualmann 2025-02-23 10:35:00 UTC
I tested it with a sample MOV file from the web, and it works without any problems. It depends on the MOV file whether Explorer supports it.

Maik
Comment 22 Maik Qualmann 2025-02-23 10:51:11 UTC
Can you please try a video from your Apple smartphone that has not yet been edited with a program to see if Explorer can change metadata?

Maik
Comment 23 Maik Qualmann 2025-02-23 19:21:43 UTC
This post has the solution:

https://discussions.apple.com/thread/255827435?sortBy=rank

The presence of this metadata entry "FullFrameRatePlaybackIntent" prevents Windows Explorer from displaying or changing metadata in Apple Video files. I confirm that after deleting the entry, Windows Explorer displays the metadata correctly.

Maik