fix batch: missing cancel_export, overlay lifecycle, audio safety, gif encoding, UI polish
- add cancel_export command with AtomicBool flag - shut down overlay clickthrough poll thread on app exit - move set_overlay_clickthrough after capture starts (not before) - add fps filter to capture pipeline to avoid bloated intermediate files - add scale.max(0.1) floor in gif balanced mode - warn when gif encode can't meet target after retries - increase update apply script timeout and add retry loop - add SAFETY comments to all 21 unsafe blocks in audio.rs - remove dead output_path variable in capture.rs - remove no-op gif_colors.min() call in encode retry - add error toast dismiss button with 8-second auto-dismiss - remove test fps values (1,2,5,10) from idle screen - add duplicate hotkey validation in settings - change picker window to 2560x1440 - add gitignore exception for src-tauri/gen/schemas/
This commit is contained in:
@@ -57,6 +57,9 @@ impl GraphicsCaptureApiHandler for CaptureHandler {
|
||||
setup.width
|
||||
};
|
||||
|
||||
// Reduce frame rate before scaling to avoid processing unnecessary frames
|
||||
filter_parts.push(format!("fps={}", setup.fps));
|
||||
|
||||
if working_width > MAX_ENCODE_WIDTH {
|
||||
filter_parts.push(format!("scale={}:-2", MAX_ENCODE_WIDTH));
|
||||
} else {
|
||||
@@ -98,7 +101,6 @@ impl GraphicsCaptureApiHandler for CaptureHandler {
|
||||
// Read stderr in background to capture ffmpeg errors
|
||||
let stderr = child.stderr.take();
|
||||
if let Some(serr) = stderr {
|
||||
let output_path = setup.output_path.clone();
|
||||
std::thread::spawn(move || {
|
||||
use std::io::{BufRead, BufReader};
|
||||
let reader = BufReader::new(serr);
|
||||
|
||||
Reference in New Issue
Block a user