Created
May 2, 2014 17:45
-
-
Save sjwilliams/4b23f60fc451e7e8c59e to your computer and use it in GitHub Desktop.
FFmpeg: Blur video
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
ffmpeg -i intro.mov -vf "boxblur=5:1" intro-blur.mov |
@hraban thank you very much
- default values:
-vf boxblur
===-vf boxblur=luma_radius=2:luma_power=2
. - blur just a part of the frame:
-vf boxblur=w=20:h=20:x=400:y=200
. - blur just for a few seconds of the video's timeline (example: 00:00:03-00:10:00)
-vf boxblur=enable='between(t,3,10*60)'
. - combine those freely, order is not important (
:
to separate arguments,=
to specify value). - f.y.i,
enable
is available for any filter! (when it makes sense, not much forcrop
, for example..).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hieuseesaa as far as I understand https://ffmpeg.org/ffmpeg-filters.html#boxblur and from tinkering with it: the 5 is the pixel radius of the (gaussian?) blur effect, while the 1 is the amount of consecutive frames to apply the blur to. increasing the 5 will make it blurrier. Increasing the 1 will make it choppier (not "smoothed out", as you might expect from e.g. a moving average).