···3636 --workers <number> Number of parallel threads to use for rendering [default: 8]
3737 --fps <fps> Frames per second [default: 30]
3838 --audio <file> Audio file to use for the video
3939+ --duration <seconds> Number of seconds to render. If not set, the video will be as long as the audio file.
4040+ --preview Only create preview.html, not the output video. Preview.html will be created in the same directory as <file>, but <file> will not be created.
3941 --sync-with <directory> Directory containing the audio files to sync to.
4042 The directory must contain:
4143 - stems/(instrument name).wav — stems
···8991 pub flag_audio: Option<String>,
9092 pub flag_resolution: Option<usize>,
9193 pub flag_workers: Option<usize>,
9494+ pub flag_duration: Option<usize>,
9595+ pub flag_preview: bool,
9296}
93979498fn set_canvas_settings_from_args(args: &Args, canvas: &mut Canvas) {