Created
June 14, 2020 14:48
-
-
Save vexorian/f69ef76490c48da6695d9a87dead0b1b 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
#!/bin/bash | |
W=1280 | |
H=720 | |
ffmpeg -threads 12 -i "$1" -vcodec libx264 -acodec mp3 -vf "scale=$W:$H:force_original_aspect_ratio=decrease,pad=$W:$H:(ow-iw)/2:(oh-ih)/2" "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment