Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
8 Views

H264 Encode

hi there,

Could you please tell me how to reset the value of nal_reference_idc?

I've noticed that the value of nal_reference_idc was 1 in IDR frame after the operation of sample_encode H264,

but how can I make it as 3 instead of 1.

Kind regards

0 Kudos
3 Replies
Highlighted
Employee
8 Views

Hi,

Can you specify on what you are trying to change exactly? i tried to look at the demo and not sure i understood. 

did you mean max_num_ref_frames? 

If so, it can be  controlled by mfxVideoParam-> mfxInfoMFX-> NumRefFrame

 

Regards,

Stav

0 Kudos
Highlighted
Beginner
8 Views

hi,
The nal_ref_idc is the priority of a NAL unit.For example the data like "......00 00 00 01 27......"means a start of a SPS NAL.

The data 0x27 means the priorfy of the NAL is 1(the second and the third bit of 0010 0111b is 01b). What i want to do is to change this value to 3(11b).

Regards,

Xu w.

 

0 Kudos
Highlighted
Employee
8 Views

Hi,

OK, i understand.

 I am afraid you can not change to value of nal_ref_idc via MSDK API. 

Regards,

Stav

0 Kudos