Commit Graph
75 Commits
Author SHA1 Message Date
lashman 99ff7fc5e2 keep recording audio and video in sync 2026-09-28 20:14:00 +03:00
lashman 730b8df0fe verify downloads before installing them 2026-09-22 19:21:00 +03:00
lashman 0da3691a1b let the capture rate be capped on purpose, off by default 2026-09-21 06:59:30 +03:00
lashman a953875405 keep capturing at the panel rate and name the fps setting after what it does 2026-09-21 06:49:37 +03:00
lashman aef64fa4e3 lint the test targets, make the fps setting real, and stop tonemapping sdr captures 2026-09-21 06:45:23 +03:00
lashman 4b850096a1 drop the dead code and close the gaps in the verification gate 2026-09-21 06:35:52 +03:00
lashman 4125d509cc format the rust sources and split the functions that pushed over the line 2026-09-21 06:33:23 +03:00
lashman 205f68222c get the encoder work off the main thread and harden the update path 2026-09-21 06:29:39 +03:00
lashman af30963223 fix the behaviour bugs in capture, encode and the overlay poller 2026-09-21 06:26:29 +03:00
lashman b33ce5bf77 fix the failures that were failing quietly 2026-09-21 06:22:44 +03:00
lashman c9ee532bd3 extract the d3d descriptors and cover the sweep and guard paths 2026-09-21 02:10:52 +03:00
lashman c746f4916a finish the lint pass: allow what is contractual, fix what is not 2026-09-21 01:38:01 +03:00
lashman e6e07ca6a1 merge duplicate arms and drop a needless clone 2026-09-21 01:32:20 +03:00
lashman 3f50fdd337 tidy bindings, closures and string building 2026-09-21 01:31:16 +03:00
lashman c7a4721e7d case-insensitive extensions and explicit else arms 2026-09-21 01:30:12 +03:00
lashman 9e23a5b7d3 make the buffer slicing checked instead of assumed 2026-09-21 01:27:56 +03:00
lashman e6e0d5b2b4 return values instead of wrapping them in needless results 2026-09-21 01:26:53 +03:00
lashman b2dd93fb09 take command arguments by value on purpose 2026-09-21 01:25:35 +03:00
lashman d297ec4271 convert the last lossy casts to checked ones 2026-09-21 01:22:16 +03:00
lashman cd583ba02b route the size and byte maths through saturating helpers 2026-09-21 01:20:11 +03:00
lashman 7c577eafd7 use let-else where the match only guarded an exit 2026-09-21 01:18:07 +03:00
lashman 72f24b7369 hoist item declarations above statements 2026-09-21 01:17:28 +03:00
lashman 8972592b8d document the remaining win32 safety contracts 2026-09-21 01:14:27 +03:00
lashman 630687945a drop a lint that only fires on command macro noise 2026-09-21 01:08:34 +03:00
lashman 186337b7bb replace production unwraps with real handling 2026-09-21 01:05:30 +03:00
lashman 1ace31fc6e keep temp clean and previews alive across a capture 2026-09-21 01:04:22 +03:00
lashman 03b2fec744 tighten visibility and clear the remaining mechanical lint noise 2026-09-21 00:44:25 +03:00
lashman 1332600148 enforce stricter lints, drop discarded results properly 2026-09-21 00:40:51 +03:00
lashman 95d168d5d8 drop the frame timing probe, keep click highlights in frame 2026-09-21 00:32:08 +03:00
lashman c3f132507a harden gif pipeline, capture, and audio resilience
fix gif calibration (sample deleted before measurement), swap the
budget-mode application so resolution shrinks width not fps, correct the
color factor comment. accumulate gif encode progress across retry
attempts instead of resetting, surface an over-budget result on the done
screen. stream the audio head padding instead of loading it into memory,
detect mid-record audio device loss and offer the existing retry flow,
invalidate the cached encoder list when the ffmpeg binary changes.
add a capture quality setting so 4k screens can record at native res,
try a stream copy before re-encoding when fixing capture timestamps,
park the overlay poll thread when idle, sweep stale config backups, add
a diagnostics tab, and consolidate the preview render debounce.
2026-06-17 23:57:28 +03:00
lashman f732cdda4d calibrate gif size, probe codecs, align audio with video
- sample-encode gif calibration before the retry loop
- probe ffmpeg encoders and grey out missing codecs in settings
- pad audio head with silence so it lines up with video start
- cache gif preview palette keyed on colors and sample window
- read encode progress from -progress pipe:1 instead of stderr scraping
- thread bt709 color metadata through capture, fix, and gif scale
- sweep temp on startup
- gif estimate table for the ui, interpolated locally on slider drag
2026-06-17 23:09:53 +03:00
lashman 4ca802ef71 tighten export and capture handling 2026-06-04 23:09:13 +03:00
lashman a48d82ddc9 split Main into components, move gif math to backend 2026-06-04 22:03:20 +03:00
lashman b6bee70dcd fix extraction leak, dead deps, logging, and frontend races 2026-06-01 19:14:29 +03:00
lashman c38bc04239 fix pts_scale: use capture fps (not declared 120) for timestamp correction 2026-05-30 02:11:29 +03:00
lashman 3c5acdce68 track frame count directly in capture handler, use for fps correction
The frame count is now tracked via Arc<AtomicU64> in the capture handler,
incremented on each frame arrival. fix_intermediate_fps uses this count
along with elapsed time to calculate the actual delivery rate, then
re-encodes the intermediate with correct fps via stream copy.
2026-05-30 02:04:36 +03:00
lashman 5d312b6b00 fix capture timing and gif size cap
- capture declares -framerate 999 to accept all frames without dropping
- after capture stops, measure actual delivery rate from frame count / elapsed time
- re-encode intermediate file with correct fps via stream copy (no quality loss)
- same fix applied to pause_capture segments
- gif: remove 15% size tolerance - never exceed target size
2026-05-30 01:14:51 +03:00
lashman f3ff35a48b quality pass 3: preview cleanup, gif filter hoist, config logging
- startOver clears previewPath/trimPreviewPath and resets gif settings
- startOver resets format/fps/dither to config defaults
- Main onMount wraps getConfig in try/catch
- unify DownloadProgress/UpdateDownloadProgress into single type
- default_output_path borrows config instead of cloning
- encode_gif_pass filter prefixes computed once outside retry loop
- config backup path included in warning log
- capture ffmpeg stderr logged at debug level instead of error
- is_newer comment notes pre-release version handling
- Picker hover debounced to ~33ms
- Picker emits picker-cancel on unmount
2026-05-30 00:13:58 +03:00
lashman 2cd836b09e quality pass 2: cached encoders, cancel in gif retry, overlay CSS split
- debug logging in picker changed to tracing::debug
- show_overlay uses visible_window_bounds helper
- encode_gif retry loop checks cancel flag between attempts
- list_encoders cached via OnceLock (ffmpeg -encoders runs once)
- remove unnecessary GifBudgetMode clone (is Copy)
- config test uses unique temp dir per process
- click highlights use 2px border instead of solid fill
- audio capture_loop polls at 5ms instead of 1ms
- overlay window loads minimal overlay.css instead of full app.css
- remove non-spec 960x540 preset
- Settings dirty detection uses field-by-field comparison
- Overlay startDragging catches errors
- pauseRec only emits recording-state on success
- Picker listener cleanup guards against unmount race
- add sync notes for previewDims and sr-only trim inputs
2026-05-30 00:01:56 +03:00
lashman d57e554ece quality pass: safe timestamps, cancel support, dedup, frontend polish
- replace unsafe GetLocalTime with safe SystemTime epoch
- lock() logs warning on mutex poison recovery
- extract try_start_audio/start_click_recorder helpers to dedup capture code
- cancel_export now actually kills ffmpeg via polling loop + cancel flag
- extract visible_window_bounds helper for DWM rect lookups
- clear_temp_segments cleans thumbs dir and preview files
- gif_params takes focused GifBudgetInput instead of full TranscodeRequest
- consistent error messages with full context chain
- reduce overlay clickthrough poll from 30ms to 80ms
- throttle trim preview to 10Hz
- bound thumbnail cache at 5 entries
- timer ticks until stopCapture resolves
- crop fields validate against clip dimensions
- settings shows unsaved indicator dot
- edit grid uses minmax for fluid responsive layout
- animations respect prefers-reduced-motion
- pauseRec only clears timer after successful pause
- refreshPreview logs errors instead of swallowing
- remove dead _deps string from preview effect
2026-05-29 23:38:18 +03:00
lashman e9005415c4 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/
2026-05-29 23:23:02 +03:00
lashman d08d464395 revert clickthrough change, stop propagation on overlay buttons so startDragging doesn't intercept clicks 2026-05-29 17:02:19 +03:00
lashman 21898a6d6a overlay always interactive when idle, click-through only during recording 2026-05-29 16:42:27 +03:00
lashman e150314a43 fix overlay titlebar height mismatch (22→24px) so close button receives clicks, re-sync ratio on resize 2026-05-29 16:32:39 +03:00
lashman ec26ad274f trim dragging shows raw frame at current position for instant feedback, switches to compressed preview on release; gif preview now shows actual palette/dithering effects 2026-05-29 15:43:39 +03:00
lashman 1a89a31ff5 remove crash detection - was false-positive crashing every recording 2026-05-28 01:08:46 +03:00
lashman 4b6ca60b2e graceful recovery from ffmpeg crash during recording - clean up state instead of getting stuck 2026-05-27 21:59:56 +03:00
lashman 07521b4a8b enforce aspect ratio via Win32 SetWindowPos from Rust instead of Tauri JS setSize which wasn't working 2026-05-27 21:46:52 +03:00
lashman 1c89bb6b0f gif retry respects budget priority (resolution=only adjust fps, framerate=only adjust resolution, balanced=adjust both), gif colors factored into size estimate, overlay queries aspect ratio from rust on resize instead of relying on cross-window events 2026-05-27 21:34:52 +03:00
lashman 2d060fe8f9 gif encode retry loop (up to 5 passes, adjusts resolution/fps until within 15% of target size), aspect ratio enforcement via rust command instead of unreliable cross-window emit 2026-05-27 21:22:59 +03:00