Batch Create/Modify date question

Started by mvincent, November 24, 2017, 07:58:58 AM

Previous topic - Next topic

mvincent

Hello,
I have multiple mp4 files in a directory and want to modify the date/time on all of the files.  Specifically all of the (6) Create and Modify dates below in my sample that show 2017, as the videos were created in 2006 and this is causing sorting issues online.

I tried the below command that I saw in one of the forum posts, and although there is no error, the dates remain unchanged:

exiftool "-*2006:05:01<filename" -wm w FILE

Can someone provide me with the exact batch syntax needed to change these dates on multiple files in a single folder?

Any help would be greatly appreciated as I am very new to this type of command line editing.

Thank you

My test file details:
================================================

ExifTool Version Number         : 10.67
File Name                       : TEST123.mp4
Directory                       : D:/MyWorks
File Size                       : 5.3 MB
File Modification Date/Time     : 2006:05:01 11:12:16-04:00
File Access Date/Time           : 2006:05:01 11:12:16-04:00
File Creation Date/Time         : 2006:05:01 06:10:00-04: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               : mp42, isom, hvc1
Movie Data Size                 : 5216466
Movie Data Offset               : 176
Movie Header Version            : 0
Create Date                     : 2017:10:25 15:11:53
Modify Date                     : 2017:10:25 15:12:16
Time Scale                      : 90000
Duration                        : 0:02:19
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               : 2017:10:25 15:11:53
Track Modify Date               : 2017:10:25 15:12:15
Track ID                        : 1
Track Duration                  : 0:02:18
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 320
Image Height                    : 240
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : hvc1
Source Image Width              : 320
Source Image Height             : 240
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 15
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2017:10:25 15:11:53
Media Modify Date               : 2017:10:25 15:12:07
Media Time Scale                : 48000
Media Duration                  : 0:02:19
Media Language Code             : und
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Track 2 Name                    : aac 2.0
Handler Type                    : Metadata
Title                           : Test Video
Artist                          :
Album                           :
Comment                         :
Encoder                         :
Cover Art                       : (Binary data 307254 bytes, use -b option to extract)
Avg Bitrate                     : 300 kbps
Image Size                      : 320x240
Megapixels                      : 0.077
Rotation                        : 0

Phil Harvey

try this:

exiftool -time:all="2006:05:01 00:00:00" 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 ($).

mvincent

Quote from: Phil Harvey on November 24, 2017, 08:08:12 AM
try this:

exiftool -time:all="2006:05:01 00:00:00" FILE

- Phil

Unfortunately that didn't work Phil

Media and Track dates remain unchanged.

Any other suggestions?

Regards,
Michael

Stephen Marsh

Perhaps try this command to find the exact tag groups and names:

exiftool -a -G1 -s FILE

Then try targeting the date change using those tag groups and names.

Phil Harvey

Also, what version of ExifTool are you using.  Check the QuickTime tags documentation to see which QuickTime tags are writable for the current ExifTool (assuming you want to write QuickTime tags)[/url]

- 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 ($).