Skip to content

Instantly share code, notes, and snippets.

@allanlei
Last active August 18, 2024 04:14
Show Gist options
  • Save allanlei/0077111d622c203fbc8af4d32ff7a7bb to your computer and use it in GitHub Desktop.
Save allanlei/0077111d622c203fbc8af4d32ff7a7bb to your computer and use it in GitHub Desktop.
FFmpeg Filtergraph to generate Blur Out
ffmpeg -i source.mp4 -filter_complex \
"[0:v]split=2[base][blurred]; \
[blurred]boxblur=luma_radius=50:chroma_radius=25:luma_power=1[blurred]; \
[blurred]fade=type=in:start_time=5:duration=1:alpha=1[blurred-with-fadein]; \
[base][blurred-with-fadein]overlay[blurout]" \
-map "[blurout]" blurout.mp4
@bilogic
Copy link

bilogic commented Aug 18, 2024

this is more a cross fade rather than blur in/out, the difference is quite visible when there are text/fonts or any sharp edges in the image where their edges will never blur, but instead fade out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment