Some embodiments provide a method for adjusting a video sampling rate
during an video encoding operation. The method receives a metric that
quantifies the usage of a computer that performs the video encoding
operation. The method computes an adjustment factor based on the metric.
In some embodiments the metric is a system idle time. The method defines
the video sampling rate based on the adjustment factor. Some embodiments
compute the adjustment factor by performing a non-linear operation based
on the metric. In some embodiments, the non-linear operation includes
performing an integral operation based on the metric. In some
embodiments, the non-linear operation includes performing a derivative
operation based on the metric. Some embodiments perform more than one
operation to compute the adjustment factor. In some embodiments, each
operation is assigned a weight.