Skip to content

Instantly share code, notes, and snippets.

@seblavoie
Last active October 6, 2021 19:47
Show Gist options
  • Save seblavoie/5a6344eec32e17bcd97873b5b562985a to your computer and use it in GitHub Desktop.
Save seblavoie/5a6344eec32e17bcd97873b5b562985a to your computer and use it in GitHub Desktop.
# This shell function will convert a Quicktime file and convert it to a H.264 file using FFMPEG.
# Make sure you have FFMPEG installed. See https://superuser.com/questions/624561/install-ffmpeg-on-os-x for instructions.
mp4() {
ffmpeg -i "$1" -c:v libx264 -c:a aac -vf format=yuv420p -movflags +faststart "${1%.mov}.mp4"
open "${1%.mov}.mp4"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment