Photos 7.0 loses keywords on video files upon export (Monterey 12.6.5)

Having an issue with exporting video files from photos app, the dates and names are kept the same (exported correctly), however the keywords are lost. Option to retain those during export is selected correctly. When exporting just photo files, the keywords are present. Tried exiftool command line export, same result: pictures have all the data, but all videos are missing keywords.


Is there a known workaround for this bug to export all data correctly? or perhaps a script or app that writes keywords for video files during export from photos app, if it natively does not have that functionality.


Posted on May 20, 2023 8:02 AM

Reply
Question marked as Top-ranking reply

Posted on May 20, 2023 9:23 AM

Movies do not have the metadata fields that photos do. Photos are controlled by the IPTC ( International Press Telecommunications Council). There is no such organization for video/movie files.


However, GraphicConverter 12.0.1 now supports editing the following .mp4, .m4v and .mov tags:

MacOS:FileCreateDate
System:FileModifyDate
QuickTime:CreateDate
Keys:CreationDate
Keys:GPSCoordinates
Keys:DisplayName
Keys:Title
Keys:Author
Keys:Description
Keys:Keywords
Keys:LocationName

Keys:CreationDate can be added/deleted via GC "Metadata Specifics" menu and also GC "Force adding of creation dates" movie option must be turned ON. Newer iOS versions use it and macOS 10-13 Mojave - Ventura Photos.app prefers it over QuickTime:CreateDate (as a last resort it grabs the date from MacOS:FileCreateDate if neither of those tags has a date).

Keys:CreationDate is really only needed for old pre-1970 movies where QuickTime:CreateDate does not work (or maybe if local time is preferred over UTC). Before year 1902 Keys:CreationDate works even to year 0001 in Photos.app but then Google Photos might randomly display a wrong date and even if it displays the correct date, it might sort that very old movie incorrectly.

Movie timezone is grabbed from the computer's timezone setting. In an earlier GC beta version there was an option to set timezone via the same "Store Time Zone" setting that works for .jpg. But that caused some related issues so that option was removed. I have never needed to fiddle movie timezones and even vacation movies and images sort and mix correctly in my workflow.

QuickTime Player show date, GPSCoordinates, DisplayName (Headline), Title, Author (Writer), Description and Keywords.

Photos.app show date, GPSCoordinates, DisplayName (Headline), Title, Description and Keywords.

In both Apple's apps DisplayName (Headline) overrides Title if both are present. I decided use Title in movies because I use the same GC field to edit IPTC:ObjectName and XMP-dc:Title in .jpg.

If GC has XMP support for movies turned ON, then also the following XMP is filled but none of those Apple's apps show these fields:

XMP-dc:Title
XMP-dc:Description
XMP-photoshop:CaptionWriter
XMP-dc:Subject
XMP-xmp:Rating

Compared to Keys, UserData and ItemList have a much more limited support for those tags in Apple's apps.

Having an issue with exporting video files from photos app, the dates and names are kept the same (exported correctly), however the keywords are lost. Option to retain those during export is selected correctly. When exporting just photo files, the keywords are present. Tried exiftool command line export, same result: pictures have all the data, but all videos are missing keywords.

Is there a known workaround for this bug to export all data correctly? or perhaps a script or app that writes keywords for video files during export from photos app, if it natively does not have that functionality.

This is from this topic: What movie metadata Photos and QuickTime … - Apple Community





Similar questions

2 replies
Question marked as Top-ranking reply

May 20, 2023 9:23 AM in response to al3vl

Movies do not have the metadata fields that photos do. Photos are controlled by the IPTC ( International Press Telecommunications Council). There is no such organization for video/movie files.


However, GraphicConverter 12.0.1 now supports editing the following .mp4, .m4v and .mov tags:

MacOS:FileCreateDate
System:FileModifyDate
QuickTime:CreateDate
Keys:CreationDate
Keys:GPSCoordinates
Keys:DisplayName
Keys:Title
Keys:Author
Keys:Description
Keys:Keywords
Keys:LocationName

Keys:CreationDate can be added/deleted via GC "Metadata Specifics" menu and also GC "Force adding of creation dates" movie option must be turned ON. Newer iOS versions use it and macOS 10-13 Mojave - Ventura Photos.app prefers it over QuickTime:CreateDate (as a last resort it grabs the date from MacOS:FileCreateDate if neither of those tags has a date).

Keys:CreationDate is really only needed for old pre-1970 movies where QuickTime:CreateDate does not work (or maybe if local time is preferred over UTC). Before year 1902 Keys:CreationDate works even to year 0001 in Photos.app but then Google Photos might randomly display a wrong date and even if it displays the correct date, it might sort that very old movie incorrectly.

Movie timezone is grabbed from the computer's timezone setting. In an earlier GC beta version there was an option to set timezone via the same "Store Time Zone" setting that works for .jpg. But that caused some related issues so that option was removed. I have never needed to fiddle movie timezones and even vacation movies and images sort and mix correctly in my workflow.

QuickTime Player show date, GPSCoordinates, DisplayName (Headline), Title, Author (Writer), Description and Keywords.

Photos.app show date, GPSCoordinates, DisplayName (Headline), Title, Description and Keywords.

In both Apple's apps DisplayName (Headline) overrides Title if both are present. I decided use Title in movies because I use the same GC field to edit IPTC:ObjectName and XMP-dc:Title in .jpg.

If GC has XMP support for movies turned ON, then also the following XMP is filled but none of those Apple's apps show these fields:

XMP-dc:Title
XMP-dc:Description
XMP-photoshop:CaptionWriter
XMP-dc:Subject
XMP-xmp:Rating

Compared to Keys, UserData and ItemList have a much more limited support for those tags in Apple's apps.

Having an issue with exporting video files from photos app, the dates and names are kept the same (exported correctly), however the keywords are lost. Option to retain those during export is selected correctly. When exporting just photo files, the keywords are present. Tried exiftool command line export, same result: pictures have all the data, but all videos are missing keywords.

Is there a known workaround for this bug to export all data correctly? or perhaps a script or app that writes keywords for video files during export from photos app, if it natively does not have that functionality.

This is from this topic: What movie metadata Photos and QuickTime … - Apple Community





May 20, 2023 12:23 PM in response to al3vl

macOS 13 Ventura Photos.app "Export unmodified original" exports original movie's all metadata OK.


But "Export video" mangles movie metadata to its own liking. For example, it nukes original Keys:Keywords to zero byte binary data that does not work:


[Keys]          Keywords                        : (Binary data 0 bytes, use -b option to extract)
[Keys]          DisplayName                     : Title
[Keys]          Description                     : Description
[Keys]          GPSCoordinates                  : -33.4519 -70.6505
[Keys]          CreationDate                    : 2021:02:16 16:19:29+02:00


A workaround is to "Export unmodified original" with "Export IPTC as XMP" sidecar and then use some 3rd party app like GraphicConverter or exiftool to join the sidecar metadata to the movie.


<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 6.0.0">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:exif="http://ns.adobe.com/exif/1.0/"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
         <exif:GPSLongitude>70.650466100000003</exif:GPSLongitude>
         <exif:GPSLongitudeRef>W</exif:GPSLongitudeRef>
         <exif:GPSHPositioningError>1</exif:GPSHPositioningError>
         <exif:GPSLatitude>33.451855799999997</exif:GPSLatitude>
         <exif:GPSLatitudeRef>S</exif:GPSLatitudeRef>
         <exif:GPSTimeStamp>2023-05-20T18:55:22Z</exif:GPSTimeStamp>
         <dc:title>Title</dc:title>
         <dc:description>Description</dc:description>
         <dc:subject>
            <rdf:Seq>
               <rdf:li>Keyword 1</rdf:li>
               <rdf:li>Keyword 2</rdf:li>
            </rdf:Seq>
         </dc:subject>
         <photoshop:DateCreated>2021-02-16T16:19:29+02:00</photoshop:DateCreated>
      </rdf:Description>
   </rdf:RDF>
</x:xmpmeta>


...but notice that because Photos.app exports non-standard GPS in .xmp, you might have to use some workarounds because otherwise western and southern locations go to the other side of the globe. I have reported this flaw to Apple several times during the last several years. <sigh>


https://exiftool.org/forum/index.php?topic=14606.msg78717#msg78717


The best workflow is to edit movie metadata outside Photos.app and then import the movie to Photos.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Photos 7.0 loses keywords on video files upon export (Monterey 12.6.5)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.