Hello,
I work in feature editorial and am trying to work ExifTool into our workflow. We often have an issue when our VFX vendors send us two versions of a shot: A full-res DPX sequence and a low-rez .mov file, which we use for offline editing. Often, the two versions do not have matching timecode, even though they should. This becomes a problem later on down the line when we are conforming the high res shots of the film to our low-res edit.
To fix this, I am trying to write a script that will automatically change the timecode of the low-res .mov file if it does not match our high-res sequence. Annoyingly, it seems that Quicktime files store the start timecode in three discreet tags.
UserData_TIM : 09:47:48:12
AltTimecodeTimeValue : 09:47:48:12
StartTimecodeTimeValue : 09:47:48:12
The above was pulled using the following command:
"C:\exiftool-9.78\exiftool(-k).exe" -s "D:\Recieved\20141229 From Ollin\CBoffline\004_010_comp_v01.mov"
I am able to set the AltTimecodeTimeValue, which I believe is the audio stream timecode, and the StartTimecodeTimeValue, which I believe is the video stream timecode, without any issues. However, it seems that most programs, including Quicktime and AdobePremiere, pull the start TC from the UserData_TIM field.
When I attempted to edit that field, I got the following response:
Warning: Tag 'User_Data_TIM' does not exist.
Nothing to do
Using this command:
"C:\exiftool-9.78\exiftool(-k).exe" -UserData_TIM=01:00:00:00 "D:\Recieved\20141229 From Ollin\CBoffline\004_010_comp_v01.mov"
I did a bit of research online, and found you can set up custom tags using a config file, so I made a config file with the following contents:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::IPTC::ApplicationRecord' => {
240 => {
Name => 'UserData_TIM',
Format => 'string[11]',
},
},
);
1; #end
Once that was in place, my same command got the following response:
0 image files updated
1 image files unchanged
Can anyone give me some insight as to how to go about editing this tag. It would be a huge help in our workflow. Thanks in advance!
Hmm, if exiftool shows you a tag, you should be able to use it, without having to add a user defined tag. So something else is at play here. You already used the -s option to get the real tag name, so that's not it. I wonder in what group the tag exists, can you add -G or -G0:1 to your first command to list the groups as well?
Here is the result when adding the -G flag:
[ExifTool] ExifToolVersion : 9.78
[File] FileName : 004_010_comp_v01.mov
[File] Directory : D:/Recieved/20141229 From Ollin/CBoffline
[File] FileSize : 147 MB
[File] FileModifyDate : 2014:12:29 19:02:45-08:00
[File] FileAccessDate : 2014:12:29 19:02:09-08:00
[File] FileCreateDate : 2015:01:01 17:36:17-08:00
[File] FilePermissions : rw-rw-rw-
[File] FileType : MOV
[File] MIMEType : video/quicktime
[QuickTime] MajorBrand : Apple QuickTime (.MOV/QT)
[QuickTime] MinorVersion : 2005.3.0
[QuickTime] CompatibleBrands : qt
[QuickTime] MovieDataSize : 154583044
[QuickTime] MovieDataOffset : 48
[QuickTime] MovieHeaderVersion : 0
[QuickTime] TimeScale : 24000
[QuickTime] Duration : 10.64 s
[QuickTime] PreferredRate : 1
[QuickTime] PreferredVolume : 100.00%
[QuickTime] PreviewTime : 0 s
[QuickTime] PreviewDuration : 0 s
[QuickTime] PosterTime : 0 s
[QuickTime] SelectionTime : 0 s
[QuickTime] SelectionDuration : 0 s
[QuickTime] CurrentTime : 0 s
[QuickTime] NextTrackID : 3
[QuickTime] TrackHeaderVersion : 0
[QuickTime] TrackCreateDate : 2014:12:30 03:02:09
[QuickTime] TrackModifyDate : 2014:12:30 03:02:45
[QuickTime] TrackID : 1
[QuickTime] TrackDuration : 10.64 s
[QuickTime] TrackLayer : 0
[QuickTime] TrackVolume : 0.00%
[QuickTime] ImageWidth : 2304
[QuickTime] ImageHeight : 1152
[QuickTime] CleanApertureDimensions : 1920x1080
[QuickTime] ProductionApertureDimensions : 1920x1080
[QuickTime] EncodedPixelsDimensions : 1920x1080
[QuickTime] TimeCode : 2
[QuickTime] GraphicsMode : ditherCopy
[QuickTime] OpColor : 32768 32768 32768
[QuickTime] CompressorID : AVdn
[QuickTime] VendorID : Unknown (AVID)
[QuickTime] SourceImageWidth : 1920
[QuickTime] SourceImageHeight : 1080
[QuickTime] XResolution : 72
[QuickTime] YResolution : 72
[QuickTime] CompressorName : DNxHD 709
[QuickTime] BitDepth : 24
[QuickTime] MatrixStructure : 1 0 0 0 1 0 0 0 1
[QuickTime] MediaHeaderVersion : 0
[QuickTime] MediaCreateDate : 2014:12:30 03:02:45
[QuickTime] MediaModifyDate : 2014:12:30 03:02:45
[QuickTime] MediaTimeScale : 24000
[QuickTime] MediaDuration : 10.64 s
[QuickTime] GenMediaVersion : 0
[QuickTime] GenFlags : 0 0 0
[QuickTime] GenGraphicsMode : ditherCopy
[QuickTime] GenOpColor : 32768 32768 32768
[QuickTime] GenBalance : 0
[QuickTime] TextFont : System
[QuickTime] TextFace : Plain
[QuickTime] TextSize : 12
[QuickTime] TextColor : 0 0 0
[QuickTime] BackgroundColor : 65535 65535 65535
[QuickTime] FontName : System
[QuickTime] HandlerClass : Data Handler
[QuickTime] HandlerType : Alias Data
[QuickTime] HandlerVendorID : Apple
[QuickTime] HandlerDescription : Apple Alias Data Handler
[QuickTime] OtherFormat : tmcd
[QuickTime] UserData_TIM : 09:47:48:12
[QuickTime] UserData_TSC : 2997
[QuickTime] UserData_TSZ : 125
[XMP] XMPToolkit : Adobe XMP Core 5.5-c024 79.155959, 2014/02/07-11:44:46
[XMP] CreateDate : 2014:12:29 19:02:09-08:00
[XMP] ModifyDate : 2014:12:29 19:02:45-08:00
[XMP] CreatorTool : Adobe After Effects CC 2014 (Windows)
[XMP] MetadataDate : 2014:12:29 19:02:45-08:00
[XMP] StartTimeScale : 2997
[XMP] StartTimeSampleSize : 125
[XMP] VideoFrameRate : 23.976024
[XMP] VideoFieldOrder : Progressive
[XMP] VideoPixelAspectRatio : 1
[XMP] InstanceID : xmp.iid:fb6093e1-d541-d447-b12e-3681b000b08a
[XMP] DocumentID : xmp.did:64890cf8-b8d1-c747-ad94-7ae98c6700e0
[XMP] OriginalDocumentID : xmp.did:64890cf8-b8d1-c747-ad94-7ae98c6700e0
[XMP] Format : QuickTime
[XMP] DurationValue : 255255
[XMP] DurationScale : 4.16666666666667e-005
[XMP] AltTimecodeTimeValue : 09:47:48:12
[XMP] AltTimecodeTimeFormat : 23.976 fps
[XMP] VideoFrameSizeW : 2304
[XMP] VideoFrameSizeH : 1152
[XMP] VideoFrameSizeUnit : pixel
[XMP] StartTimecodeTimeFormat : 23.976 fps
[XMP] StartTimecodeTimeValue : 09:47:48:12
[XMP] HistoryAction : saved
[XMP] HistoryInstanceID : xmp.iid:fb6093e1-d541-d447-b12e-3681b000b08a
[XMP] HistoryWhen : 2014:12:29 19:02:45-08:00
[XMP] HistorySoftwareAgent : Adobe After Effects CC 2014 (Windows)
[XMP] HistoryChanged : /
[Composite] AvgBitrate : 116 Mbps
[Composite] ImageSize : 2304x1152
[Composite] Rotation : 0
And with the "-G:01" flag:
[ExifTool] ExifToolVersion : 9.78
[System] FileName : 004_010_comp_v01.mov
[System] Directory : D:/Recieved/20141229 From Ollin/CBoffline
[System] FileSize : 147 MB
[System] FileModifyDate : 2014:12:29 19:02:45-08:00
[System] FileAccessDate : 2014:12:29 19:02:09-08:00
[System] FileCreateDate : 2015:01:01 17:36:17-08:00
[System] FilePermissions : rw-rw-rw-
[File] FileType : MOV
[File] MIMEType : video/quicktime
[QuickTime] MajorBrand : Apple QuickTime (.MOV/QT)
[QuickTime] MinorVersion : 2005.3.0
[QuickTime] CompatibleBrands : qt
[QuickTime] MovieDataSize : 154583044
[QuickTime] MovieDataOffset : 48
[QuickTime] MovieHeaderVersion : 0
[QuickTime] TimeScale : 24000
[QuickTime] Duration : 10.64 s
[QuickTime] PreferredRate : 1
[QuickTime] PreferredVolume : 100.00%
[QuickTime] PreviewTime : 0 s
[QuickTime] PreviewDuration : 0 s
[QuickTime] PosterTime : 0 s
[QuickTime] SelectionTime : 0 s
[QuickTime] SelectionDuration : 0 s
[QuickTime] CurrentTime : 0 s
[QuickTime] NextTrackID : 3
[QuickTime] UserData_TIM : 09:47:48:12
[QuickTime] UserData_TSC : 2997
[QuickTime] UserData_TSZ : 125
[Track1] TrackHeaderVersion : 0
[Track1] TrackCreateDate : 2014:12:30 03:02:09
[Track1] TrackModifyDate : 2014:12:30 03:02:45
[Track1] TrackID : 1
[Track1] TrackDuration : 10.64 s
[Track1] TrackLayer : 0
[Track1] TrackVolume : 0.00%
[Track1] ImageWidth : 2304
[Track1] ImageHeight : 1152
[Track1] CleanApertureDimensions : 1920x1080
[Track1] ProductionApertureDimensions : 1920x1080
[Track1] EncodedPixelsDimensions : 1920x1080
[Track1] TimeCode : 2
[Track1] GraphicsMode : ditherCopy
[Track1] OpColor : 32768 32768 32768
[Track1] CompressorID : AVdn
[Track1] VendorID : Unknown (AVID)
[Track1] SourceImageWidth : 1920
[Track1] SourceImageHeight : 1080
[Track1] XResolution : 72
[Track1] YResolution : 72
[Track1] CompressorName : DNxHD 709
[Track1] BitDepth : 24
[Track2] MatrixStructure : 1 0 0 0 1 0 0 0 1
[Track2] MediaHeaderVersion : 0
[Track2] MediaCreateDate : 2014:12:30 03:02:45
[Track2] MediaModifyDate : 2014:12:30 03:02:45
[Track2] MediaTimeScale : 24000
[Track2] MediaDuration : 10.64 s
[Track2] GenMediaVersion : 0
[Track2] GenFlags : 0 0 0
[Track2] GenGraphicsMode : ditherCopy
[Track2] GenOpColor : 32768 32768 32768
[Track2] GenBalance : 0
[Track2] TextFont : System
[Track2] TextFace : Plain
[Track2] TextSize : 12
[Track2] TextColor : 0 0 0
[Track2] BackgroundColor : 65535 65535 65535
[Track2] FontName : System
[Track2] HandlerClass : Data Handler
[Track2] HandlerType : Alias Data
[Track2] HandlerVendorID : Apple
[Track2] HandlerDescription : Apple Alias Data Handler
[Track2] OtherFormat : tmcd
[XMP-x] XMPToolkit : Adobe XMP Core 5.5-c024 79.155959, 2014/02/07-11:44:46
[XMP-xmp] CreateDate : 2014:12:29 19:02:09-08:00
[XMP-xmp] ModifyDate : 2014:12:29 19:02:45-08:00
[XMP-xmp] CreatorTool : Adobe After Effects CC 2014 (Windows)
[XMP-xmp] MetadataDate : 2014:12:29 19:02:45-08:00
[XMP-xmpDM] StartTimeScale : 2997
[XMP-xmpDM] StartTimeSampleSize : 125
[XMP-xmpDM] VideoFrameRate : 23.976024
[XMP-xmpDM] VideoFieldOrder : Progressive
[XMP-xmpDM] VideoPixelAspectRatio : 1
[XMP-xmpDM] DurationValue : 255255
[XMP-xmpDM] DurationScale : 4.16666666666667e-005
[XMP-xmpDM] AltTimecodeTimeValue : 09:47:48:12
[XMP-xmpDM] AltTimecodeTimeFormat : 23.976 fps
[XMP-xmpDM] VideoFrameSizeW : 2304
[XMP-xmpDM] VideoFrameSizeH : 1152
[XMP-xmpDM] VideoFrameSizeUnit : pixel
[XMP-xmpDM] StartTimecodeTimeFormat : 23.976 fps
[XMP-xmpDM] StartTimecodeTimeValue : 09:47:48:12
[XMP-xmpMM] InstanceID : xmp.iid:fb6093e1-d541-d447-b12e-3681b000b08a
[XMP-xmpMM] DocumentID : xmp.did:64890cf8-b8d1-c747-ad94-7ae98c6700e0
[XMP-xmpMM] OriginalDocumentID : xmp.did:64890cf8-b8d1-c747-ad94-7ae98c6700e0
[XMP-xmpMM] HistoryAction : saved
[XMP-xmpMM] HistoryInstanceID : xmp.iid:fb6093e1-d541-d447-b12e-3681b000b08a
[XMP-xmpMM] HistoryWhen : 2014:12:29 19:02:45-08:00
[XMP-xmpMM] HistorySoftwareAgent : Adobe After Effects CC 2014 (Windows)
[XMP-xmpMM] HistoryChanged : /
[XMP-dc] Format : QuickTime
[Composite] AvgBitrate : 116 Mbps
[Composite] ImageSize : 2304x1152
[Composite] Rotation : 0
This is likely a QuickTime UserData tag (https://exiftool.org/TagNames/QuickTime.html#UserData). Your config file defines an IPTC tag, so this isn't what you want. But Exiftool doesn't yet have the ability to write QuickTime UserData tags anyway, so I'm afraid you are out of luck here.
But I would like to add read support for this tag. If you could include the output of the -v2 option, I will add support for this.
- Phil