Home

Awesome

py_temporalfix

The objective is to use a separate portable vs/python interpretor to run the vs_temporalfix script developped by pifroggi

This project is experimental  

Table of Contents

 

Basic usage

python py_temporalfix.py --input input_video.mkv --output output_video.mkv --t_radius 6 --strength 300

 

Note: when the output container is Matroska (.mkv), the strength and temporal radius values are added to the output video metadata. Note2: it's possible to not specify the output filepath: a suffix will be automatically added to the filename

Requirements

 

Installation

[!TIP] It is recommended, but not required to use the miniconda distribution to create a separate python environment from the system python.

[!WARNING] As this script is highly experimental, in case of any problem with the installation, follow these instructions. I won't provide any help with vs/python. Never.

 

Usage

python py_temporalfix.py --help

Input, output

Option           Description
--inputPath to the input video file
--outputPath to the output video file
--suffixSuffix used when no output filename is specified (default: _fixed_<t_radius>_<strength>)

Parameters passed to the script.

For more details: vs_temporalfix

Option           DefaultDescription
--t_radius6The temporal radius sets the number of frames to average over. Higher means more stable. There is a big drop in performance for tr > 6
--strength400Suppression strength of temporal inconsistencies. Higher means more aggressive. If you get blending/ghosting on small movements or blocky artifacts, reduce this.

Video encoding

Parameters passed to the encoder. Refer to the FFmpeg documentation

Option               DefaultDescription
--encoderh264h264, h265, ffv1, vp9
--pix_fmtyuv420prgb or yuv formats
--preset-ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow
--crf230 to 51
--tunefilm, animation, grain, stillimage, fastdecode, zerolatency
--ffmpeg_args""Used to pass customized arguments to the encoder (FFmpeg). Override the previous options. This option must be double quoted. Example: --ffmpeg_args "-preset veryfast"

Not yet supported:

ArgumentFormatDescription
-sshh:mm:ss.msseek start
-thh:mm:ss.msduration
-tohh:mm:ss.msposition

 

Manual installation

Note: in case of any problem with vspython, create a portable python env and populate this env with vspipe.

 

Troubleshooting

Append --log to the command line. The script: