ffmpge 控制libx264的帧类型

修改libx264.c中的X264_frame函数

x4->pic.i_pts = frame->pts; switch(frame->pict_type){ case FF_I_TYPE: if (frame->key_frame) x4->pic.i_type = X264_TYPE_IDR; else x4->pic.i_type = X264_TYPE_I; break; case FF_P_TYPE: x4->pic.i_type = X264_TYPE_P; break; case FF_B_TYPE: x4->pic.i_type = X264_TYPE_B; break; default: x4->pic.i_type = X264_TYPE_AUTO; break; }

你可能感兴趣的:(ffmpge 控制libx264的帧类型)