Last active
August 18, 2024 04:14
-
-
Save allanlei/0077111d622c203fbc8af4d32ff7a7bb to your computer and use it in GitHub Desktop.
FFmpeg Filtergraph to generate Blur Out
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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