Created
August 23, 2018 19:14
-
-
Save ceremcem/a63d086c0b2350e51330a644ef47739b to your computer and use it in GitHub Desktop.
converts gif to video, useful for tutorials
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 | |
gif=$1 | |
out="${gif%.gif}.webm" | |
echo "converting $gif to $out" | |
ffmpeg -y -i $gif -r 16 -c:v libvpx -quality good -cpu-used 0 -b:v 500K -crf 12 -pix_fmt yuv420p -movflags faststart $out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment