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.