s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
931 stars 214 forks source link

Help with recording videos to SD card #329

Closed MaelStudio closed 10 months ago

MaelStudio commented 10 months ago

Hello,

I am currently working on a model rocket flight computer using the XIAO ESP32S3 Sense board. My goal is simply to record AVI videos with audio directly to the SD card, without the need for WiFi functionality. I have had a hard time finding existing basic code that achieves this.

I've experimented with the example code from the Seeed Studio Wiki, but it produces corrupt video files (with no audio), which are not readable unless I convert them to another format through an online converter. This is pretty inconvenient and I have playback framerate issues.

As this repository seems to be built around a complex web app, I am having trouble understanding the code. I have already tried removing stuff I don't need but now the project doesn't compile, and I could use some assistance to get a stripped down version of the code with only the basic video capabilities.

I appreciate any help you can provide.

Thank you.

s60sc commented 10 months ago

Don't need to change any code, just don't use WiFi. Recordings can be started and stopped using a switch on the pir pin. Settings can be changed by manually editing the config.txt file.

MaelStudio commented 10 months ago

Thank you for your response! After a few days of reading the code carefully and experimenting, I think I am starting to understand it more. For my application, I really need to remove everything that I won't make use of, even just to make the code simpler to understand, so that it will be easier to add onto that.