Skip to content

Instantly share code, notes, and snippets.

@RFullum
Last active January 3, 2021 00:55
Show Gist options
  • Save RFullum/14ae65befa6f69d0382a5f52a3d1a70b to your computer and use it in GitHub Desktop.
Save RFullum/14ae65befa6f69d0382a5f52a3d1a70b to your computer and use it in GitHub Desktop.
Bash script to convert all .mov to .mp4 in a directory using ffmpeg
#!/bin/bash
for i in *.mov; do ffmpeg -i "$i" -c:v libx264 -crf 23 -preset medium -movflags +faststart -vf scale=-1:1080,format=yuv420p -ac 2 "${i%.*}.mp4"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment