jameszah / ESP32-CAM-Video-Recorder

Video Recorder for ESP32-CAM with http server for config and ftp (or http) server to download video
GNU General Public License v3.0
443 stars 101 forks source link

How exacly the code records avi? #42

Closed af-unlu closed 2 years ago

af-unlu commented 3 years ago

I'm trying to implement this for projects with esp-idf, junior.2x does the job but it's a little bit spaghetti. What exactly is the code doing?(Edit : btw thanks so much, your project saved me a lot of time) (I will publish after I finish, ofc)

jameszah commented 3 years ago

You would have to be more specific.

About Video Recorder for ESP32-CAM with http server for config and ftp server to download video

maritoperezdeargentina commented 3 years ago

Hi @Yuxekova , I don't know exactly the code works, but can tell you it records a format called MMPEG,

basically it stores a sequence of JPG files, one after other, the full frames.

AVI also has a header to identify this format, in the code you can found it,

but the rest of the process, as far I can understand, should be ask the camera driver for the JPG compressed image, and then append to the avi file. maybe some closing mark is also needed,

I hope you can learn more about the format mmpeg, and the codes makes more sense for you (I had no time to investigate further).