A sliding window algorithm where the encoder pre-scans N future frames to measure scene complexity and uses this information to determine bit allocation and frame type decisionsffmpeg -look_ahead 32