Main Menu

Content Create Date

Started by wildcowboy, November 08, 2016, 12:20:55 PM

Previous topic - Next topic

wildcowboy

Hello,

Below is an export from ExifTool GUI. I am wondering why there are two tags "ContentCreateDate" there and how do I distinguish them.
I am asking because one of them has always been there (Content Create Date             : 2014:02:02 09:34:05-07:00) and it is not visible by any software in Windows
the other one (Content Create Date             : 2014:02:02 16:34:46Z) appeared after I corrected date using Windows Live Photo Gallery and it is shown as "Date taken" as well as "Media created" in File Properties in Windows File Explorer. I know that because I put 46 seconds instead of 05 seconds on purpose.
Please let me know if any ideas.

ExifTool GUI output:

---- ExifTool ----
ExifTool Version Number         : 10.31
---- File ----
File Name                       : IMG_1049_x264_6500kbps.mp4
Directory                       : .
File Size                       : 9.2 MB
File Modification Date/Time     : 2016:11:08 09:20:17-07:00
File Access Date/Time           : 2016:11:08 09:20:13-07:00
File Creation Date/Time         : 2014:02:02 09:34:05-07:00
File Permissions                : rw-rw-rw-
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
---- QuickTime ----
Major Brand                     : MP4 v2 [ISO 14496-14]
Minor Version                   : 0.2.0
Compatible Brands               : isom*iso2*avc1*mp41
Movie Header Version            : 0
Create Date                     : 2014:02:02 16:34:05
Modify Date                     : 2014:02:02 16:34:05
Time Scale                      : 1000
Duration                        : 11.70 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
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               : 2014:02:02 16:34:05
Track Modify Date               : 2014:02:02 16:34:05
Track ID                        : 1
Track Duration                  : 11.68 s
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 1920
Image Height                    : 1080
Media Header Version            : 0
Media Create Date               : 2014:02:02 16:34:05
Media Modify Date               : 2014:02:02 16:34:05
Media Time Scale                : 90000
Media Duration                  : 11.68 s
Media Language Code             : und
Handler Type                    : Video Track
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 25
Track Header Version            : 0
Track Create Date               : 2014:02:02 16:34:05
Track Modify Date               : 2014:02:02 16:34:05
Track ID                        : 2
Track Duration                  : 11.70 s
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2014:02:02 16:34:05
Media Modify Date               : 2014:02:02 16:34:05
Media Time Scale                : 44100
Media Duration                  : 11.70 s
Media Language Code             : und
Handler Type                    : Audio Track
Handler Description             : Stereo
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Track 2 Name                    : Stereo
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Content Create Date             : 2014:02:02 09:34:05-07:00
Encoder                         : HandBrake 0.10.2 2015060900
Encoding Time                   : 2014:02:02 16:34:46Z
Content Create Date             : 2014:02:02 16:34:46Z
Movie Data Size                 : 9687293
Movie Data Offset               : 11086
---- Composite ----
Avg Bitrate                     : 6.62 Mbps
Image Size                      : 1920x1080
Megapixels                      : 2.1
Rotation                        : 0


