cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP2 Hantro VPU V4L2 H.264/VP8 Encoding & Decoding Usage Inquiry

SullyNiu
Associate III

Product:

  • MCU/SoC: STM32MP2

Description:
In our ST Linux environment, the hantro-vpu driver registers:

/dev/video5 -> VDEC (H.264/VP8 Decoder)
/dev/video6 -> VENC (H.264/VP8 Encoder)

 

We want to implement direct V4L2 API usage for H.264/VP8 encoding and decoding, without using GStreamer.

Specific Questions:

  1.  Are there official minimal examples or demos using pure V4L2 API for H.264 / VP8 encoding/decoding?
  2. DMA Usage: Is it possible to use DMA for input/output buffers in V4L2 mem2mem mode on STM32MP2 Hantro VPU? If yes, what is the recommended configuration and constraints?

 

1 REPLY 1

Hi @SullyNiu ,

 

There are no official examples or demos using pure V4L2 API for H.264/VP8 encoding/decoding delivered by STMicroelectronics.

The wiki page https://wiki.st.com/stm32mpu/wiki/V4L2_video_codec_overview just highlights in its chapter “2.2. APIs description” the official Video for Linux API especially https://www.kernel.org/doc/html/v6.6/userspace-api/media/v4l/v4l2.html in which there are some examples of API usage.

https://www.kernel.org/doc/html/v6.6/userspace-api/media/v4l/dev-stateless-decoder.html is also interesting but I assume that you already know this documentation.

 

However, hope this information helps.

 

Regards,

JC.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.