Bulk Gopro mp4 file rename to starting timestamp

Started by bernhtp, December 22, 2022, 01:45:08 PM

Previous topic - Next topic

bernhtp

I have hundreds of GoPro (Hero 9 and 7) mp4 files in many folders that I would like to rename according to their internal ISO datetime taken, e.g., 2022-12-20_08-27-36.mp4.  I don't know the internal GoPro mp4 metadata field name.  EXIFTOOL is amazingly rich in function and I would like a quick pointer for a command line that would accomplish this for all mp4 files in a folder.  Thanks!

Phil Harvey

This should work:

exiftool -d "%Y-%m-%d_%H-%M-%S.%%e" "-filename<createdate" -ext mp4 DIR

See this page for documentation on this feature.

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