exiftool -s output: (looks like it does not see that second ContentCreateDate at all)
ExifToolVersion                 : 10.31
FileName                        : IMG_1049_x264_6500kbps.mp4
Directory                       : D:/Family Pictures/
FileSize                        : 9.2 MB
FileModifyDate                  : 2016:11:08 09:20:17-07:00
FileAccessDate                  : 2016:11:08 09:20:13-07:00
FileCreateDate                  : 2014:02:02 09:34:05-07:00
FilePermissions                 : rw-rw-rw-
FileType                        : MP4
FileTypeExtension               : mp4
MIMEType                        : video/mp4
MajorBrand                      : MP4 v2 [ISO 14496-14]
MinorVersion                    : 0.2.0
CompatibleBrands                : isom, iso2, avc1, mp41
MovieHeaderVersion              : 0
CreateDate                      : 2014:02:02 16:34:05
ModifyDate                      : 2014:02:02 16:34:05
TimeScale                       : 1000
Duration                        : 11.70 s
PreferredRate                   : 1
PreferredVolume                 : 100.00%
PreviewTime                     : 0 s
PreviewDuration                 : 0 s
PosterTime                      : 0 s
SelectionTime                   : 0 s
SelectionDuration               : 0 s
CurrentTime                     : 0 s
NextTrackID                     : 3
TrackHeaderVersion              : 0
TrackCreateDate                 : 2014:02:02 16:34:05
TrackModifyDate                 : 2014:02:02 16:34:05
TrackID                         : 1
TrackDuration                   : 11.68 s
TrackLayer                      : 0
TrackVolume                     : 0.00%
ImageWidth                      : 1920
ImageHeight                     : 1080
GraphicsMode                    : srcCopy
OpColor                         : 0 0 0
CompressorID                    : avc1
SourceImageWidth                : 1920
SourceImageHeight               : 1080
XResolution                     : 72
YResolution                     : 72
BitDepth                        : 24
VideoFrameRate                  : 25
MatrixStructure                 : 1 0 0 0 1 0 0 0 1
MediaHeaderVersion              : 0
MediaCreateDate                 : 2014:02:02 16:34:05
MediaModifyDate                 : 2014:02:02 16:34:05
MediaTimeScale                  : 44100
MediaDuration                   : 11.70 s
MediaLanguageCode               : und
HandlerDescription              : Stereo
Balance                         : 0
AudioFormat                     : mp4a
AudioChannels                   : 2
AudioBitsPerSample              : 16
AudioSampleRate                 : 44100
Track2Name                      : Stereo
HandlerType                     : Metadata
HandlerVendorID                 : Apple
Encoder                         : HandBrake 0.10.2 2015060900
EncodingTime                    : 2014:02:02 16:34:46Z
ContentCreateDate               : 2014:02:02 16:34:46Z
MovieDataSize                   : 9687293
MovieDataOffset                 : 11086
AvgBitrate                      : 6.62 Mbps
ImageSize                       : 1920x1080
Megapixels                      : 2.1
Rotation                        : 0

Phil Harvey

Try this command:

exiftool -ContentCreateDate -a -G1 FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

wildcowboy

Quote from: Phil Harvey on November 08, 2016, 12:25:34 PM
Try this command:

exiftool -ContentCreateDate -a -G1 FILE

- Phil
[QuickTime]     Content Create Date             : 2014:02:02 09:34:05-0
[QuickTime]     Content Create Date             : 2014:02:02 16:34:46Z

Phil Harvey

Odd.  They are both in the same group.  I expected them in different groups.

The only way to distinguish them is by instance number:

exiftool -contentcreatedate FILE

exiftool -copy1:contentcreatedate FILE

Pick the one you like best.  I don't know what the difference is.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

wildcowboy

Quote from: Phil Harvey on November 08, 2016, 12:52:28 PM
Odd.  They are both in the same group.  I expected them in different groups.

The only way to distinguish them is by instance number:

exiftool -contentcreatedate FILE

exiftool -copy1:contentcreatedate FILE

Pick the one you like best.  I don't know what the difference is.

- Phil

I see. The top one (2014:02:02 09:34:05-0) which is the real one is -copy1:contentcreatedate. The other one (2014:02:02 16:34:46Z) is -contentcreatedate.

exiftool -api quicktimeutc=1 "-contentcreatedate<copy1:contentcreatedate" FILE

gives the error:

Warning: Sorry, contentcreatedate is not writable - FILE
Warning: No writable tags set from FILE
0 image files updated
1 image files unchanged


I thought the tag is writable when QuickTimeUTC option set to 1.



Phil Harvey

ExifTool can not currently write ContentCreateDate.  See the QuickTime tags documentation for a complete list of tags and which ones are writable.

Write support is currently very limited for MP4 files.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

wildcowboy

Quote from: Phil Harvey on November 08, 2016, 01:14:51 PM
ExifTool can not currently write ContentCreateDate.  See the QuickTime tags documentation for a complete list of tags and which ones are writable.

Write support is currently very limited for MP4 files.

- Phil

I see. Thank you anyways Phil

Zetorg

If you download any 1080 mp4 file from youtube with JDownloader 2, you will notice that has a field with the year:
Content Create Date             : 2018

Any idea how to write that into another mp4 file? Lower resolution mp4 files don't have that tag.
I think it's here, it's located at the very end of the file:
00d197f0: 1ca9 6461 7900 0000 1464 6174 6100 0000  ..day....data...
00d19800: 0100 0000 0032 3031 3800 0000 25a9 746f  .....2018...%.to

Phil Harvey

Recent versions of ExifTool can write this tag.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Zetorg

But how do I write only the year,? like the example.

StarGeek

exiftool -ContentCreateDate#=2018 file.mp4

The hashtag is shorthand for the -n (--printConv) option.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Zetorg

Quote from: StarGeek on February 26, 2021, 05:24:27 PM
exiftool -ContentCreateDate#=2018 file.mp4

The hashtag is shorthand for the -n (--printConv) option.
Thank you very  much it worked!!!  8)