- 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
The capture was declaring -framerate 120 (monitor refresh rate) but the
Windows capture API doesn't deliver frames at that rate. This caused ffmpeg
to compress the timeline - 10 seconds of recording became 4 seconds of video.
Fix: remove both -framerate and fps filter from capture. All frames are
captured as they arrive. The export pipeline's fps filter handles rate
conversion correctly.
The capture fps filter is needed to keep intermediate files at the user's
chosen fps instead of the monitor's native refresh rate. The GIF speed fix
was just removing the -r output flag from the gif encoder.
The capture pipeline was applying fps=N to drop frames from monitor refresh
rate to user fps. Then the GIF encoder applied fps=M on the already-converted
file. Double fps conversion = broken frame timestamps = wrong playback speed.
Fix: remove fps filter from capture. Intermediate files keep monitor's native
refresh rate (e.g. 120fps). The GIF/video encoder's fps filter handles the
conversion correctly in one clean step.
Also removed redundant -r flag from GIF encoder (already done), and restored
the 16:9 preset and low FPS options that were removed earlier.