gblur (Gaussian Blur)ΒΆ

Watch on youtube.com
doc

https://ffmpeg.org/ffmpeg-filters.html#gblur, https://en.wikipedia.org/wiki/Gaussian_blur

  • sigma: horizontal sigma, standard deviation of Gaussian blur. Default is 0.5.

  • steps: number of steps for Gaussian approximation (must be in range [1, 6]). Defauls is 1.

  • planes: which planes to filter. By default all planes are filtered.

  • sigmaV: vertical sigma, if negative it will be same as sigma. Default is -1.

#! /bin/sh
ifn="Grape_Vineyard.mp4"
ifnb="`basename \"${ifn}\" .mp4`"
pref="`basename $0 .sh`"
#
sigma=${sigma:-0.5}
steps=${steps:-3}
#
ffmpeg  -y -i "${ifn}" -filter_complex "
[0:v]split[0v1][0v2];

[0v1]crop=900:500:30:580,setsar=1,
gblur=sigma=${sigma}:steps=${steps}

,drawbox=c=blue[b];

[0v2][b]overlay=30:580[v]
" -map '[v]' -an "${pref}_${ifnb}.mp4"