RIFE

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Requirements: typo)
(Requirements: update avs+ link)
Line 16: Line 16:
 
== Requirements ==
 
== Requirements ==
 
* [https://en.wikipedia.org/wiki/Vulkan Vulkan] compatible device
 
* [https://en.wikipedia.org/wiki/Vulkan Vulkan] compatible device
* '''AviSynth+ r3682''' (can be downloaded from [https://gitlab.com/uvz/AviSynthPlus-Builds here] until official release is uploaded) or later
+
* [x64]: '''AviSynth+ r3682''' or greater (AviSynth+ 3.7.3 (test 6, r3935 can be [https://forum.doom9.org/showthread.php?p=1983250#post1983250 downloaded from here])
 
* Microsoft VisualC++ Redistributable Package 2022 (can be downloaded from [https://github.com/abbodi1406/vcredist/releases here])
 
* Microsoft VisualC++ Redistributable Package 2022 (can be downloaded from [https://github.com/abbodi1406/vcredist/releases here])
 
* Supported color formats: [[RGBPS]]
 
* Supported color formats: [[RGBPS]]

Revision as of 04:31, 21 February 2023

Abstract
Author Asd-g
Version 1.0.0
Download RIFE-1.0.0.7z
Category Frame Rate Converters
License MIT
Discussion

Contents

Description

Real-Time Intermediate Flow Estimation for Video Frame Interpolation, based on rife-ncnn-vulkan.

This is a port of the VapourSynth plugin RIFE.

Requirements

  • Vulkan compatible device
  • [x64]: AviSynth+ r3682 or greater (AviSynth+ 3.7.3 (test 6, r3935 can be downloaded from here)
  • Microsoft VisualC++ Redistributable Package 2022 (can be downloaded from here)
  • Supported color formats: RGBPS
  • models must be located in the same folder as RIFE.


Syntax and Parameters

RIFE (clip input, int "model", int "factor_num", int "factor_den", int "fps_num", int "fps_den", string "model_path", int "gpu_id", int "gpu_thread", bool "tta", bool "uhd", bool "sc", float "sc_threshold", bool "skip", float "skip_threshold", bool "list_gpu")


clip  input =
A clip to process.
It must be in RGB 32-bit planar format.


int  model = 5
Model to use.
models must be located in the same folder as RIFE.dll.
  • 0: rife
  • 1: rife-HD
  • 2: rife-UHD
  • 3: rife-anime
  • 4: rife-v2
  • 5: rife-v2.3
  • 6: rife-v2.4
  • 7: rife-v3.0
  • 8: rife-v3.1
  • 9: rife-v4
Default: 5.


int  factor_num = 2
int  factor_den = 1
Factor of target frame rate.
For example factor_num=5, factor_den=2 will multiply input clip FPS by 2.5.
Only rife-v4 model supports custom frame rate.
Default: 2, 1.


int  fps_num =
int  fps_den =
Target frame rate.
Only rife-v4 model supports custom frame rate.
Supersedes factor_num/factor_den parameter if specified.
Default: Not specified.


string  model_path =
RIFE model path.
Supersedes model parameter if specified.
Default: Not specified.


int  gpu_id =
GPU device to use.
By default the default device is selected.


int  gpu_thread = 2
Thread count for interpolation.
Using larger values may increase GPU usage and consume more GPU memory. If you find that your GPU is hungry, try increasing thread count to achieve faster processing.
Default: 2.


bool  tta = false
Enable TTA(Test-Time Augmentation) mode.
Default: False.


bool  uhd = false
Enable UHD mode.
Default: False.


bool  sc = false
Avoid interpolating frames over scene changes.
Default: False.


float  sc_threshold = 0.12
Threshold to determine whether the current frame and the next one are end/beginning of scene.
Must be between 0.0..1.0.
Default: 0.12.


bool  skip = false
Skip interpolating static frames.
Requires VMAF plugin.
Default: False.


float  skip_threshold = 60.0
PSNR threshold to determine whether the current frame and the next one are static.
Must be between 0.0..60.0.
Default: 60.0.


bool  list_gpu = false
Simply print a list of available GPU devices on the frame and does nothing else.
Default: False.


Examples

RIFE with default settings:

LSMASHVideoSource("hd-video.mp4")
z_ConvertFormat(pixel_type="RGBPS", colorspace_op="709:709:709:limited=>rgb:709:709:full")
RIFE()


Changelog

Version      Date            Changes
v1.0.0 2022/08/21 - Initial release. - Used ncnn@93ed2bc. - Used boost 1.79.0. - Used Vulkan SDK 1.3.216.0.


External Links

  • GitHub - Source code repository.




Back to External Filters

Personal tools