BaseParse.setFrameRate

If frames per second is configured, parser can take care of buffer duration and timestamping. When performing segment clipping, or seeking to a specific location, a corresponding decoder might need an initial lead_in and a following lead_out number of frames to ensure the desired segment is entirely filled upon decoding.

class BaseParse
void
setFrameRate
(
uint fpsNum
,
uint fpsDen
,
uint leadIn
,
uint leadOut
)

Parameters

fpsNum uint

frames per second (numerator).

fpsDen uint

frames per second (denominator).

leadIn uint

frames needed before a segment for subsequent decode

leadOut uint

frames needed after a segment