From 6beebd0e1b581d2fd6173796813c73f8adebc461 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sun, 14 Apr 2024 22:41:50 +0200 Subject: [PATCH] higher res chunks --- src/main.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index dff6fdd..ca1a5ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,8 +4,10 @@ use std::{env, process::Command, thread, time::Duration}; // const HEIGHT: u32 = 7; const WIDTH: u32 = 14; const HEIGHT: u32 = 13; +const CHUNK_W: u32 = 1280 / WIDTH; +const CHUNK_H: u32 = 1000 / HEIGHT; const _SIZE: u32 = WIDTH * HEIGHT; -const SCALE: u32 = 2; // resolution of chunks +// const SCALE: u32 = 2; // resolution of chunks const OFFSET: f32 = 0.1; // time offset for starting fn main() { @@ -35,11 +37,11 @@ fn generate() { .arg(format!("{:.1}", offset)) .arg("-filter_complex") .arg(dbg!(format!( - "[0:v]scale={}:{}[SC];[SC]crop={SCALE}:{SCALE}:{}:{}", - WIDTH * SCALE, - HEIGHT * SCALE, - x * SCALE, - y * SCALE + "[0:v]scale=1280:1000[SC];[SC]crop={}:{}:{}:{}", + CHUNK_W, + CHUNK_H, + x * CHUNK_W, + y * CHUNK_H ))) .arg("-an") .arg("-y")