https://bugs.kde.org/show_bug.cgi?id=432761
--- Comment #6 from Ervan Darnell <edarn...@kelvinist.com> --- All *xmp files are *.mp4.xmp in the relevant directory, so a duplicate .xmp is not the answer. I unchecked 2020/2020/11 Bob, checked 2020/11 Bob (in the Tags UI), then clicked "apply". The log follows. Your theory there is some problem with the database makes sense as the .XMP seems fine. I imported many files with x.y keywords. Some of the get parsed as x/y, some as x/x.y, and some as x.y (where '/' is the hierarchy separator in digiKam:TagsList). I was able to clean many of these by manually assigning tags. So, things are usually working, but there are several cases, 2020/11 Bob one of them, where I cannot clean them up. I mean that other very similar .XMP files worked, so that only leaves the theory there is something in the database different in this case. It seems odd to me that digiKam should be keeping any of this state when I explicitly request a metadata reread. Something is both munged in the database and not being cleaned out. I'm not willing to share the whole database (as there is a lot of confidential information in there), but I can open it and look at some tables if you tell me where to start on that. For instance, the tags table contains: 1197 22 11 Bob 1199 1191 11 Bob The pid of 22 is 0. The pids for 1191 (in TagsTree) are: 1191 0 1191 22 and 22 in Tags: 22 0 2020 apparently representing 2020/11 Bob and 2020/2020/11 Bob both, but that doesn't explain why I cannot reassign tags. Digikam::DMetadata::loadUsingFFmpeg: Parse metadada with FFMpeg: "/home/ervan/Pictures/Personal/2020/11 10 Yosemite/PXL_20201108_232847662.mp4" Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg video stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "und")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg audio stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "eng")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg root container metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("compatible_brands", "isommp42")("creation_time", "2020-11-09T00:24:02.000000Z")("major_brand", "mp42")("minor_version", "0")) Digikam::DMetadata::loadUsingFFmpeg: ------------------------------------------ Digikam::MetadataHub::writeTags: Writing tags Digikam::MetadataHub::writeTags: -------------------------- New Keywords ("Bob", "11 Bob") Digikam::MetaEngine::setIptcKeywords: "/home/ervan/Pictures/Personal/2020/11 10 Yosemite/PXL_20201108_232847662.mp4" ==> New Iptc Keywords: ("11 Bob", "Bob") Digikam::MetaEngine::save: MetaEngine::metadataWritingMode 3 Digikam::MetaEngine::save: Will write Metadata to file "/home/ervan/Pictures/Personal/2020/11 10 Yosemite/PXL_20201108_232847662.mp4" Digikam::MetaEngine::Private::printExiv2ExceptionError: Cannot save metadata to image using Exiv2 (Error # 11 : "/home/ervan/Pictures/Personal/2020/11 10 Yosemite/PXL_20201108_232847662.mp4: The file contains data of an unknown image type" Digikam::MetaEngine::save: Will write XMP sidecar for file "PXL_20201108_232847662.mp4" Digikam::MetaEngine::Private::saveOperations: wroteComment: false Digikam::MetaEngine::Private::saveOperations: wroteEXIF: true Digikam::MetaEngine::Private::saveOperations: wroteIPTC: true Digikam::MetaEngine::Private::saveOperations: wroteXMP: true Digikam::MetaEngine::save: Metadata for file "PXL_20201108_232847662.mp4" written to XMP sidecar. Digikam::DMetadata::loadUsingFFmpeg: Parse metadada with FFMpeg: "/home/ervan/Pictures/Personal/2020/11 10 Yosemite/PXL_20201108_232847662.mp4" Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg video stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "und")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg audio stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "eng")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg root container metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("compatible_brands", "isommp42")("creation_time", "2020-11-09T00:24:02.000000Z")("major_brand", "mp42")("minor_version", "0")) Digikam::DMetadata::loadUsingFFmpeg: ------------------------------------------ Digikam::CoreDB::clearMetadataFromImage: Clean up the image information, the file will be scanned again Digikam::MetaEngine::getDigitizationDateTime: DateTime (Exif digitalized): QDateTime(2020-11-09 00:24:02.000 PST Qt::LocalTime) Digikam::MetaEngine::getDigitizationDateTime: DateTime (XMP-Exif digitalized): QDateTime(2020-11-09 00:24:02.000 PST Qt::LocalTime) Digikam::ItemMarkerTiler::slotSourceModelReset: ---- Digikam::MetaEngine::getXmpTagStringSeq: XMP String Seq ( Xmp.digiKam.TagsList ): ("2020/11 Bob", "Friends/Bob") Digikam::ItemScanner::scanTags: Pick Label found : 0 Digikam::ItemScanner::scanTags: Assigned Pick Label Tag : 15 Digikam::ItemScanner::scanTags: Color Label found : 0 Digikam::ItemScanner::scanTags: Assigned Color Label Tag : 5 Digikam::ItemScanner::commit: Scanning took 46 ms Digikam::ItemScanner::~ItemScanner: Finishing took 7 ms Digikam::DMetadata::loadUsingFFmpeg: Parse metadada with FFMpeg: "/home/ervan/Pictures/Personal/2020/11 10 Yosemite/PXL_20201108_232847662.mp4" Digikam::DMetadata::loadUsingFFmpeg: Parse metadada with FFMpeg: "/home/ervan/Pictures/Personal/2020/11 10 Yosemite/PXL_20201108_232847662.mp4" Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg video stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "und")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg audio stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "eng")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg root container metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("compatible_brands", "isommp42")("creation_time", "2020-11-09T00:24:02.000000Z")("major_brand", "mp42")("minor_version", "0")) Digikam::DMetadata::loadUsingFFmpeg: ------------------------------------------ Digikam::ThumbnailCreator::createThumbnail: Trying to load video preview with FFmpeg Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg video stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "und")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg audio stream metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("creation_time", "2020-11-09T00:24:02.000000Z")("handler_name", "ISO Media file produced by Google Inc. Created on: 11/08/2020.")("language", "eng")) Digikam::DMetadata::loadUsingFFmpeg: ----------------------------------------- Digikam::DMetadata::loadUsingFFmpeg: -- FFMpeg root container metadata entries : Digikam::DMetadata::loadUsingFFmpeg: QMap(("compatible_brands", "isommp42")("creation_time", "2020-11-09T00:24:02.000000Z")("major_brand", "mp42")("minor_version", "0")) Digikam::DMetadata::loadUsingFFmpeg: ------------------------------------------ Digikam::ThumbnailCreator::createThumbnail: Trying to load video preview with FFmpeg Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using 16 CPU core to run threads Digikam::ActionThreadBase::run: Action Thread run 1 new jobs Digikam::ActionThreadBase::slotJobFinished: One job is done Digikam::ActionThreadBase::cancel: Cancel Main Thread Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using 16 CPU core to run threads Digikam::ActionThreadBase::run: Action Thread run 1 new jobs Digikam::ActionThreadBase::slotJobFinished: One job is done Digikam::ActionThreadBase::cancel: Cancel Main Thread -- You are receiving this mail because: You are watching all bug changes.