VPU Bitrate changes on the fly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VPU Bitrate changes on the fly

1,679 Views
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?

Tags (4)
2 Replies

1,196 Views
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 Kudos
Reply

1,196 Views
gusarambula
NXP TechSupport
NXP TechSupport

joanxie , would you please help us with this question?