pub fn encoder_time_base(
rate: FrameRate,
limit: Option<u32>,
) -> Result<(i32, i32), EncodeError>Expand description
The time base for frames at rate: the frame length (1001/30000 for 29.97 fps) when its
denominator is within limit, else 1/D for the D within limit with the smallest worst-case
rounding of frame times. 119.88 fps becomes 1/64000, off by at most 7/960000 s.
ยงErrors
For a rate whose terms do not fit a 32-bit rational.