Bug 497824 - Wrong location displayed for mp4
Summary: Wrong location displayed for mp4
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Engine (show other bugs)
Version: 8.6.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-23 12:59 UTC by Kristian Karl
Modified: 2024-12-28 10:21 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Karl 2024-12-23 12:59:36 UTC
SUMMARY

When a MP4 video file has a GPS position and it's sidecar file has a different position digikam displays the position of the MP4 file, not it's sidecar file.

STEPS TO REPRODUCE

1.  Metadata settings are: 
   1.1 Behavior tab: Geolocation information = true/enabled
   1.2 Behavior tab: Use ExifTool as backend to read metadata from files = true/enabled
   1.3 Behavior tab: Delegate to ExifTool backend all operations to write metadata to files = true/enabled
   1.4 Sidecars tab: Read and write to sidecar files: true/enabled
       1.4.1 Sidecars tab: Write to XMP sidecar only

2. Add attached location_test.mp4 to an album

3. Change the GPS position using the Geolocation Editor


OBSERVED RESULT

The position of the video file is still displayed as the original. 

EXPECTED RESULT

The displayed position given in 3.

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.05
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.6.66 (64-bit)
Graphics Platform: Wayland
Processors: 32 × 13th Gen Intel® Core™ i9-13900KF
Memory: 94.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3050/PCIe/SSE2

ADDITIONAL INFORMATION

Digikam version: digiKam-8.6.0-20241219T190219-Qt6-x86-64.appimage
Version of exiftool is 13.00
Comment 2 Maik Qualmann 2024-12-23 20:20:06 UTC
Git commit 62cafbb6e508362b3b0ab4e4da45608981006d35 by Maik Qualmann.
Committed on 23/12/2024 at 20:19.
Pushed by mqualmann into branch 'master'.

fix merging sidecar metadata and video files
FIXED-IN: 8.6.0

M  +1    -1    NEWS
M  +2    -6    core/libs/metadataengine/dmetadata/dmetadata_fileio.cpp

https://invent.kde.org/graphics/digikam/-/commit/62cafbb6e508362b3b0ab4e4da45608981006d35
Comment 3 Maik Qualmann 2024-12-23 20:22:38 UTC
To correct the database geolocation information, the metadata must be re-read from the video files.
If a pre-release version with this correction is available.

Maik
Comment 4 Kristian Karl 2024-12-28 10:21:47 UTC
Thank you very much. All good now :+1: