f2
f2 copied to clipboard
Passing options to ExifTool
I tried using f2 -f '.*.mp4' -r '{{xt.MediaCreateDate}}{{ext}}' -f ':' -r '-' -f ' ' -r '_'
to process my video files but one of the files apparently had no MediaCreateDate
set.
Manually inspecting the file using exiftool
yielded
❯ exiftool 2022-04-24/2022-04-24-12-31-09-0000531.mp4
ExifTool Version Number : 11.88
File Name : 2022-04-24-12-31-09-0000531.mp4
Directory : 2022-04-24
File Size : 2.4 GB
File Modification Date/Time : 2022:10:24 02:40:46+02:00
File Access Date/Time : 2022:10:24 18:46:02+02:00
File Inode Change Date/Time : 2022:10:24 18:43:11+02:00
File Permissions : rwxrwxrwx
File Type : MP4
File Type Extension : mp4
MIME Type : video/mp4
Major Brand : MP4 Base Media v1 [IS0 14496-12:2003]
Minor Version : 2.0.0
Compatible Brands : isom, iso2, mp41
Warning : End of processing at large atom (LargeFileSupport not enabled)
Turns out, you can enable it by addding -api LargeFileSupport=1
to the command line:
❯ exiftool -api LargeFileSupport=1 2022-04-24/2022-04-24-12-31-09-0000531.mp4
Media Create Date : 2022:04:24 10:31:09
Media Modify Date : 2022:04:24 10:31:09
Can we make this LargeFileSupport an optional flag or something?