Hi,
When I use this codec to encode 1080P, the X64P is generated successfully, but when I use it to encode, the result is: the I frame is good, but the size is a little large, but P frame size is 12 byte, such as in 30 frames, ths size is (108290, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12).
when I use h264fhdvenc 01_10_02_03 and h264fhdvenc 01_10_02_05 , the encoded video stream is right, both P and I frame.but when I use h264fhdvenc 01_10_02_06 with the same parameters and encode demo, the encoded P frame is wrong
My environment is :
DM6467
DVSDK3_10_00_19
HDVICP version 1.01.020
/*H264fhdenc Params*/
IH264FHDVENC_Params hd_params ={
{
sizeof(VIDENC1_Params), /* size */
XDM_DEFAULT, /* encodingPreset */
IVIDEO_LOW_DELAY, /* rateControlPreset */
1088, /* maxHeight */
1920, /* maxWidth */
25000, /* maxFrameRate */
6000000, /* maxBitRate */
XDM_LE_32, /* dataEndianness */
0, /* maxInterFrameInterval */
XDM_YUV_420SP, /* inputChromaFormat */
IVIDEO_PROGRESSIVE, /* inputContentType */
XDM_CHROMA_NA
},
66,
40,
0
};
/* Use extended dynamic parameters to allow tweaking of the QP value */
IH264FHDVENC_DynamicParams extDynParams =
{
{
sizeof(IVIDENC1_DynamicParams), /* size */
1080, /* inputHeight */
1920, /* inputWidth */
25000, /* refFrameRate */
25000, /* targetFrameRate */
6000000, /* targetBitRate (override in app) */
30, /* intraFrameInterval */
XDM_ENCODE_AU, /* generateHeader */
0, /* captureWidth */
IVIDEO_NA_FRAME, /* forceFrame */
0, /* interFrameInterval */
0 /* mbDataFlag */
},