Page 1 of 1

ESP32-P4 H.264 encoding example

Posted: Mon Aug 04, 2025 11:55 pm
by Narragansett
Hello,
I've been looking for an H.264 encoding example for the P4. Can someone point me in the right direction?

thanks :)

Re: ESP32-P4 H.264 encoding example

Posted: Tue Aug 05, 2025 12:46 am
by Sprite

Re: ESP32-P4 H.264 encoding example

Posted: Tue Aug 05, 2025 3:14 pm
by Narragansett
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

Re: ESP32-P4 H.264 encoding example

Posted: Wed Aug 06, 2025 1:02 am
by Sprite
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.)

Re: ESP32-P4 H.264 encoding example

Posted: Wed Aug 06, 2025 2:52 pm
by Narragansett
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.