Skip to content

Instantly share code, notes, and snippets.

@Alexhha
Created Jun 14, 2021
Embed
What would you like to do?
ffmpeg mov to avi
#!/bin/bash
cd ~/mov_2_avi/source
for curr_file in $(ls *)
do
echo "$(date)"
echo "${curr_file}"
ffmpeg -i "~/mov_2_avi/source/${curr_file}" -ac 2 -r 30 -vf scale="1280:-1" -c:v libx264 \
-crf 12 -preset veryslow -tune film "~/mov_2_avi/converted/${curr_file%.mov}.avi"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment