Skip to content

Instantly share code, notes, and snippets.

@takawo
Created July 14, 2021 07:35
Show Gist options
  • Select an option

  • Save takawo/187fa56fd1bbd0465da71322cb8bc63d to your computer and use it in GitHub Desktop.

Select an option

Save takawo/187fa56fd1bbd0465da71322cb8bc63d to your computer and use it in GitHub Desktop.
for i in *.mp4;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" -c:v libx264 -s 1280x720 "${name}_compressed.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment