Skip to content

Instantly share code, notes, and snippets.

@zjor
Last active July 30, 2023 12:59
Show Gist options
  • Save zjor/8806c0afbc68a29c84c1008fa4704d87 to your computer and use it in GitHub Desktop.
Save zjor/8806c0afbc68a29c84c1008fa4704d87 to your computer and use it in GitHub Desktop.
Bash script for converting *.mov to *.mp4 with ffmpeg
#!/bin/bash
if [ $# -eq 0 ]; then
echo -e "\n\tUsage: $(basename $0) <filename.mov>\n"
exit -1
fi
INPUT=$1
FILENAME=${INPUT%.*}
(set -x && ffmpeg -i ${INPUT} -vcodec h264 -acodec aac ${FILENAME}.mp4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment