Skip to content

Instantly share code, notes, and snippets.

@eporroa
Created December 4, 2015 15:43
Show Gist options
  • Save eporroa/69ff1328f1d100470ad3 to your computer and use it in GitHub Desktop.
Save eporroa/69ff1328f1d100470ad3 to your computer and use it in GitHub Desktop.

ffmpeg -i input -c:v libx264 -crf 23 -preset medium -c:a libfdk_aac -vbr 4 \ -movflags +faststart -vf scale=-2:720,format=yuv420p output.mp4

for f in *.MOV; do ffmpeg -i "$f" -vf scale=-2:480,format=yuv420p "${f%.MOV}.mp4"; done

for f in *.MOV; do ffmpeg -i "$f" -vf scale=-2:480,format=yuv420p convertido/"${f%.MOV}.mp4"; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment