Last active
July 30, 2023 12:59
-
-
Save zjor/8806c0afbc68a29c84c1008fa4704d87 to your computer and use it in GitHub Desktop.
Bash script for converting *.mov to *.mp4 with ffmpeg
This file contains 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 | |
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