adding IPTC tags/keywords to video files

Started by diannaFields, September 28, 2017, 03:47:33 PM

Previous topic - Next topic

diannaFields

hi

i'm trying to add "tags" or "keywords" to a video file. I think it's called IPTC but i'm not sure about it.
I'm talking about this circled in red:


let's say i'm trying to add the keywords "one" and "two" but just in case the video is already tags with those tags - I don't want to double tag it.

this is what i've tried:
"exiftool(-k).exe" -v2 -overwrite_original -keywords-="one" -keywords+="one" -keywords-="two" -keywords+="two" "F:\tmp\d.mp4"

the file doesn't change, the tags are not added and this is the output I get from the command:
Deleting PostScript:Keywords if value is 'one'
Deleting MIE-Doc:Keywords from list if value is 'one'
Deleting PDF:Keywords from list if value is 'one'
Deleting XMP-pdf:Keywords if value is 'one'
Deleting XMP-xmp:Keywords if value is 'one'
Deleting XMP-acdsee:Keywords from list if value is 'one'
Deleting IPTC:Keywords from list if value is 'one'
Adding MIE-Doc:Keywords
Adding PDF:Keywords if tag was deleted
Adding XMP-acdsee:Keywords if tag was deleted
Adding IPTC:Keywords
Warning: Shift value for XMP-xmp:Keywords is not a number
Deleting PostScript:Keywords if value is 'two'
Deleting MIE-Doc:Keywords from list if value is 'two'
Deleting PDF:Keywords from list if value is 'two'
Deleting XMP-pdf:Keywords if value is 'two'
Deleting XMP-xmp:Keywords if value is 'two'
Deleting XMP-acdsee:Keywords from list if value is 'two'
Deleting IPTC:Keywords from list if value is 'two'
Adding MIE-Doc:Keywords
Adding PDF:Keywords if tag was deleted
Adding XMP-acdsee:Keywords if tag was deleted
Adding IPTC:Keywords
Warning: Shift value for XMP-xmp:Keywords is not a number
======== F:/tmp/d.mp4
Rewriting F:/tmp/d.mp4...
  FileType = MP4
  FileTypeExtension = MP4
  MIMEType = video/mp4
  Editing tags in: IPTC MIE-Doc MOV PDF PostScript XMP
  Creating tags in: IPTC MIE-Doc MOV XMP
  Rewriting Movie
  Rewriting MovieHeader
  Rewriting Track
  Rewriting TrackHeader
  Rewriting Media
  Rewriting MediaHeader
  Rewriting Track
  Rewriting TrackHeader
  Rewriting Media
  Rewriting MediaHeader
  Rewriting UserData
  Rewriting XMP
Nothing changed in F:/tmp/d.mp4
    0 image files updated
    1 image files unchanged
-- press RETURN --


this same command works on .jpg files for some reason it does on any .avi or .mp4 I tried even though they are supported just as .jpg files.
what am I doing wrong?
I'm using exiftool version 10.61

StarGeek

I don't believe video files can have IPTC metadata.  Exiftool can write XMP:Subject to some video files, and that is the XMP version of keywords.  But it doesn't matter because Windows doesn't read that.

Using the Properties window, you can enter data there and Windows will save it to the file.  But it saves it in Microsoft:Category, which exiftool cannot write to.

Some further testing shows Adobe Bridge will read and write keywords to XMP:Subject, but again, Windows doesn't read that tag.

It's already hard enough to find metadata editors for video files, but I can't find anything for the Microsoft video tags. 
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

diannaFields

I was now curious as to where exactly windows store it to the file if I manually add it using the "Properties" window so I manually added tags: "one, three, four", then I dragged the file to "exiftool(-k).exe" and this is what I got:

QuoteExifTool Version Number         : 10.61
File Name                       : a.mp4
Directory                       : F:/tmp
File Size                       : 922 kB
File Modification Date/Time     : 2017:09:28 23:06:06+03:00
File Access Date/Time           : 2017:09:28 21:57:47+03:00
File Creation Date/Time         : 2017:09:28 21:54:53+03:00
File Permissions                : rw-rw-rw-
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4 v2 [ISO 14496-14]
Minor Version                   : 0.0.0
Compatible Brands               : isom, mp42
Movie Header Version            : 0
Create Date                     : 2011:07:14 12:40:47
Modify Date                     : 2011:07:14 12:40:47
Time Scale                      : 600
Duration                        : 24.07 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 2011:07:14 12:40:47
Track ID                        : 1
Track Duration                  : 24.07 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 320
Image Height                    : 240
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 320
Source Image Height             : 240
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Buffer Size                     : 11355
Max Bitrate                     : 586248
Average Bitrate                 : 252304
Video Frame Rate                : 29.948
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2011:07:14 12:40:47
Media Modify Date               : 2011:07:14 12:40:47
Media Time Scale                : 44100
Media Duration                  : 24.06 s
Media Language Code             : und
Handler Description             : IsoMedia File Produced by Google, 5-11-2011
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Google Start Time               : 0
Google Track Duration           : 24.07 s
Google Source Data              : BADC21241MM1357146524860931
Google Ping URL                 :
Google Ping Message             :
Google Host Header              : r1---sn-4g57ln7s.c.youtube.com
Category                        : one, three, four
Movie Data Size                 : 923406
Movie Data Offset               : 20214
Avg Bitrate                     : 307 kbps
Image Size                      : 320x240
Megapixels                      : 0.077
Rotation                        : 0
-- press RETURN --

notice the part I marked in red:
"Category                        : one, three, four"

so it seems exiftool CAN actually read that part.
if it can read it, maybe it could write to it.

StarGeek

Quote from: diannaFields on September 28, 2017, 06:31:05 PM
so it seems exiftool CAN actually read that part.
if it can read it, maybe it could write to it.

I didn't say it couldn't.  In fact, I gave you the exact group:tag it was saved at.  And exiftool can't write it.  See the Microsoft Xtra Tags list.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

diannaFields

thanks for the reply.
do you happen to know of any software that CAN write to Microsoft Xtra Tags from command line?