Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

H264 Encode

xu_w_1
Beginner
628 Views

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
Stav_S_Intel
Employee
628 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
xu_w_1
Beginner
628 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
Stav_S_Intel
Employee
628 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
Reply