This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GDR set failed on DM385

In IPNC_RDK_V3.8.0. MCFW

I got some confusion about GDR mecanism.

Accroding to the H264_Encoder_HDVICP2_UserGuide,

I should set IVIDENC2_InArgs::control = IH264ENC_CTRL_START_GDR.

It means one refresh at one change. Is that right?

But I have seen that it's only set at function EncLinkH264_algDynamicParamUpdate.

When I changed the code to let it go inside ,it reported with error like followed.

------------------------------------------------------------------------------------------------------------------------------------------------------------------
[m3video] 45042:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_h264.c:[202]::INTERNAL ERROR:-1
[m3video] ALGCONTROL FAILED:CMD:1
[m3video] ERROR: IH264ENC_MAX_BIT_RATE_VOILATION = 7, 
[m3video] ERROR: XDM_UNSUPPORTEDPARAM = 14, 
[m3video] ERROR: XDM_FATALERROR = 15 
[m3video] ERROR: IH264ENC_UNSUPPORTED_VIDENC2DYNAMICPARAMS = 30, 
[m3video] ERROR: IH264ENC_UNSUPPORTED_H264ENCDYNAMICPARAMS = 31, 
[m3video] 45043:WARN
[m3video] ENCLINK: ERROR in Run time parameters changes, Extended Error code:-1073692544 
[m3video] Extended error c000c480 for reqObjIndex 0
[m3video] 45044:WARN
[m3video] ENCLINK:ERROR in Enclink_h264EncodeFrameBatch.Status[-1] for IVAHD_0
[m3video] 45044:WARN
[m3video] ENC : IVAHDID : 0 ENCLINK:ERROR in EncLink_SubmitBatch.Status[-1]
[m3video] ---------------enter_there 222----------------------
[m3video] Unhandled Exception:
[m3video] Exception occurred in ThreadType_Task
[m3video] handle: 0x8d428ac4.
[m3video] stack base: 0x8d5bbdc0.
[m3video] stack size: 0x2000.
[m3video] R0 = 0x8d0bb380 R8 = 0x8d423fa8
[m3video] R1 = 0x8d0be010 R9 = 0x8d0be010
[m3video] R2 = 0x00000000 R10 = 0x00000001
[m3video] R3 = 0x8d424098 R11 = 0xffffffff
[m3video] R4 = 0x8d424098 R12 = 0x8d423fa8
[m3video] R5 = 0x000004ac SP(R13) = 0x8d5bdc18
[m3video] R6 = 0x8d0bb384 LR(R14) = 0x8cd50223
[m3video] R7 = 0x8d0bd780 PC(R15) = 0x00000000
[m3video] PSR = 0x80000000
[m3video] ICSR = 0x0440f803
[m3video] MMFSR = 0x00
[m3video] BFSR = 0x00
[m3video] UFSR = 0x0002
[m3video] HFSR = 0x40000000
[m3video] DFSR = 0x00000000
[m3video] MMAR = 0xe000ed34
[m3video] BFAR = 0xe000ed38
[m3video] AFSR = 0x00000000
[m3video] Terminating Execution...
------------------------------------------------------------------------------------------------------------------------------------------------------------------
And where should I change IVIDENC2_InArgs::control into IH264ENC_CTRL_START_GDR?

Regards,

Yang

  • Here is my params

    [m3video] --------- CH 0 : H264 ENC : Dynamic Params -------
    [m3video]
    [m3video] videnc2DynamicParams -> inputHeight : 538976288
    [m3video] videnc2DynamicParams -> inputWidth : 538976288
    [m3video] interCodingParams-> interCodingPreset : 32
    [m3video] interCodingParams-> searchRangeHorP : 12589
    [m3video] interCodingParams-> searchRangeVerP : 14128
    [m3video] interCodingParams-> searchRangeHorB : 13875
    [m3video] interCodingParams-> searchRangeVerB : 12857
    [m3video] interCodingParams-> interCodingBias : 54
    [m3video] interCodingParams-> skipMVCodingBias : 55
    [m3video] interCodingParams-> minBlockSizeP : 50
    [m3video] interCodingParams-> minBlockSizeB : 0
    [m3video] interCodingParams-> meAlgoMode : -43
    [m3video]
    [m3video] intraCodingParams-> intraCodingPreset : 0
    [m3video] intraCodingParams-> lumaIntra4x4Enable : 0
    [m3video] intraCodingParams-> lumaIntra8x8Enable : 0
    [m3video] intraCodingParams-> lumaIntra8x8Enable : 0
    [m3video] intraCodingParams-> chromaIntra8x8Enable : 0
    [m3video] intraCodingParams-> chromaComponentEnable : 0
    [m3video] intraCodingParams-> intraRefreshMethod : 0
    [m3video] intraCodingParams-> intraRefreshRate : -29349
    [m3video] intraCodingParams-> gdrOverlapRowsBtwFrames : 19005
    [m3video] intraCodingParams-> constrainedIntraPredEnable : -29484
    [m3video] intraCodingParams-> constrainedIntraPredEnable : -5
    [m3video]
    [m3video] nalUnitControlParams -> naluControlPreset : -29479
    [m3video] nalUnitControlParams -> naluPresentMaskStartOfSequence : -9112
    [m3video] nalUnitControlParams -> naluPresentMaskIDRPicture : -29349
    [m3video] nalUnitControlParams -> naluPresentMaskIntraPicture : 2048
    [m3video] nalUnitControlParams -> naluPresentMaskNonIntraPicture : 0
    [m3video] nalUnitControlParams -> naluPresentMaskEndOfSequence : 0
    [m3video]
    [m3video] sliceCodingParams-> sliceCodingPreset : 0
    [m3video] sliceCodingParams-> sliceMode : 4096
    [m3video] sliceCodingParams-> sliceUnitSize : 1
    [m3video] sliceCodingParams-> sliceStartOffset[IH264ENC_MAX_NUM_SLICE_START_OFFSET] : 2 0 0
    [m3video] sliceCodingParams-> streamFormat : 0
    [m3video]
    [m3video] loopFilterParams-> loopfilterPreset : 0
    [m3video] loopFilterParams-> loopfilterDisableIDC : 3
    [m3video] loopFilterParams-> filterOffsetA : 89
    [m3video] loopFilterParams-> filterOffsetB : 34
    [m3video]
    [m3video] fmoCodingParams-> fmoCodingPreset : 21
    [m3video] fmoCodingParams-> numSliceGroups : -6
    [m3video] fmoCodingParams-> liceGroupMapType : -40
    [m3video] fmoCodingParams-> liceGroupChangeDirectionFlag : -116
    [m3video] fmoCodingParams-> liceGroupChangeRate : 40
    [m3video] fmoCodingParams-> sliceGroupChangeCycle : -29480
    [m3video] fmoCodingParams-> sliceGroupParams : [5120 256]
    [m3video]
    [m3video] vuiCodingParams-> vuiCodingPreset : 0
    [m3video] vuiCodingParams-> aspectRatioInfoPresentFlag : 0
    [m3video] vuiCodingParams-> aspectRatioIdc : 0
    [m3video] vuiCodingParams-> videoSignalTypePresentFlag : 0
    [m3video] vuiCodingParams-> videoFormat : 32
    [m3video] vuiCodingParams-> videoFullRangeFlag : 80
    [m3video] vuiCodingParams-> timingInfoPresentFlag : 240
    [m3video] vuiCodingParams-> hrdParamsPresentFlag : 191
    [m3video] vuiCodingParams-> numUnitsInTicks : 0
    [m3video]
    [m3video] stereoInfoParams-> stereoInfoPreset : 166
    [m3video] stereoInfoParams-> topFieldIsLeftViewFlag : 111
    [m3video] stereoInfoParams-> viewSelfContainedFlag : 93
    [m3video]
    [m3video] framePackingSEIParams-> framePackingPreset : 141
    [m3video] framePackingSEIParams-> framePackingType : 153
    [m3video] framePackingSEIParams-> frame0PositionX : 111
    [m3video] framePackingSEIParams-> frame0PositionY : 93
    [m3video] framePackingSEIParams-> frame1PositionX : 141
    [m3video] framePackingSEIParams-> frame1PositionY : 157
    [m3video]
    [m3video] svcCodingParams-> svcExtensionFlag : 218
    [m3video] svcCodingParams-> dependencyID : 140
    [m3video] svcCodingParams-> qualityID : 156
    [m3video] svcCodingParams-> enhancementProfileID : 46
    [m3video] svcCodingParams-> layerIndex : 218
    [m3video] svcCodingParams-> refLayerDQId : -116
    [m3video]
    [m3video] interlaceCodingType : 0
    [m3video] bottomFieldIntra : 0
    [m3video] gopStructure : 0
    [m3video] entropyCodingMode : 65
    [m3video] transformBlockSize : 0
    [m3video] log2MaxFNumMinus4 : 0
    [m3video] picOrderCountType : 0
    [m3video] enableWatermark : 0
    [m3video] IDRFrameInterval : -1923359588
    [m3video] maxIntraFrameInterval : -1923256492
    [m3video] debugTraceLevel : 0
    [m3video] lastNFramesToLog : 0
    [m3video] enableAnalyticinfo : -29
    [m3video] enableGMVSei : 72
    [m3video] constraintSetFlags : -44
    [m3video] enableRCDO : -116
    [m3video] enableLongTermRefFrame : -1932244492
    [m3video] LTRPPeriod : -1073692672
    [m3video] searchCenter : 0
    [m3video] enableStaticMBCount : -108
    [m3video] extMemoryDebugTraceAddr : -1
    [m3video] numTemporalLayer : 8
    [m3video] referencePicMarking: 0
    [m3video] extMemoryDebugTraceSize : -1925054463
    [m3video] enableROI : 0
    [m3video]
    [m3video]
    [m3video] bottomFieldIntra : 46
    [m3video] gopStructure : -38
    [m3video] entropyCodingMode : -116
    [m3video] transformBlockSize : -1
    [m3video] log2MaxFNumMinus4 : -1
    [m3video] picOrderCountType : -1
    [m3video] enableWatermark : -1
    [m3video] IDRFrameInterval : -1923359588
    [m3video] maxIntraFrameInterval : -1923256492
    [m3video] debugTraceLevel : 0
    [m3video] lastNFramesToLog : 0
    [m3video] enableAnalyticinfo : -29
    [m3video] enableGMVSei : 72
    [m3video] constraintSetFlags : -44
    [m3video] enableRCDO : -116
    [m3video] enableLongTermRefFrame : -1932244492
    [m3video] LTRPPeriod : -1073692672
    [m3video] searchCenter : 0
    [m3video] enableStaticMBCount : -108
    [m3video] extMemoryDebugTraceAddr : -1
    [m3video] numTemporalLayer : 8
    [m3video] referencePicMarking: 0
    [m3video] extMemoryDebugTraceSize : -1925054463
    [m3video] enableROI : 0
    [m3video]