我是用的dvsdk的encode例子,idrframeinterval这个参数在dmai中的videnc1_dynamicparams结构体内没有定义,只在ih264venc_dynamicparams内定义了,我该如何设置idr的值?
Ternence_Hsu:
你好;
你在 VIDENC1_DynamicParams *dynParams; 中修改 intraFrameInterval 的值就可以了
Ternence_Hsu:
回复 Ternence_Hsu:
dvsdk-demos_4_02_00_01/dm365/encode/video.c 中 144 行下面添加一行;修改编码动态参数
dynParams->intraFrameInterval = 30; // 系统默认是30行;
XDAS_Int32 intraFrameInterval;/**< The number of frames between two I * frames. For example, 30. * * @remarks For example, this field will be: * – 0 – Only first frame to be intra * coded. e.g. IPPPPPP… * – 1 – No inter frames (all intra * frames). * – 2 – Consecutive IPIPIP… sequence (if * no B frames). * – 3 – IPPIPP… or IPBIPBI… and so on. */
user1678700:
回复 Ternence_Hsu:
你好,我是想设置idr帧的间隔,需要这个参数idrframeinterval,这个参数在结构体内,不知道该怎么设置?
Ternence_Hsu:
回复 user1678700:
XDAS_Int32 intraFrameInterval;/**< The number of frames between two I* frames. For example, 30.** @remarks For example, this field will be:* – 0 – Only first frame to be intra* coded. e.g. IPPPPPP…* – 1 – No inter frames (all intra* frames).* – 2 – Consecutive IPIPIP… sequence (if* no B frames).* – 3 – IPPIPP… or IPBIPBI… and so on.*/
Ternence_Hsu:
回复 Ternence_Hsu:
请问 idrframeinterval 参数 ,你是在什么地方看到设置的 ? 代码里面应当没有这个,实际有效值是 intraFrameInterval ;