我用8168编码1080P30的 摄像机图像,编出来的码流每隔一个 I 帧 会初相 I 帧 特别小的情况 导致图像在I 帧小的那个图像序列变得模糊
这中情况的编码参数设置如下:
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> inputHeight : 1080^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> inputWidth : 1920^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> refFrameRate : 30000^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> targetFrameRate : 25000^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> targetBitRate : 2000000^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> intraFrameInterval : 30^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> generateHeader : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> captureWidth : 1920^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> forceFrame : 3^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> interFrameInterval : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> mvAccuracy : 2^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> sampleAspectRatioHeight : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> sampleAspectRatioWidth : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> ignoreOutbufSizeFlag : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> lateAcquireArg : -1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> rateControlParamsPreset : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> scalingMatrixPreset : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> rcAlgo : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpI : -1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMaxI : 35^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMinI : 10^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpP : -1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMaxP : 40^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMinP : 20^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpOffsetB : 4^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMaxB : 44^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMinB : 10^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> allowFrameSkip : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> removeExpensiveCoeff : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> chromaQPIndexOffset : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> IPQualityFactor : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> initialBufferLevel : 2000000^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> HRDBufferSize : 2000000^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> minPicSizeRatioI : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> maxPicSizeRatioI : 640^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> minPicSizeRatioP : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> maxPicSizeRatioP : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> minPicSizeRatioB : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> maxPicSizeRatioB : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> enablePRC : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> enablePartialFrameSkip : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> discardSavedBits : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> VBRDuration : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> VBRsensitivity : 8^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> skipDistributionWindowLength : 5^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> numSkipInDistributionWindow : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> enableHRDComplianceMode : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> frameSkipThMulQ5 : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> vbvUseLevelThQ5 : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> interCodingPreset : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeHorP : 144^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeVerP : 32^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeHorB : 144^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeVerB : 16^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> interCodingBias : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> skipMVCodingBias : 1^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> minBlockSizeP : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> minBlockSizeB : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> meAlgoMode : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraCodingPreset : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> lumaIntra4x4Enable : 0^M
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> lumaIntra8x8Enable : 255^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> lumaIntra16x16Enable : 15^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> chromaIntra8x8Enable : 15^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> chromaComponentEnable : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraRefreshMethod : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraRefreshRate : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> gdrOverlapRowsBtwFrames : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> constrainedIntraPredEnable : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraCodingBias : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceCodingPreset : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceMode : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceUnitSize : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceStartOffset : [0 0 0]^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> streamFormat : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceGroupChangeCycle : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] searchCenter : 32767^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] enableStaticMBCount : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] enableROI : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ——— CH 0 : H264 ENC : Dynamic Params ——-^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> inputHeight : 1080^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> inputWidth : 1920^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> refFrameRate : 30000^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> targetFrameRate : 25000^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> targetBitRate : 2000000^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> intraFrameInterval : 30^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> generateHeader : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> captureWidth : 1920^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> forceFrame : -1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> interFrameInterval : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> mvAccuracy : 2^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> sampleAspectRatioHeight : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> sampleAspectRatioWidth : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> ignoreOutbufSizeFlag : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] videnc2DynamicParams -> lateAcquireArg : -1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> rateControlParamsPreset : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> scalingMatrixPreset : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> rcAlgo : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpI : -1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMaxI : 35^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMinI : 10^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpP : -1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMaxP : 40^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMinP : 20^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpOffsetB : 4^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMaxB : 44^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> qpMinB : 10^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> allowFrameSkip : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> removeExpensiveCoeff : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> chromaQPIndexOffset : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> IPQualityFactor : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> initialBufferLevel : 2000000^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> HRDBufferSize : 2000000^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> minPicSizeRatioI : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> maxPicSizeRatioI : 640^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> minPicSizeRatioP : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> maxPicSizeRatioP : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> minPicSizeRatioB : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> maxPicSizeRatioB : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> enablePRC : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> enablePartialFrameSkip : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> discardSavedBits : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> VBRDuration : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> VBRsensitivity : 8^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> skipDistributionWindowLength : 5^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> numSkipInDistributionWindow : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> enableHRDComplianceMode : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> frameSkipThMulQ5 : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> vbvUseLevelThQ5 : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> interCodingPreset : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeHorP : 144^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeVerP : 32^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeHorB : 144^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> searchRangeVerB : 16^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> interCodingBias : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> skipMVCodingBias : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> minBlockSizeP : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> minBlockSizeB : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] interCodingParams -> meAlgoMode : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraCodingPreset : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> lumaIntra4x4Enable : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> lumaIntra8x8Enable : 255^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> lumaIntra16x16Enable : 15^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> chromaIntra8x8Enable : 15^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> chromaComponentEnable : 1^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraRefreshMethod : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraRefreshRate : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> gdrOverlapRowsBtwFrames : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> constrainedIntraPredEnable : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] intraCodingParams -> intraCodingBias : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceCodingPreset : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceMode : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceUnitSize : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> sliceStartOffset : [0 0 0]^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceCodingParams -> streamFormat : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] sliceGroupChangeCycle : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] searchCenter : 32767^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] enableStaticMBCount : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] enableROI : 0^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Dec 8 12:35:35 dm816x user.info remote_debug_client.out: [m3video] ^M
Chris Meng:
Yang He,
能否把下面的参数值设置为目标码率的两倍?
Dec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> initialBufferLevel : 2000000^MDec 8 12:35:34 dm816x user.info remote_debug_client.out: [m3video] rateControlParams -> HRDBufferSize : 2000000^M