sbalsom
11/10/2019 - 10:37 PM

ffmpeg conversion

# standard syntax
ffmpeg [global_options] {[input_file_options] -i input_url} ... {[output_file_options] output_url} 

# example for just one file
ffmpeg -i  video-1.mp4 -b:v 2000k video-1.ogv

# example for a loop (batch) conversion
MOVIES=~/Users/Sara/Path/to/images/folder/from/user
find "$MOVIES" -name '*.mp4' -exec sh -c 'ffmpeg -i "$0" -b:v 2000k "${0%%.mp4}.ogv"' {} \;
exit;