https://bugs.kde.org/show_bug.cgi?id=432761
Bug ID: 432761
Summary: reread of XMP metadata leaves tag hierarchy scrambled
Product: digikam
Version: 6.4.0
Platform: Ubuntu Packages
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Metadata-Xmp
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 135575
--> https://bugs.kde.org/attachment.cgi?id=135575&action=edit
screen dump of extra hierarchy level in tags
SUMMARY
The tag hierarchy has an extra level that cannot be removed by reassigning the
tag.
STEPS TO REPRODUCE
When the .xmp file for a .mp4 is modified like so:
<lr:hierarchicalSubject>
<rdf:Bag>
<rdf:li>2020|11 Bob</rdf:li>
and then "album/reread meta data from files" is used the result is 2020/2020/11
Bob (see attached image for an example). There is an extra level in the tag
hierarchy.
If I use the Captions/Tags tab to change the tag from 2020/2020/11 Bob to
2020/11 Bob it fails, the tag is left set to 2020/2020/11 Bob.
To reproduce copy the attached .xmp file to <any>.mp4.xmp and rescan the
directory.
OBSERVED RESULT
A tag of 2020/2020/11 Bob in the Tags window, and cannot change in the tags
manager
EXPECTED RESULT
2020/11 Bob
SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
$ uname -a
Linux serval 5.8.0-7630-generic #32~1609193707~20.04~781bb80~dev-Ubuntu SMP Tue
Jan 5 21:22:25 U x86_64 x86_64 x86_64 GNU/Linu
ADDITIONAL INFORMATION
The .xmp file (since I cannot apparently attach two files):
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:video="http://www.video/"
xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/"
xmlns:audio="http://www.audio/"
xmlns:exif="http://ns.adobe.com/exif/1.0/"
xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
xmlns:digiKam="http://www.digikam.org/ns/1.0/"
xmlns:MicrosoftPhoto="http://ns.microsoft.com/photo/1.0/"
xmlns:acdsee="http://ns.acdsee.com/iptc/1.0/"
xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
xmlns:mediapro="http://ns.iview-multimedia.com/mediapro/1.0/"
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
video:duration="28537"
video:MaxBitRate="7744897"
video:StreamCount="2"
video:Codec="h264"
video:CodecDescription="H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"
video:Format="yuv420p"
video:ColorMode="smpte170m"
video:ColorSpace="CCIR-601"
video:Width="1920"
video:FrameWidth="1920"
video:SourceImageWidth="1920"
video:Height="1080"
video:FrameHeight="1080"
video:SourceImageHeight="1080"
video:FrameSize="w:1920, h:1080, unit:pixels"
video:AspectRatio="16/9"
video:FrameRate="56"
video:BitDepth="24"
video:Language="und"
video:TrackCreateDate="3687697442"
video:HandlerDescription="ISO Media file produced by Google Inc. Created on:
11/08/2020."
video:MajorBrand="mp42"
video:CompatibleBrands="isommp42"
video:MinorVersion="0"
video:DateTimeOriginal="2020-11-09T00:24:02"
video:DateUTC="2020-11-09T00:24:02"
video:ModificationDate="2020-11-09T00:24:02"
video:DateTimeDigitized="2020-11-09T00:24:02"
video:FileName="PXL_20201108_232847662.mp4"
video:FileSize="26"
video:FileType="mp4"
video:MimeType="video/mp4"
xmpDM:duration="28537"
xmpDM:videoColorSpace="CCIR-601"
xmpDM:videoFrameSize="w:1920, h:1080, unit:pixels"
xmpDM:videoPixelAspectRatio="16/9"
xmpDM:videoFrameRate="Other"
xmpDM:videoPixelDepth="8Int"
xmpDM:shotDate="Sun Nov 8 16:24:02 2020"
xmpDM:audioSampleRate="44100"
xmpDM:audioChannelType="Stereo"
xmpDM:audioSampleType="32Float"
audio:Codec="aac"
audio:CodecDescription="AAC (Advanced Audio Coding)"
audio:SampleRate="44100"
audio:ChannelType="Stereo"
audio:Format="fltp"
audio:SampleType="32Float"
audio:TrackLang="eng"
audio:TrackCreateDate="3687697442"
audio:HandlerDescription="ISO Media file produced by Google Inc. Created on:
11/08/2020."
exif:DateTimeOriginal="2020-11-09T00:24:02"
exif:DateTimeDigitized="2020-11-09T00:24:02"
exif:PixelXDimension="1920"
exif:PixelYDimension="1080"
tiff:DateTime="2020-11-09T00:24:02"
tiff:ImageWidth="1920"
tiff:ImageLength="1080"
xmp:MetadataDate="2020-11-09T00:24:02"
xmp:Rating="0"
xmp:ModifyDate="2020-11-09T00:24:02"
xmp:CreateDate="2020-11-09T00:24:02"
digiKam:PickLabel="0"
digiKam:ColorLabel="0"
MicrosoftPhoto:Rating="0"
acdsee:rating="0"
acdsee:notes="2020/11/08 14:56:19;Target Practice ;;@ Huffaker Springs, east
side of Reno"
acdsee:categories="<Categories><Category
Assigned="0">Friends<Category
Assigned="1">Bob</Category></Category><Category
Assigned="0">2020<Category Assigned="1">11
Bob</Category></Category></Categories>"
photoshop:DateCreated="2020-11-09T00:24:02"
photoshop:Urgency="0">
<exif:UserComment>
<rdf:Alt>
<rdf:li xml:lang="x-default">2020/11/08 14:56:19;Target Practice ;;@
Huffaker Springs, east side of Reno</rdf:li>
</rdf:Alt>
</exif:UserComment>
<tiff:ImageDescription>
<rdf:Alt>
<rdf:li xml:lang="x-default">2020/11/08 14:56:19;Target Practice ;;@
Huffaker Springs, east side of Reno</rdf:li>
</rdf:Alt>
</tiff:ImageDescription>
<digiKam:TagsList>
<rdf:Seq>
<rdf:li>Friends/Bob</rdf:li>
<rdf:li>2020/11 Bob</rdf:li>
</rdf:Seq>
</digiKam:TagsList>
<digiKam:CaptionsDateTimeStamps>
<rdf:Alt>
<rdf:li xml:lang="x-default">2021-02-10T12:06:09</rdf:li>
</rdf:Alt>
</digiKam:CaptionsDateTimeStamps>
<MicrosoftPhoto:LastKeywordXMP>
<rdf:Bag>
<rdf:li>Friends/Bob</rdf:li>
<rdf:li>2020/11 Bob</rdf:li>
</rdf:Bag>
</MicrosoftPhoto:LastKeywordXMP>
<lr:hierarchicalSubject>
<rdf:Bag>
<rdf:li>Friends|Bob</rdf:li>
<rdf:li>2020|11 Bob</rdf:li>
</rdf:Bag>
</lr:hierarchicalSubject>
<mediapro:CatalogSets>
<rdf:Bag>
<rdf:li>Friends|Bob</rdf:li>
<rdf:li>2020|11 Bob</rdf:li>
</rdf:Bag>
</mediapro:CatalogSets>
<dc:subject>
<rdf:Bag>
<rdf:li>Bob</rdf:li>
<rdf:li>11 Bob</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>
<rdf:Alt>
<rdf:li xml:lang="x-default">2020/11/08 14:56:19;Target Practice ;;@
Huffaker Springs, east side of Reno</rdf:li>
</rdf:Alt>
</dc:description>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
--
You are receiving this mail because:
You are watching all bug changes.