Skip to content

Instantly share code, notes, and snippets.

@oscarfonts
Last active May 4, 2020 06:36
Show Gist options
  • Save oscarfonts/e0f80bbf48f9b5ac19beb818376e1790 to your computer and use it in GitHub Desktop.
Save oscarfonts/e0f80bbf48f9b5ac19beb818376e1790 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
targetfilename="${1%.*}"
ffmpeg -i "${1}" -acodec mp2 -vcodec libx265 -crf 30 -vf "scale=iw/2:ih/2" "$targetfilename-compressed.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment