I'm attempting to filter and sort all videos in a local folder based on their orientation. I can't find anything in AppleScript, macOS file search, or video metadata that will make this easy. My guess is that I'll have to grab the video's height and width, and then generate a folder for each distinct combination. I'll then have to eyeball which sizes are portrait and landscape.
- Export all original videos from iCloud Photos (~400GB) and store them locally
- Filter and sort them by portrait or landscape orientation
- Remove videos that meet further specified criteria (under 15 seconds, duplicates, etc).