-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get more frame? #1
Comments
Hi @Tri44 Have you read through this thread?... it mentions a number of ways to improve performance. The easiest is to use a faster SD card... there is a big difference between cards. https://forum.arduino.cc/t/video-recording-with-an-esp32-pir-sensor/938687/37 ... and yes, if you change the FPS you also need to change the matching variables in the AVI header. Search for "[based on FRAME_INTERVAL] " in the code. |
Ahh... thanks for the replay i do read through that thread and have class10 sd card Also i move sensor reading to loop() because i often use wifi connection for uploading and move this code to sepreate header file. I will look more into AVI header. |
Sometimes the SD cards are not as good as they say they are... What speed are you seeing when the code runs? 18:52:47.655 -> Average frame size (bytes): 38580 "Average write speed" - what value do you see? |
Sorry i will back to you in couple hour i'm not on my workstation rn |
ha... weird i only see this [Sensor] Movement detected |
@Tri44 Ah ok... there are 2 versions of the code... one is a power saving version that sleeps between movies... it has more debugging statements. Try using that one, or copy the debug code to the version you are using. |
This is what i got First run: Second run: And when i am being idiot implement this code to my code, i didn't notice if the config.fb is connected to MAX_FRAME🤦 and my config.fb = 2, Sorry for the confusion Maybe i am accidentally sort of make it work to capture 1280x1024(or it being render back to 800x600 because of AVI Header?) at 10fps with DIV set to 5 <- (i need this to get more light at night) |
This the most simple project i've seen for record a video
Cool project btw
And i have question
For some reason i couln't get video beyon 10fps
I try change some of this value
FRAME_INTERVAL = 40
MAX_FRAME = 30
FRAMESIZE_SVGA // 800 x 600
it is need something to do with the AVI Header?
The text was updated successfully, but these errors were encountered: