Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Apply Multiple Blur Areas To A Video With ffmpeg

This is a command that applies three different blur boxes to a video

Code

CMD="[0:v]copy[base];";

CMD="$CMD[0:v]crop=94:23:0:0,boxblur=4[tmp];"
CMD="$CMD[base][tmp]overlay=113:4[base];"

CMD="$CMD[0:v]crop=72:52:6:47,boxblur=4[tmp];"
CMD="$CMD[base][tmp]overlay=6:47[base];"

CMD="$CMD[0:v]crop=130:18:77:48,boxblur=4[tmp];"
CMD="$CMD[base][tmp]overlay=77:48[base];"

ffmpeg -i "in.mp4" \
-filter_complex "$CMD" \
-map "[base]" \
-y out.mp4