Sharpen or blur the input video.
It accepts the following parameters:
- luma_msize_x, lx
-
Set the luma matrix horizontal size. It must be an odd integer between 3 and 63, default value is 5.
- luma_msize_y, ly
-
Set the luma matrix vertical size. It must be an odd integer between 3 and 63, default value is 5.
- luma_amount, la
-
Set the luma effect strength. It can be a float number, reasonable values lay between -1.5 and 1.5.
Negative values will blur the input video, while positive values will sharpen it, a value of zero will disable the effect.
Default value is 1.0.
- chroma_msize_x, cx
-
Set the chroma matrix horizontal size. It must be an odd integer between 3 and 63, default value is 5.
- chroma_msize_y, cy
-
Set the chroma matrix vertical size. It must be an odd integer between 3 and 63, default value is 5.
- chroma_amount, ca
-
Set the chroma effect strength. It can be a float number, reasonable values lay between -1.5 and 1.5.
Negative values will blur the input video, while positive values will sharpen it, a value of zero will disable the effect.
Default value is 0.0.
- opencl
-
If set to 1, specify using OpenCL capabilities, only available if FFmpeg was configured with
--enable-opencl
. Default value is 0.
All parameters are optional and default to the equivalent of the string ’5:5:1.0:5:5:0.0’.
Examples
-
Apply strong luma sharpen effect:
unsharp=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5
-
Apply strong blur of both luma and chroma parameters:
unsharp=7:7:-2:7:7:-2