-
Notifications
You must be signed in to change notification settings - Fork 0
Rendering
Yohan Chalier edited this page Dec 20, 2024
·
1 revision
The render.py script allows for creating video renderings directly from Beatviewer.
- Install Beatviewer
- Download the render.py script
The script requires three arguments:
- An audio file (WAVE format)
- A video file
- 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.
This mode mimics the eponymous OBS effect. When a beat occurs, the script cuts to another random frame of the video.
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. |