Created
October 9, 2019 21:17
-
-
Save LouisRitchie/d2a4e607c707d87b56d5af05a53aeb21 to your computer and use it in GitHub Desktop.
ffmpeg stuff
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
# alex ffmpeg suggestion | |
alias gif='tmppalette=/tmp/palette.png; tmpvid=/tmp/cap.mp4; rm -f ; ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :100.0+0,0 && ffmpeg -ss 5.0 -i -filter_complex [0:v] palettegen && ffmpeg -ss 5.0 -i -i -filter_complex [0:v][1:v] paletteuse output.gif' | |
# simple example featuring scaling and speedup by 1/0.4 = 5/2 | |
ffmpeg -i input.mkv -filter:v scale=720:-1 -filter:v "setpts=0.4*PTS" output.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment