Skip to content

Instantly share code, notes, and snippets.

@LouisRitchie
Created October 9, 2019 21:17
Show Gist options
  • Save LouisRitchie/d2a4e607c707d87b56d5af05a53aeb21 to your computer and use it in GitHub Desktop.
Save LouisRitchie/d2a4e607c707d87b56d5af05a53aeb21 to your computer and use it in GitHub Desktop.
ffmpeg stuff
# 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