Skip to content

Rendering

Yohan Chalier edited this page Dec 20, 2024 · 1 revision

The render.py script allows for creating video renderings directly from Beatviewer.

Installation

  1. Install Beatviewer
  2. Download the render.py script

Usage

The script requires three arguments:

  1. An audio file (WAVE format)
  2. A video file
  3. A path to an output file (MP4 format)

Currently, the script supports two modes, seek and slow. Default mode is seek. You may specify the mode with the -m, --mode argument.

Output file will last as long as the audio file. The video loops when reaching the end.

seek: Seek On Beat

This mode mimics the eponymous OBS effect. When a beat occurs, the script cuts to another random frame of the video.

slow: Slow Motion

This mode gradually and continuously reduces playback speed. When a beat occurs, the speed resets to 1x. It accepts two arguments.

Argument Default Description
-d, --decay 0.9 Playback speed decay factor. Typically takes values between 0.95 and 0.9. This should be set according to audio BPM and video framerate.
-j, --jumpcut False If True, when a beat occurs, the video jumps to the frame it should be at without slow down. The general playback speed is thus 1x, with regular slow downs and cuts.
Clone this wiki locally