Encoding H.264 & H.265 using vpu_wrapper.h ?

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

Encoding H.264 & H.265 using vpu_wrapper.h ?

Jump to solution
1,629 Views
ari-san_24
Contributor II

Hi,

 

We have an EDM-G-WB board with an i.MX8 M+ SoM.

We want to use the VPU API for the following:

  • H.264 encoding with different profiles
  • H.265 encoding.

Is that possible using vpu_wrapper.h ?

If so, how?

If not, is it possible to use the functions in hantro_VC8000E_enc/hevcencapi.h ?

 

Thanks in advance for any help / information!

Ari S.

0 Kudos
1 Solution
1,553 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ari

 

>How can I use different profiles for encoding H.264 and H.265?

 

unfortunately, vpu_wrapper cannot be used to select any profile for encoding, nor for H.264 or H.265.

I asked internally, please see below the internal answer received:

------------------

"Currently there is no option as part of the VPU wrapper to configure the profile levels. The reason being, the Encoder can only be configured against constant bitrate  (or) variable bit rate. The bitrate algorithm that is part of the Encoder completely hides the user from selecting the various encoding options, as bitrate is what finally everyone will look to when configuring the encoder."

------------------

Best regards
igor

View solution in original post

0 Kudos
4 Replies
1,612 Views
ari-san_24
Contributor II

Hi Igor,

Thanks very much for your reply and info links. I had read the IMX VPU API Reference Manual.

I'm afraid my question was not specific enough. What I actually meant, was: How can I use different profiles for encoding H.264 and H.265?

1. Is it possible to select BP, MP, or HP profile for encoding an H.264 stream?
The API reference manual lists BP/MP/HP H.264 profiles, but apparently only for decoding.

2. Is it possible to select different H.265 profiles, or even change any parameters for H.265? 
VpuEncOpenParams contains a union VpuEncStdParam with only 3 values: mp4Param, h263Param, or avcParam.
All the HEVC descriptions also seem to refer to decoding...


Thanks,
Ari

 

 

 

 

 

1,554 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ari

 

>How can I use different profiles for encoding H.264 and H.265?

 

unfortunately, vpu_wrapper cannot be used to select any profile for encoding, nor for H.264 or H.265.

I asked internally, please see below the internal answer received:

------------------

"Currently there is no option as part of the VPU wrapper to configure the profile levels. The reason being, the Encoder can only be configured against constant bitrate  (or) variable bit rate. The bitrate algorithm that is part of the Encoder completely hides the user from selecting the various encoding options, as bitrate is what finally everyone will look to when configuring the encoder."

------------------

Best regards
igor

0 Kudos
1,530 Views
ari-san_24
Contributor II

Hi Igor,

Thank you for checking!
I will keep hoping that this feature might be added in a future version.

Best Regards,
Ari

0 Kudos
1,622 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ari

 

yes vpu_wrapper.h can be used for encoding, one can refer to   i.MX VPU API Reference Manual​

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8-GStreamer-User-Guide/ta-p/1098942

 

Best regards
igor