The encoder supports input commands simulating dynamic events, like dynamic bitrate and key frame insertion. This feature is enabled when a command file is referenced in the configuration file. Refer to the CmdFile parameter in Input Parameters. The command file format is described below. Each line of the file defines one frame identifier followed by one or more commands applying to this frame.
Syntax
<frame number>: <command> [, <command>]
Where <command> is one of the following:
Command | Description |
---|---|
SC | Scene change |
KF | KeyFrame (restarting new GOP with IDR) |
LT | Set next encoded picture as long term reference picture |
UseLT | Use long term the reference picture |
GopLen=<length> | Change the Gop length |
NumB=<numB> | Change the number of consecutive B-Frame |
BR=<Kbits/s> | Change the target bit rate |
Fps=<frames/s> | Change the frame rate |
Note: Keywords such as KF are case
sensitive.
Example
0: LT
20: KF
30: BR =100, GopLen = 10
45: SC
50: UseLT
101: GopLen= 20, NumB =1