12.4. VENCΒΆ

Debugging Information

# 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: 

Debugging Information Analysis

recordcurrentVideo EncodingAttributeConfigurationandStatusInformation.

Parameter Description

Parameter

Description

MODULE PARAM

VencBufferCache

EncodingBitstream buffer WhetherUse cache Mode

0: no

1: yes

FrameBufRecycle

used to storageReferenceFrameandadvancedsmartPFrameidleBufferinEncodingWhetherbereceive

0: notreceive

1: receive

VencMaxChnNum

Encoding channelMaximumQuantity

VENC CHN ATTR1

ID

Encoding channel ID

Width

Encoding channelWidth

Height

Encoding channelHeight

Type

Encoding channelType

ByFrame

GetBitstreamMethod

0: packet Method

1: frame Method

Sequence

No.

When pressFrameobtain a streamtime, generationTableFramesequencenumber.

When presspacketobtain a streamtime, generationTablepacketsequencenumber.

LeftBytes

streamBufferinremainingbytes

LeftFrm

streamBufferinremainingFrameQuantity

CurPacks

currentFramepacketQuantity

(currentInvalid)

GopMode

GOP Mode

prio

Channelpriority

VENC CHN ATTR 2

VeStr

WhetherstartEncoding

SrcFr

VENCused to ControlFrameratesourceFramerate(InputFramerate)

TarFr

VENCused to ControlFramerateDestinationFramerate

Timeref

busy queueinFrame Timeref

PixFmt

currentlyinEncodingFrameFormat

PicAddr

currentlyinEncodingFrameAddress

WakeUpFrmCnt

When ChannelUseTimeoutorwithblockModeobtain a streamtime, specifiedblockInterfaceFramenumber

VENCCROP INFO

ID

Encoding channel ID

CropEn

WhetherEnableVENCCropFunction

StartX

Horizontal coordinate of the image crop start

StartY

Vertical coordinate of the image crop start

Width

CropImageWidth

Height

CropImageHeight

ROI INFO

ID

Channel number

Index

of interestRegion(ROI)Index

bRoiEn

WhetherEnable ROI

bAbsQp

ROIWhetherUseAbsoluteQPMode

Qp

by ROI Configuration QP value

Width

ROI Width (unit: pixel)

Height

ROI Height (unit: pixel)

StartX

ROIstartHorizontalCoordinate (unit: pixel)

StartY

ROIstartVerticalCoordinate (unit: pixel)

VENC PTS
STATE
ChannelReceivetoFrameTimestamp

ID

Channel number

RcvFirstFrmPts

ChannelreceivetofirstitemFrameTimestamp

RcvFrmPts

ChannelReceivecurrentFrameTimestamp

VENC CHN PERFORMANCE

ID

Channel number

InFPS

Encoding channelInput FPS (from VI or VPSS or app)

OutFPS

Encoding channelOutput FPS

HwEncTime

HardwareEncodingtimethis

CVITEK DEBUG STATE

VencDebugMask

middleware debugmask

VencStartFrmIdx

middleware debugstartFrame

VencEndFrmIdx

middleware debugendFrame

VencDumpPath

YUV srcFramepath