[iMX8MP] How to set encoded NALu type's NRI to 3 (0b11)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[iMX8MP] How to set encoded NALu type's NRI to 3 (0b11)

535件の閲覧回数
b_m
Contributor III

Hi Community
I am making an encoder app using VPU wrapper. (Input: YUV420 NV12, Output: H264)
The app can encode without a problem (if the encoded data is converted from H264 to AVI via ffmpeg, the expected picture can be played)

However, checking the binary values of the encoded data, it seems that each NALu 's nal_ref_idc byte (NRI) is set to 1 instead of 3 ("important")

      +---------------+
      |0|1|2|3|4|5|6|7|
      +-+-+-+-+-+-+-+-+
      |F|NRI|  Type   |
      +---------------+

So encoded SPS's NRI is 0x27 instead of 0x67, PPS's is 0x28 instead of 0x68, IDR's is 0x25 instead of 0x65.

Which parameters should be set to encode with an NRI of 3?

0 件の賞賛
返信
2 返答(返信)

500件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

484件の閲覧回数
b_m
Contributor III

Hi,
Can you tell me what exactly should I be looking at?

I briefly read the latest manual. Aside from NXP changing its stance from recommending the use of VPU Wrapper to deprecating it (seriously?), what else has changed (specifically, changes related to my question)?

I still don't see any way of setting NRI to 3.

 

0 件の賞賛
返信