Bug 500043 - GPS being deleted from .mp4 when I "Read metadata from file to database"
Summary: GPS being deleted from .mp4 when I "Read metadata from file to database"
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Video (show other bugs)
Version: 8.5.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-14 06:24 UTC by Jocelyn
Modified: 2025-04-11 18:13 UTC (History)
2 users (show)

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


Attachments
Image of the Metadata Behaviour settings I have selected (231.88 KB, image/jpeg)
2025-02-14 09:02 UTC, Jocelyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn 2025-02-14 06:24:59 UTC
SUMMARY
GPS information disappears after adding tags and then clicking "Read metadata from file to database" 

STEPS TO REPRODUCE
1. Add a .mp4 file to my library, it's added to the database when I open digiKam, showing correct GPS data 
2. Add a tag to the .mp4 
3. Click "More > Read metadata from file to database" or "Item > Reread Metadata from File"

OBSERVED RESULT
The GPS data disappears (no information, it's not just set to latitude "0" or anything like that). 

If I then add the GPS data back to the file using the "Item > Edit Geolocation" tool, and again click "More > Read metadata from file to database", the GPS data remains and isn't deleted again. 

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Thank you so much for the .mp4 functionality, I've been told it's not a core feature for Digikam so I really appreciate being able to manage my photo and video tagging in the same place!
Comment 1 caulier.gilles 2025-02-14 06:51:49 UTC
Hi,

I think this subject have already talk in this room : 

Did you use the ExifTool backend for the metadata ? Look in digiKam/Setup/metadata for details?

https://docs.digikam.org/en/setup_application/metadata_settings.html#behavior-settings

Did you tried the 8.6.0 pre-release where we already fixed a lots of files?

https://files.kde.org/digikam/
https://invent.kde.org/graphics/digikam/-/blob/master/NEWS?ref_type=heads

Best

Gilles Caulier
Comment 2 Maik Qualmann 2025-02-14 07:14:13 UTC
To manage video files with tags and geoinformation, writing with ExifTool must be enabled. Reading with ExifTool does not need to be enabled, as video files are handled with ExifTool and FFmpeg anyway.

Maik
Comment 3 Jocelyn 2025-02-14 09:02:41 UTC
Created attachment 178350 [details]
Image of the Metadata Behaviour settings I have selected

I've selected "Delegate to ExifTool backend all operations to write metadata to files" but it doesn't seem to have made a difference.
I haven't tried the 8.6.0 but will look into that
Would it make a difference that my ExifTool version is 12.25, I see it's up to 13.19 so I'll see if updating that makes any difference 

(wow your response to my bug report was so fast! thank you for your time. And apologies if I'm not using the bug reporting system very well, I don't know much at all about programming)
Comment 4 Maik Qualmann 2025-02-14 09:14:26 UTC
I tested it here with MP4 files. It could be due to the ExifTool version, use the one that is in the digiKam directory. I think I read something about MP4 in the ExifTool bug reports.

Maik
Comment 5 caulier.gilles 2025-04-11 18:13:34 UTC
Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from
scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

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

Thanks in advance
Best regards

Gilles Caulier