Last active
December 26, 2015 09:59
-
-
Save Uko/7133967 to your computer and use it in GitHub Desktop.
Generate movie from slides with ffmpeg
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
width=1920 | |
height=1080 | |
ffmpeg -i visualization/%d.png -c:v libx264 -filter:v "scale=iw*min($width/iw\,$height/ih):ih*min($width/iw\,$height/ih), pad=$width:$height:($width-iw*min($width/iw\,$height/ih))/2:($height-ih*min($width/iw\,$height/ih))/2:0xFFFFFF" -pix_fmt yuv420p z.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment