ESP32-P4 H.264 encoding example

Narragansett
Posts: 5
Joined: Sat Jul 26, 2025 10:54 pm

ESP32-P4 H.264 encoding example

Postby Narragansett » Mon Aug 04, 2025 11:55 pm

Hello,
I've been looking for an H.264 encoding example for the P4. Can someone point me in the right direction?

thanks :)

Sprite
Espressif staff
Espressif staff
Posts: 10617
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-P4 H.264 encoding example

Postby Sprite » Tue Aug 05, 2025 12:46 am


Narragansett
Posts: 5
Joined: Sat Jul 26, 2025 10:54 pm

Re: ESP32-P4 H.264 encoding example

Postby Narragansett » Tue Aug 05, 2025 3:14 pm

I have found that -- thanks. This is driver code, which is necessary to create example code.

Espressif is quite good at documentation of their devices and peripherals, which (importantly) includes example code. The P4 is a new device, which may explain why there is no example code for the H.264 encoder (that I've found).

I ordered the ESP32-P4 EYE camera and I was surprised to see that the latest demo code for it doesn't include H.264 encode. (viewtopic.php?t=46268) In its place is MJPEG. The engineers that wrote this code are much more familiar with the device than practically anyone, so I'm left wondering if the P4's onchip H.264 encoder is operational (why else wouldn't it be in the demo?)

Perhaps someone at Espressif can shed some light on this.

thanks

Sprite
Espressif staff
Espressif staff
Posts: 10617
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-P4 H.264 encoding example

Postby Sprite » Wed Aug 06, 2025 1:02 am

Ah, sorry, I thought that had examples. Seems the devs intend https://components.espressif.com/compon ... /esp_video as the end-user interface that abstracts over all the hardware/software options, is that something you can use? It does have examples. (Note that while it uses V4L2_* terminology, that code is intended to run solely on ESP-IDF.)

Narragansett
Posts: 5
Joined: Sat Jul 26, 2025 10:54 pm

Re: ESP32-P4 H.264 encoding example

Postby Narragansett » Wed Aug 06, 2025 2:52 pm

Many thanks for the link -- it does appear that https://github.com/espressif/esp-video- ... amples/uvc has h.264 encoding implemented. I'll give it a try, thanks.

Who is online

Users browsing this forum: Baidu [Spider], Perplexity-User and 3 guests