Skip to content

ESP32-P4-WIFI6 Pico-LCD-1.8: room for the video encoder beside Home - #936

Merged
bdbarnett merged 1 commit into
mainfrom
laneG-p4pico-dma
Nov 30, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
laneG-p4pico-dma

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

On the ESP32-P4-WIFI6 (Pico) with the Pico-LCD-1.8, casting at 1280x720 or 960x544 failed from Home with "not enough internal RAM in one piece for the encoder". The display bus queued up to 128 KB of internal RAM for DMA, the P4's default, though a whole 160x128 frame is 40 KB. With Home running, that left 56 KB in one piece, and castif's H.264 encoder needs 92 KB at 1280 wide (69 KB at 960).

This asks the bus for 64 KB (dma=65536), as the ESP32-P4X-EYE's config already asks for 32 KB. A frame still goes in one queued write.

Checked on the board: with Home running, the largest free piece of internal RAM went from 56,320 to 124,928 bytes, castif.Cast(1280, 720, yuv420=True) opened, and a 720p camera cast to a Roku ran at 25.6 fps. Home and the Roku camera app drew as before in screenshots of the panel. libbuild.py check and installers --check pass.

The display bus queued up to 128 KB of internal RAM for DMA, the P4's
default, to send a 40 KB frame. With Home running that left 56 KB of
internal RAM in one piece, and castif's H.264 encoder needs 92 KB at 1280
wide, so casting failed at 720p and at 960x544. A 64 KB queue still sends a
whole frame in one write and leaves 122 KB in one piece: castif.Cast opens at
1280x720 from Home, and a 720p camera cast ran at 25.6 fps.
@bdbarnett
bdbarnett merged commit 17aaa65 into main Nov 30, 2026
4 checks passed
@bdbarnett
bdbarnett deleted the laneG-p4pico-dma branch November 30, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant