VPU Bitrate changes on the fly

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

VPU Bitrate changes on the fly

1,581 次查看
jparrish88
Contributor IV

Could someone throw out ideas on how to change the bitrate of an H264 video encoding on the fly?

I believe that, the bitrate configuration is fixed at launch for the VPU.

Does anyone have suggestions on how to work on this?

标记 (4)
2 回复数

1,098 次查看
joanxie
NXP TechSupport
NXP TechSupport

mx6 vpu can support it. refer to the vpu api,

bitRate is the target bit rate in kbps. If 0, there is no rate control and pictures are encoded with a quantization parameter equal to quantParam in EncParam.

for example,

+                             { 

+                                             int bitrate = 1000; 

+                                             if (frame_id==100) 

+                                                             vpu_EncGiveCommand(handle, ENC_SET_BITRATE, &bitrate); 

+                             } 

                               ret = vpu_EncStartOneFrame(handle, &enc_param);  

0 项奖励
回复

1,098 次查看
gusarambula
NXP TechSupport
NXP TechSupport

joanxie , would you please help us with this question?