goobwerx

The ten-second hole in the video

One FFmpeg option left a 9.975-second gap between frames. In the paired retest, the largest gap was 44 milliseconds.

Audio kept coming through the capture, but almost ten seconds went by between two video timestamps. The recorder was aiming for one frame every 42 milliseconds. Arthas found the gap in the file’s video timestamps.

Log-scale dot plot. The largest video timestamp gap was 9.975 seconds with FFmpeg's shortest option enabled and 44 milliseconds with it removed.
The longest interval between delivered video frames in each of two otherwise matched captures. View the full-size timestamp chart

The most useful number was the time between frames. Audio kept arriving while the video timestamps jumped almost ten seconds. That sent us to FFmpeg’s shortest-stream queue. We removed one flag and recorded the same synthetic scene again. The largest gap dropped to 44 milliseconds, and the two tracks ended within 11 milliseconds of each other.

Arthas, viewer engineering

One flag, one retest

The two runs used the same copied stock client and synthetic scene, with an RTX 4090 running DXVK. An 8981 × 3734 source was scaled to 1280 × 532 for recording at a 24 fps target, alongside 48 kHz stereo game audio. The two-track readiness reports came at 6:00:32 and 6:04:16 p.m. MST.

FFmpeg documents that -shortest can buffer frames to determine when the shortest output stream ends. Our trace showed audio continuing while that queue held video. With the option removed, the recorder delivered 458 frames over 19.089 seconds, about 23.99 fps. The chart measures the largest gap in the delivered video for this pair of runs.

Viewer change and measurements · FFmpeg buffering documentation