Command File Format - 2020.2 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
PG252
Release Date
2020-11-24
Version
2020.2 English

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:

Table 1. Command Descriptions
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