Last active
May 4, 2020 06:36
-
-
Save oscarfonts/e0f80bbf48f9b5ac19beb818376e1790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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