Last active
February 21, 2023 15:53
-
-
Save 4noha/dd3be91b3376b2e34aec49f1455e43cb to your computer and use it in GitHub Desktop.
transpalented gifs to greenbacked mp4s .sh
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
| for FILE in *.gif | |
| do | |
| FILENAME=`echo ${FILE} | sed 's/\.[^\.]*$//'` | |
| ffmpeg -i ${FILENAME}.gif -movflags faststart -pix_fmt yuv420p -vf "color=00ff00,format=rgb24[c];[c][0]scale2ref[c][i];[c][i]overlay=format=auto:shortest=1,setsar=1,scale=trunc(iw/2)*2:trunc(ih/2)*2" ${FILENAME}.mp4 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment