Changing Modify Dates

Started by ragnor, January 30, 2022, 05:23:27 AM

Previous topic - Next topic

ragnor

Hi there!

Long time ago I did some batch file to edit my GoPro filedates.
Now I changed my camera and I have to adapt it, although I've never really understood how all of these work, so I'll need your help again.

I have a metadata that looks like this:
ExifTool Version Number         : 12.39
File Name                       : DJI_0039.MP4
Directory                       : C:/Users/Videos
File Size                       : 46 MiB
File Modification Date/Time     : 2022:01:30 10:49:18+01:00
File Access Date/Time           : 2022:01:30 11:11:59+01:00
File Creation Date/Time         : 2022:01:30 11:11:56+01:00
File Permissions                : -rw-rw-rw-
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4 Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, mp41
Media Data Size                 : 47325026
Media Data Offset               : 512
Movie Header Version            : 0
Create Date                     : 2022:01:29 21:17:12
Modify Date                     : 2022:01:29 21:17:12
Time Scale                      : 1000
Duration                        : 4.42 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                   : 5
Track Header Version            : 0
Track Create Date               : 2022:01:29 21:17:12
Track Modify Date               : 2022:01:29 21:17:12
Track ID                        : 1
Track Duration                  : 4.41 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 3840
Image Height                    : 2160
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : hvc1
Source Image Width              : 3840
Source Image Height             : 2160
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Color Representation            : nclx 2 2 2
Video Frame Rate                : 29.97
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Meta Format                     : djmd
Warning                         : [minor] The ExtractEmbedded option may find more tags in the media data
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2022:01:29 21:17:12
Media Modify Date               : 2022:01:29 21:17:12
Media Time Scale                : 30000
Media Duration                  : 4.40 s
Media Language Code             : und
Handler Description             : DJI dbgi
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : ditherCopy
Gen Op Color                    : 32768 32768 32768
Gen Balance                     : 0
Other Format                    : dbgi
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Encoder                         : DJIAction2
Cover Art                       : (Binary data 658755 bytes, use -b option to extract)
Image Size                      : 3840x2160
Megapixels                      : 8.3
Avg Bitrate                     : 85.7 Mbps
Rotation                        : 0


What I'd like to do is copy
Create Date                     : 2022:01:29 21:17:12
Into File Modification Date/Time and File Creation Date/Time  (I guess File Access Date/Time can't be changed), so then I can bulk rename all the files using PowerRenamer (now it's taking the wrong time).

Before, I had a line that was something like this:
exiftool "-filemodifydate<createdate" "-fileaccessdate<createdate" "-filecreatedate<createdate" "C:\Videos\*.MP4"
Is this code still okay for this purpose?

Thanks a lot!

PS Luckily this camera is smart enough to compensate the timezone so I don't have to adjust that anymore, like in the GoPro, yay.

Phil Harvey

Your command should do what you want.

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

ragnor