Skip to content

Instantly share code, notes, and snippets.

@Depicus
Created November 21, 2025 15:18
Show Gist options
  • Select an option

  • Save Depicus/58c47772c4990fb13a9f54ef06758e09 to your computer and use it in GitHub Desktop.

Select an option

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
#!/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."
@Depicus
Copy link
Author

Depicus commented Nov 21, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment