Created
November 21, 2025 15:18
-
-
Save Depicus/58c47772c4990fb13a9f54ef06758e09 to your computer and use it in GitHub Desktop.
Convert an iPhone ProRes file to H.265 without loosing the meta data and do it as a batch on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| directory=${PWD} | |
| pattern="*.MOV" | |
| echo "Listing all files in directory: $directory matching pattern: $pattern" | |
| for file in "$directory"/$pattern; do | |
| if [ -f "$file" ]; then | |
| echo "$file" | |
| #avconvert -p PresetHEVCHighestQuality -s a.mov -o ac.mov --disableMetadataFilter --progress | |
| suffix=".MOV" | |
| foo="$file" | |
| foo=${foo%"$suffix"} | |
| avconvert -p PresetHEVCHighestQuality -s $file -o ${foo}-converted.mov --disableMetadataFilter --progress | |
| fi | |
| done | |
| echo "Done." |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Love filming in ProRes and log but the file sizes are crazy and backups were becoming unmanageable so this script runs in the folder where all the MOV files are and converts them to H.265 but retains all the meta data which most programs strip out.