Created
December 9, 2022 20:29
-
-
Save bazzargh/2ea44b4423a3c46c126f0565ee9cb81e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 -exuo pipefail | |
GIF=$1 | |
ffmpeg -i "$GIF" -vf "scale=w=640:h=360:force_original_aspect_ratio=1,pad=640:360:(ow-iw)/2:(oh-ih)/2" -pix_fmt yuv420p "${GIF%.gif}.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment