unsharp_opencl
Sharpen or blur the input video.
It accepts the following parameters:
- 'luma_msize_x, lx'
-
Set the luma matrix horizontal size. Range is
[1, 23]
and default value is5
. - 'luma_msize_y, ly'
-
Set the luma matrix vertical size. Range is
[1, 23]
and default value is5
. - 'luma_amount, la'
-
Set the luma effect strength. Range is
[-10, 10]
and default value is1.0
.Negative values will blur the input video, while positive values will sharpen it, a value of zero will disable the effect.
- 'chroma_msize_x, cx'
-
Set the chroma matrix horizontal size. Range is
[1, 23]
and default value is5
. - 'chroma_msize_y, cy'
-
Set the chroma matrix vertical size. Range is
[1, 23]
and default value is5
. - 'chroma_amount, ca'
-
Set the chroma effect strength. Range is
[-10, 10]
and default value is0.0
.Negative values will blur the input video, while positive values will sharpen it, a value of zero will disable the effect.
All parameters are optional and default to the equivalent of the string '5:5:1.0:5:5:0.0'.
Command line examples
- Apply strong luma sharpen effect:
-i INPUT -vf "hwupload, unsharp_opencl=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5, hwdownload" OUTPUT
- Apply a strong blur of both luma and chroma parameters:
-i INPUT -vf "hwupload, unsharp_opencl=7:7:-2:7:7:-2, hwdownload" OUTPUT
Video Sources
Below is a description of the currently available video sources.