BaseParse.setFrameRate

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

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.

Parameters

fpsNumframes per second (numerator).
fpsDenframes per second (denominator).
leadInframes needed before a segment for subsequent decode
leadOutframes needed after a segment