12.4. VENC¶
【调试信息】
# cat /proc/cvitek/venc
Module: [VENC] System Build Time [#1 SMP PREEMPT Sat Jan 23 02:50:26 CST 2021]
-----MODULE PARAM---------------------------------------------
VencBufferCache: 0 FrameBufRecycle: 0 VencMaxChnNum: 70
-----VENC CHN ATTR 1---------------------------------------------
ID: 0 Width: 1920 Height: 1080 Type: H264 RcMode: CBR ByFrame: Y Sequence: 0 LeftBytes: 0 LeftFrm: 0 CurPacks: 0 GopMode: NORMALP Prio: 0
-----VENC CHN ATTR 2-----------------------------------------------
VeStr: Y SrcFr: 0 TarFr: 0 Timeref: 0 PixFmt: YUV420 PicAddr: 0x130000000 WakeUpFrmCnt: 0
-----VENC CROP INFO------------------------------------------------
ID: 0 CropEn: N StartX: 0 StartY: 0 Width: 1920 Height: 1080
-----VENC PTS STATE------------------------------------------------
ID: 0 RcvFirstFrmPts: 0 RcvFrmPts: 254
-----VENC CHN PERFORMANCE------------------------------------------------
ID: 0 InFPS: 25 OutFPS: 25 HwEncTime: 12 ms
----- CVITEK Debug Level STATE ----------------------------------------
VencDebugMask: 0x0 VencStartFrmIdx: 0 VencEndFrmIdx: 0 VencDumpPath:
【调试信息分析】
记录当前视频编码属性配置以及状态信息。
【参数说明】
参数 |
描述 |
|
---|---|---|
MODULE PARAM |
VencBufferCache |
Whether the encoding stream buffer uses the cache mode 0: no 1: yes |
FrameBufRecycle |
Whether the idle buffers used for store reference frames and advanced smartP-frames are recycled during encoding 0: not recycled 1: recycled |
|
VencMaxChnNum |
Maximum number of encoding channels |
|
VENC CHN ATTR1 |
ID |
VENC channel ID |
Width |
VENC channel width |
|
Height |
VENC channel height |
|
Type |
VENC channel type |
|
ByFrame |
Mode of obtaining streams 0: by packet 1: by frame |
|
Sequence |
Sequence number When the streams are obtained by frame, it represents the frame sequence number. When the streams are obtained by packet, it represents the packet sequence number. |
|
LeftBytes |
Remaining bytes in a stream buffer |
|
LeftFrm |
Number of remaining stream frames in a stream buffer |
|
CurPacks |
Number of stream packets for the current frame (invalid currently) |
|
GopMode |
GOP mode |
|
prio |
Channel priority |
|
VENC CHN ATTR 2 |
VeStr |
Whether to start encoding |
SrcFr |
Source frame rate (input frame rate) used by the VENC for controlling the frame rate |
|
TarFr |
Target frame rate used by the VENC for controlling the frame rate |
|
Timeref |
Timeref of the latest frame in the busy queue |
|
PixFmt |
Format of the frame that is being encoded |
|
PicAddr |
Address for the frame that is being encoded |
|
WakeUpFrmCnt |
Number of frames of the specified wakeup blocking interface when the channel usage times out or the streams are obtained in block mode |
|
VENCCROP INFO |
ID |
VENC channel ID |
CropEn |
Whether to enable the cropping function of the VENC channel |
|
StartX |
Start horizontal coordinate of the image to be cropped |
|
StartY |
Start vertical coordinate of the image to be cropped |
|
Width |
Width of the cropped image |
|
Height |
Height of the cropped image |
|
ROI INFO |
ID |
Channel ID |
Index |
Region of interest (ROI) index |
|
bRoiEn |
ROI enable |
|
bAbsQp |
Whether the ROI uses the absolute QP mode |
|
Qp |
QP value configured by the ROI |
|
Width |
ROI width (unit: pixel) |
|
Height |
ROI height (unit: pixel) |
|
StartX |
Start horizontal coordinate of the ROI (unit: pixel) |
|
StartY |
Start vertical coordinate of the ROI (unit: pixel) |
|
VENC PTS
STATE
Timestamp of a framereceived by thechannel
|
ID |
Channel ID |
RcvFirstFrmPts |
Timestamp of the first frame received by the channel |
|
RcvFrmPts |
Timestamp of the current frame received by the channel |
|
VENC CHN PERFORMANCE |
ID |
Channel ID |
InFPS |
Input FPS of venc channel (from VI or VPSS or app) |
|
OutFPS |
Output FPS of venc channel |
|
HwEncTime |
Hw encode time cost |
|
CVITEK DEBUG STATE |
VencDebugMask |
The debug mask of middleware |
VencStartFrmIdx |
The start frame of middleware debugging |
|
VencEndFrmIdx |
The end frame of middleware debugging |
|
VencDumpPath |
The YUV src frame dump path |