Intel® Video Super Resolution#
FFmpeg Intel® Video Super Resolution Filter Plugin Documentation
💡 Tip: For up to date documentation refer to: OpenVisualCloud/Video-Super-Resolution-Library
Raisr FFmpeg Filter Plugin#
The Intel® Video Super Resolution (Raisr) filter plugin for FFmpeg provides super-resolution capabilities for video frames using the Raisr algorithm. It allows for upscaling video frames by a specified ratio with options for bit depth, color range, threading, and more. Below are the input parameters that can be configured for the Raisr filter plugin. To start using Raisr filter, use -vf "raisr=<<PARAMS>>"
Raisr FFmpeg Filter Plugin Parameters Table#
Parameter |
Description |
Type |
Default |
Range / Possible Values |
---|---|---|---|---|
|
Set the ratio of the upscaling, between 1 and 2. |
Float |
|
|
|
Set the bit depth for processing. |
Integer |
|
|
|
Set the input color range. |
String |
|
|
|
Set the number of threads to use. |
Integer |
|
|
|
Set the absolute filter folder path. |
String |
|
N/A |
|
Set the CT blending mode. |
Integer |
|
|
|
Set the number of passes to run. |
Integer |
|
|
|
Set the mode for two-pass processing. |
Integer |
|
|
|
Set the x86 asm type. |
String |
|
|
|
Select the OpenCL platform ID. |
Integer |
|
|
|
Select the OpenCL device ID. |
Integer |
|
|
Raisr OpenCL FFmpeg Filter Plugin#
The Raisr OpenCL filter plugin for FFmpeg is designed to perform super-resolution on video frames using the Raisr algorithm with OpenCL acceleration. This document outlines the input parameters and configuration options available for the Raisr OpenCL filter plugin. To start using Raisr OpenCL filter, use -vf "raisr_opencl=<<PARAMS>>"
Raisr OpenCL FFmpeg Filter Plugin Parameters Table#
Parameter |
Description |
Type |
Default Value |
Range / Possible Values |
---|---|---|---|---|
|
Set the ratio of the upscaling, between 1 and 2. |
Float |
|
|
|
Set the bit depth for processing. |
Integer |
|
|
|
Set the input color range. |
Integer |
|
|
|
Set the absolute filter folder path. |
String |
|
N/A |
|
Set the CT blending mode. |
Integer |
|
|
|
Set the number of passes to run. |
Integer |
|
|
|
Set the mode for two-pass processing. |
Integer |
|
|
Raisr FFmpeg Filter Plugin Documentation#
Input Parameters#
ratio
#
Description: Set the ratio of the upscaling, between 1 and 2.
Type: Float
Default:
DEFAULT_RATIO
Range:
MIN_RATIO
toMAX_RATIO
Flags: Filtering parameter, Video parameter
bits
#
Description: Set the bit depth for processing.
Type: Integer
Default:
8
Range:
8
to10
Flags: Filtering parameter, Video parameter
range
#
Description: Set the input color range.
Type: String
Default:
"video"
Flags: Filtering parameter, Video parameter
Possible Values:
"video"
,"full"
threadcount
#
Description: Set the number of threads to use.
Type: Integer
Default:
DEFAULT_THREADCOUNT
Range:
MIN_THREADCOUNT
toMAX_THREADCOUNT
Flags: Filtering parameter, Video parameter
filterfolder
#
Description: Set the absolute filter folder path.
Type: String
Default:
"filters_2x/filters_lowres"
Flags: Filtering parameter, Video parameter
blending
#
Description: Set the CT blending mode.
Type: Integer
Default:
BLENDING_COUNT_OF_BITS_CHANGED
Range:
BLENDING_RANDOMNESS
toBLENDING_COUNT_OF_BITS_CHANGED
Flags: Filtering parameter, Video parameter
Possible Values:
1
(Randomness),2
(CountOfBitsChanged)
passes
#
Description: Set the number of passes to run.
Type: Integer
Default:
1
Range:
1
to2
Flags: Filtering parameter, Video parameter
mode
#
Description: Set the mode for two-pass processing.
Type: Integer
Default:
1
Range:
1
to2
Flags: Filtering parameter, Video parameter
Possible Values:
1
(upscale in 1st pass),2
(upscale in 2nd pass)
asm
#
Description: Set the x86 asm type.
Type: String
Default:
"avx512fp16"
Flags: Filtering parameter, Video parameter
Possible Values:
"avx512fp16"
,"avx512"
,"avx2"
,"opencl"
platform
#
Description: Select the OpenCL platform ID.
Type: Integer
Default:
0
Range:
0
toINT_MAX
Flags: Filtering parameter, Video parameter
device
#
Description: Select the OpenCL device ID.
Type: Integer
Default:
0
Range:
0
toINT_MAX
Flags: Filtering parameter, Video parameter
Usage Example#
ffmpeg -i input.mp4 -vf "raisr=ratio=2:bits=10:range=full" output.mp4
Raisr OpenCL FFmpeg Filter Plugin Documentation#
Input Parameters#
ratio
#
Description: Set the ratio of the upscaling, between 1 and 2.
Type: Float
Default:
DEFAULT_RATIO
Range:
MIN_RATIO
toMAX_RATIO
bits
#
Description: Set the bit depth for processing.
Type: Integer
Default:
8
Range:
8
to10
range
#
Description: Set the input color range.
Type: Integer
Default:
VideoRange
Possible Values:
VideoRange
,FullRange
filterfolder
#
Description: Set the absolute filter folder path.
Type: String
Default:
"filters_2x/filters_lowres"
blending
#
Description: Set the CT blending mode.
Type: Integer
Default:
CountOfBitsChanged
Possible Values:
Randomness
,CountOfBitsChanged
passes
#
Description: Set the number of passes to run.
Type: Integer
Default:
1
Range:
1
to2
mode
#
Description: Set the mode for two-pass processing.
Type: Integer
Default:
1
Range:
1
to2
Possible Values:
1
(upscale in 1st pass),2
(upscale in 2nd pass)
Constants#
DEFAULT_RATIO
: The default upscaling ratio.MIN_RATIO
: The minimum upscaling ratio.MAX_RATIO
: The maximum upscaling ratio.VideoRange
: Represents the video color range.FullRange
: Represents the full color range.Randomness
: Represents the randomness blending mode.CountOfBitsChanged
: Represents the count of bits changed blending mode.
Usage Example#
ffmpeg -init_hw_device vaapi=va -init_hw_device opencl@va -i input.mp4 -vf "format=yuv420p,hwupload,raisr_opencl,hwdownload,format=yuv420p,format=yuv422p10le" -c:v h264 output.mp4