Below code:-
Serial.printf("Before camera config ... SPIRam Total heap %d, SPIRam Free Heap %d", ESP.getPsramSize(), ESP.getFreePsram())
cam_err = esp_camera_init(&config);
Serial.printf("After camera config ... SPIRam Total heap %d, SPIRam Free Heap %d", ESP.getPsramSize(), ESP.getFreePsram())
Will give the following printed:-
Before camera config ... SPIRam Total heap 4194252, SPIRam Free Heap 4194252
After camera config ... SPIRam Total heap 4194204, SPIRam Free Heap 1314204
So of 4MB, 1.3 MB remains free after esp_camera_init. Is there a possibility such that this can be reduced, and have relatively larger amount of free memory in PSRAM.
I am using AI-Thinker board ESP32-Cam.
(I am following this code: https://github.com/jameszah/ESP32-CAM-Video-Recorder-junior)