<div dir="ltr"><div>Hi Andreas,<br><br></div>Thanks for the suggestion. Interesting indeed.<br>It shows that all my xmp files are nearly empty, they contain only one row, e.g.:<br><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?><br><br>But if I select two or more files in digikam and press “Write metadata to each file” - voila, the metadata is written and accessible from exiftool and possible to read in clear text with a text editor (the option to write is greyed out if only one file is selected). <br><br>So… How come the metadata is not written when I apply tags to the movie file, like it is when I apply them to a JPG?<br>Unless there is some option in the settings that I have missed, I guess it is a bug. It seems like the xmp file is created once but empty and never updated to contain any data until manually selecting “Write metadata to each file”.<br><br>From now on I at least know how to make sure that the metadata is written for video files also, even if it is an extra step in the workflow. <br><br>One problem remains as well, digikam on my other computer still doesn’t read the metadata from the movie file even if I select “Read metadata from each file to database” (I have the “Read from sidecar files” option checked”).<br><br>Thanks for all tips and suggestions so far!<br><br>BR<br>Anders<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-23 7:52 GMT+02:00 Andreas Mair <span dir="ltr"><<a href="mailto:amair.sob@gmail.com" target="_blank">amair.sob@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Anders,<span class=""><br><br><div class="gmail_extra">> Since I don't find the data in the .xmp with niether exiv2 nor exiftool, it seems like a problem to write.<br><br></div></span><div class="gmail_extra">have you tried to open the xmp file using your favorite text editor? It's a simple text file (XML based) so you can see if data is written or not.<br></div><div class="gmail_extra">I've checked the movies I tagged yesterday and the xmp files contain data (my keywords for example).<br><br></div><div class="gmail_extra">I don't know how to extract the data using exiv2 or exiftool.<br></div><div class="gmail_extra">Maybe your exiv2 or libexiv2 are too old?<br><br></div><div class="gmail_extra">Best regards<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">Andreas<br><br><br><br></div></font></span><div><div class="h5"><div class="gmail_extra"><div class="gmail_quote">2016-05-22 22:36 GMT+02:00 Anders Kamf <span dir="ltr"><<a href="mailto:digikam@kamf.se" target="_blank">digikam@kamf.se</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi!<br><br>Since I don't find the data in the .xmp with niether exiv2 nor exiftool, it seems like a problem to write. The .cmp is created by digikam though, so it writes something. But not the tags which it writes to a jpg-file as it seems. It can of course also be that those two programs cannot extract that specific data, but even if so digikam should be able to.<br><br>Regarding reading metadata it is the same for jpg as for xmp, digikam doesn't re-read metadata of a file in that is present in its database unless manually told to. It won’t automatically recognize that a file is updated outside digikam.<br>(Also, when triggered to re-read digikam appends the metadata of the file to the metadata already in the database, i.e. it is not possible to delete a tag outside digikam and expect it to disappear when re-reading the metadata. As designed.)<br><br><br></div></div>BR<span><font color="#888888"><br></font></span></div></div><span><font color="#888888">Anders<br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-22 17:34 GMT+02:00 Martin (KDE) <span dir="ltr"><<a href="mailto:kde@fahrendorf.de" target="_blank">kde@fahrendorf.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hallo<br>
<br>
So is it a problem in writing the xmp file or reading from them on the<br>
new location?<br>
<br>
I have simmilar problems. Digikam writes xmp files quite fine, but never<br>
reads from xmp automatically if they are changed by another program<br>
(like darktable). I have to sellect the album/file and hit reread<br>
metadata from external file to get it working.<br>
<br>
I hope this will be fixed in upcomming digikam 5.<br>
<br>
Regards<br>
Martin<br>
<span><br>
<br>
Am 22.05.2016 um 17:01 schrieb Anders Kamf:<br>
> Hi,<br>
><br>
> Thanks for your reply Tobias! I'm afraid it doesn't solve the problem or<br>
> answers the questions though.<br>
><br>
> I indeed write meta data to JPG files, including tags, have done so<br>
> since 2009 and it works very well. Sidecar files are created by digikam<br>
> for files it cannot write meta data into, e.g. video files, the settings<br>
> was described in my initial post. It is from those Filename.mp4.xmp or<br>
> Filename.mov.xmp I have tried with both exiv2 and exiftool to extract<br>
> the tags.<br>
><br>
> I'm moving files from my laptop to my server once I have done tagging<br>
> etc (laptop is used because I travel a lot). I usually use rsync, i.e.<br>
> the move is done outside digikam. The photo collection on my servers is<br>
> accessed with "another" digikam from a desktop PC (Windows) and from a<br>
> stand alone Ubuntu (both with setting "Read from sidecar files)". Both<br>
> have their own digikam database, hence all the meta data needs to travel<br>
> with the files.<br>
><br>
> The main question, I'd guess, is whether to expect that the meta data of<br>
> the xmp file corresponds to the one of the jpg file in terms of tags,<br>
> rating etc.?<br>
><br>
> Regards<br>
> Anders<br>
><br>
><br>
> 2016-05-22 15:31 GMT+02:00 Tobias Margiani <<a href="mailto:margianit@gmail.com" target="_blank">margianit@gmail.com</a><br>
</span>> <mailto:<a href="mailto:margianit@gmail.com" target="_blank">margianit@gmail.com</a>>>:<br>
<div><div>><br>
> Hi,<br>
><br>
> I'm not sure if I understand your problem correctly. Are XMP files<br>
> created but<br>
> without (the right) content or are there no XMP files at all (you<br>
> could check<br>
> that with a file manager)?<br>
> I don't use XMP files normally so there might be people who know all<br>
> this<br>
> better but from a few quick tests it looks like exiftool only reads<br>
> xmp files<br>
> if you pass them as argument directly and not if you try to read<br>
> tags from an<br>
> image file (e.g. if you have image.jpg and image.xmp you have to use<br>
> "exiftool<br>
> image.xmp" to read the tags). In my checks there is a "Tags List" entry<br>
> showing the digikam tags.<br>
> To comment on you problem when moving the files. If you only moved<br>
> image files<br>
> the metadata might indeed be lost but if you have moved the whole<br>
> folder the<br>
> xmp files could still be there! So check with a file manager. That<br>
> the tags<br>
> aren't read by digikam may result from your configuration. Are you<br>
> sure that<br>
> you've configured digikam to read metadata from sidecar files.<br>
> Another source of this problem may be that you haven't configured<br>
> digikam to<br>
> write Tags into file at all. You can check in the metadata tab what<br>
> information<br>
> is written to the files.<br>
><br>
> I hope some of this could help.<br>
> Regards<br>
> Tobias<br>
><br>
> Am Samstag, 21. Mai 2016, 10:12:13 CEST schrieb Anders Kamf:<br>
> > Hi!<br>
> ><br>
> > I have the setting "Write to sidecar files": "Write to XMP sidecar<br>
> file for<br>
> > read-only image only", which creates xmp sidecar files for the<br>
> movie files<br>
> > that are in my collection.<br>
> > Now, I thought that this would mean that the tags applied to those<br>
> movies<br>
> > was written to the XMP sidecar file. But that seems not to be the<br>
> case! I<br>
> > now realise that at least neither exiv2 nor exiftool finds those tags.<br>
> > Also, when I access the file from "another" digikam on another<br>
> computer, no<br>
> > metadata seems to be found.<br>
> ><br>
> > If this is true, it means that all metadata for those files have<br>
> been lost<br>
> > when I have moved the files outside Digikam (to another server), which<br>
> > truly is a sad awakening.<br>
> ><br>
> > Is this the intended behaviour, or is it a bug? Or am I doing<br>
> something<br>
> > wrong (a user-fault...)?<br>
> ><br>
> > I'm using digikam 4.14.10 on Ubuntu 15.10.<br>
> ><br>
> > Best regards<br>
> > Anders<br>
><br>
><br>
> _______________________________________________<br>
> Digikam-users mailing list<br>
</div></div>> <a href="mailto:Digikam-users@kde.org" target="_blank">Digikam-users@kde.org</a> <mailto:<a href="mailto:Digikam-users@kde.org" target="_blank">Digikam-users@kde.org</a>><br>
> <a href="https://mail.kde.org/mailman/listinfo/digikam-users" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-users</a><br>
<div><div>><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Digikam-users mailing list<br>
> <a href="mailto:Digikam-users@kde.org" target="_blank">Digikam-users@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/digikam-users" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-users</a><br>
><br>
<br>
_______________________________________________<br>
Digikam-users mailing list<br>
<a href="mailto:Digikam-users@kde.org" target="_blank">Digikam-users@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-users" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-users</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Digikam-users mailing list<br>
<a href="mailto:Digikam-users@kde.org" target="_blank">Digikam-users@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-users" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-users</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
Digikam-users mailing list<br>
<a href="mailto:Digikam-users@kde.org">Digikam-users@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-users" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-users</a><br>
<br></blockquote></div><br></div>