Skip to content

Instantly share code, notes, and snippets.

@maranemil
Created March 15, 2021 00:04
Show Gist options
  • Save maranemil/67b3fb40ac72093f6f86e94a1bc67a48 to your computer and use it in GitHub Desktop.
Save maranemil/67b3fb40ac72093f6f86e94a1bc67a48 to your computer and use it in GitHub Desktop.
FFMPEG simple Glitch FX
ffmpeg -i in.mp4 -vf "
split [main][tmp];
[tmp]
lutyuv=y=negval:enable='(between(t,3,3.1))',
lutyuv=u='(val-maxval/2)*2+maxval/2':v='(val-maxval/2)*2+maxval/2':enable='(between(t,3,3.4))',
lutyuv="y=3*val":enable='(between(t,3,3.4))',
hue=s=3:enable='(between(t,3,3.4))',
eq=contrast=3:enable='(between(t,3,3.4))',
lutyuv="u=128:v=128":enable='(between(t,3.4,3.5))',
lutyuv=y=gammaval(0.5):enable='(between(t,3.4,3.9))',
lutrgb=r=0:g=0:enable='(between(t,3.4,3.7))',
lutrgb=r=negval:g=negval:b=negval:enable='(between(t,3.7,3.9))',
lutyuv="y=2*val":enable='(between(t,4.1,4.2))'
[tmp2];
[main][tmp2] overlay=x=W/2 " -t 6 -y out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment