How to play a .mp4 video from SD card on ESP32-P4 EV board

raghav
Posts: 1
Joined: Tue May 06, 2025 6:13 pm

How to play a .mp4 video from SD card on ESP32-P4 EV board

Postby raghav » Tue May 06, 2025 6:28 pm

Hi everyone,

I’m working with the ESP32-P4 EV board and I want to play a .mp4 video file stored on an SD card and display it on an MIPI DSI display connected to the board.

I have a few doubts:

Does the ESP32-P4 support decoding MP4 (H.264 or similar) video formats directly in hardware?

If not, is there any existing library or workaround to decode video frames in software (even at low resolution and frame rate)?

Are there any sample projects or code references for playing video from an SD card on the ESP32-P4 with MIPI DSI output?

I’d appreciate any guidance, tips, or references!

Thanks in advance.

digitalLumberjack
Posts: 10
Joined: Mon Jul 08, 2024 3:01 pm

Re: How to play a .mp4 video from SD card on ESP32-P4 EV board

Postby digitalLumberjack » Mon May 12, 2025 2:04 pm

Hello, check https://github.com/espressif/esp-h264-component/ and https://github.com/espressif/esp-h264-c ... t/issues/5

Decodes H264, no mp4 and aac support in the module but you can check in ESP-ADF for mp3 decoding.

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

Re: How to play a .mp4 video from SD card on ESP32-P4 EV board

Postby ahsrabrifat » Tue May 13, 2025 4:04 pm

The ESP32-P4 does not support hardware decoding of H.264 video streams. You have to use Espressif's esp_h264 Component. This library provides a lightweight H.264 decoder based on TinyH264, optimized for ESP32 chips. It supports decoding of baseline profile streams and is suitable for low-resolution and low-frame-rate applications.

Who is online

Users browsing this forum: Barkrowler, Bing [Bot], Qwantbot and 5 guests