@marka2 Using the example ESP32CAM in the camera settings CAMERA_MODEL_M5STACK_PSRAM I changed the initialization of the foam #define Y2_GPIO_NUM from 32 to 17 and installed the firmware. It worked for me. Let me know if You do not work and what will be the error.
For streaming video memory is enough, facial recognition modules do not work correctly, the reason I think lies in the lack of memory, but I just needed a camera for the project and I do not use these features.
I confirm Lurk's comment: by changing Y2_GPIO_NUM from 32 to 17 this allowed the camera to work on my M5STACK ESP32CAM (the one from the picture).
Note that now it is included in the CameraWebServer example: https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino
I used #define CAMERA_MODEL_TTGO_T_JOURNAL // No PSRAM and it worked first try!
Hope that this helps someone!