Last active
January 3, 2021 00:55
-
-
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
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 | |
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