Skip to content

Instantly share code, notes, and snippets.

@binakot
Created June 22, 2021 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binakot/4267736c95b687e0751e5a7968fcc2eb to your computer and use it in GitHub Desktop.
Save binakot/4267736c95b687e0751e5a7968fcc2eb to your computer and use it in GitHub Desktop.
#!/bin/sh
OUTPUT_DIR=./mp4
for FILE in *MOV
do
ffmpeg -i "$FILE" -vcodec h264 -acodec aac "$OUTPUT_DIR/$FILE.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment