Skip to content

Instantly share code, notes, and snippets.

@atomize
Created January 6, 2019 21:02
Show Gist options
  • Save atomize/27af79d10ec18f939ae89c9ef202dd60 to your computer and use it in GitHub Desktop.
Save atomize/27af79d10ec18f939ae89c9ef202dd60 to your computer and use it in GitHub Desktop.
use ffmpeg and bash to scale multiple video files to matching scale/size.
!#/bin/bash
for file in $(cat $1)
do
ffmpeg -i $file -vf scale=320:240 -strict -2 $(echo $file|sed ’s/\.[^.]*$//‘).mp4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment