this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

:bug: Fix Windows incompatibilities

authored by

Gwenn Le Bihan and committed by
Ewen Le Bihan
ae4bc64e 67e173bf

+3 -3
+1 -1
src/canvas.rs
··· 271 271 // portrait: resolution is height 272 272 ((resolution as f32 / aspect_ratio) as usize, resolution) 273 273 }; 274 - let mut spawned = std::process::Command::new("convert") 274 + let mut spawned = std::process::Command::new("magick") 275 275 .args(["-background", "none"]) 276 276 .args(["-size", &format!("{}x{}", width, height)]) 277 277 .arg("-")
+2 -2
src/lib.rs
··· 274 274 let result = std::process::Command::new("ffmpeg") 275 275 .args(["-hide_banner", "-loglevel", "error"]) 276 276 .args(["-framerate", &self.fps.to_string()]) 277 - .args(["-pattern_type", "glob"]) 278 - .args(["-i", &format!("{}/*.png", self.frames_output_directory)]) 277 + // .args(["-pattern_type", "glob"]) // not available on Windows 278 + .args(["-i", &format!("{}/%0{}d.png", self.frames_output_directory, self.total_frames().to_string().len())]) 279 279 .args(["-i", self.audiofile.to_str().unwrap()]) 280 280 .args(["-t", &format!("{}", self.duration_ms() as f32 / 1000.0)]) 281 281 .args(["-vcodec", "png"])