January 20, 2022

exiftool

 #replace File modify date with File create date

exiftool '-filemodifydate<createdate' -ee -ext .mov -r .

#check all time stamps available in file

exiftool -s -time:all

#convert mp4 to mov

& "PATH\ffmpeg.exe" -i "PATH\Skydive_OpenShot_ExifTool_Test.mp4" -acodec copy -vcodec copy -f mov "PATH\Skydive_OpenShot_ExifTool_Test.mov"

#add metadata

& "PATH\exiftool.exe" ` "-QuickTime:CreationDate=2019:10:16 12:00:00-07:00" ` "-QuickTime:GPSCoordinates=35 56 57.2 N, 114 51 28.3 W" ` "PATH\Skydive_OpenShot_ExifTool_Test.mov"

rename in command line (maos)

 #for mac 

brew install rename

rename JPG jpg *.JPG 

#if you use barewords(protected) 

rename 's/\.JPG$/.jpg/' *.JPG 

 #mac os is case sensitive, that is why we need to do 2 renames 

rename 's/\.MOV$/.mov_/' *.MOV
rename 's/\.mov_$/.mov/' *.mov_

Count all file types in folder

 

find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u

How to type letters with accent

Very useful article https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/