Skip to content
K4YT3X edited this page Oct 7, 2023 · 4 revisions

This page covers the basics of using Video2X's command line interface.

Basic Upscale Example

You can use the following command to upscale a video to 1080p with waifu2x.

python -m video2x -i input.mp4 -o output.mp4 -p3 upscale -h 720 -a waifu2x -n3

Here's a more detailed explanation of the arguments:

python -m video2x \               # execute the video2x module
    -i input.mp4 -o output.mp4 \  # input and output file path
    upscale \                     # set mode to upscale
    -h 1080 \                     # set output height to 720px (aspect ratio is preserved)
    -a waifu2x \                  # use waifu2x to upscale
    -n3                           # set noise level to 3

Basic Frame Interpolation Example

You can use the following command to 2x the frame rate of a video with RIFE.

python -m video2x -i input.mp4 -o output.mp4 -p3 interpolate -a rife

Here's a more detailed explanation of the arguments:

python -m video2x \               # execute the video2x module
    -i input.mp4 -o output.mp4 \  # input and output file path
    interpolate \                 # set mode to interpolate
    -a rife                       # use RIFE to upscale