Skip to content

Instantly share code, notes, and snippets.

@zhuharev
Created October 20, 2017 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuharev/34049ef2d7ce2ffe5e14fefb4946a001 to your computer and use it in GitHub Desktop.
Save zhuharev/34049ef2d7ce2ffe5e14fefb4946a001 to your computer and use it in GitHub Desktop.
Generate low quality video in the folder
#!/bin/bash
for i in *.MP4;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -i "$i" -filter:v scale=-420:240 -c:a copy "${name}-thumb.mp4";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment