Skip to content

Instantly share code, notes, and snippets.

@danielef
Created November 20, 2019 23:27
Show Gist options
  • Save danielef/8eb6456d2cbdf31ed3c5f62329098467 to your computer and use it in GitHub Desktop.
Save danielef/8eb6456d2cbdf31ed3c5f62329098467 to your computer and use it in GitHub Desktop.
ffmpeg scaled video
#!/bin/bash
for i in $( ls *.mpeg ); do
ffmpeg -i $i -vf "scale=iw/4:ih/4" ${i%.*}.mp4;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment