biagionator:
#include <STM32SD.h>
You can't use STM32 libraries on the ESP32 processor. SOMEBODY added a bunch of libraries to the top of that sketch. Those libraries are NOT in the original source:
// -----------------------------------------------------------------------------------------
// Program: Video_Camera_Power_Save
// Summary: Motion triggered video camera that saves AVI files to SD card.
// Author: Paul Ibbotson (paul.w.ibbotson@gmail.com)
// Versions: 0.90 01-Jan-22 Initial version
// 0.91 15-Jan-22 Add WiFi access to get time for file timestamps (optional)
// Use 1 bit SD card bus, and use GPIO13 (instead of GPIO3) for the sensor, as this can be used for interupts (to wake from sleep).
// 0.92 04-Feb-22 Power save version. Sleeps, wakes up on motion sensor, takes movie, sleeps.
// 0.93 24-Aug-22 Resolve issue SDMMC_HOST_DEFAULT not declared, caused by library changes.
//
//
//
//
// -----------------------------------------------------------------------------------------
// Overview:
// Based on ESP32-CAM AI Thinker board.
// Uses both cores of the ESP32.
// Core 0 is used to: check the motion sensor to trigger capturing frames and storing them in memory.
// Core 1 is used to: retrieve frames from memory and create the AVI file on the SD card.
// PIR sensor is connected to GPIO13 - this needs to be an interrupt pin.
This file has been truncated. show original