Last active
December 4, 2019 05:20
-
-
Save DevSusu/4e533387b894ad954967e18ae35134db to your computer and use it in GitHub Desktop.
converting mov into some others
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
# referenced from: | |
# https://medium.com/@Peter_UXer/small-sized-and-beautiful-gifs-with-ffmpeg-25c5082ed733 | |
# https://www.bugcodemaster.com/article/convert-video-animated-gif-using-ffmpeg | |
# to gif, with custom frame rate | |
ffmpeg -i input.mov -r 20 \ | |
-filter_complex "[0:v] fps=15,scale=w=1080:h=-1,split \ | |
[a][b];[a] palettegen=stats_mode=single [p];[b][p] paletteuse=new=1" \ | |
output.gif -hide_banner | |
# to mp4, 2x speed | |
ffmpeg -i input.mov -filter:v "setpts=0.5*PTS" output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment