Can not force IDR

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can not force IDR

795 次查看
marko1921
Contributor I

Hello. I'm playing with encode_stream.c and test_enc_arm_elinux.c in imx-vpuwrap repository

VPU wrapper version is

vpu lib version : major.minor.rel=1.1.1
vpu fw version : major.minor.rel_rcode=1.1.1_r0
vpu wrapper version : major.minor.rel=3.0.0: VPUWRAPPER_ARM64_LINUX

I'm receiving regular P-frame hen I'm trying to force IDR by setting field  sEncEncParam.nForceIPicture = 1.

How do I correctly force IDR ?

0 项奖励
回复
1 回复

775 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

When inserting a new IDR frame, drain your pipeline and reset.  There are only a few changes that are completely safe to do without a drain/reset.  Use mfxExtEncoderResetOption=ON to make sure that a new sequence is started.

To ensure that mfxEncodeCtrl parameters correctly correspond to intended frame, allocate as many of them as surfaces used by the encoder. 

Regards

0 项奖励
回复