Skip to content

Instantly share code, notes, and snippets.

@akash-joshi
Created November 1, 2020 09:39
Show Gist options
  • Save akash-joshi/66f0d63eb15fdb7c8c0c60cdf68ac382 to your computer and use it in GitHub Desktop.
Save akash-joshi/66f0d63eb15fdb7c8c0c60cdf68ac382 to your computer and use it in GitHub Desktop.
cd /Users/akashjoshi/Desktop
shopt -s nullglob
for i in *.mov; do
echo "$i"
ffmpeg -i "$i" -vcodec libx265 -crf 28 "compressed-recordings/$i.output.mp4"
rm "$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment