Skip to content
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

old pic sent by the device #31

Open
bmburi opened this issue Nov 13, 2022 · 10 comments
Open

old pic sent by the device #31

bmburi opened this issue Nov 13, 2022 · 10 comments

Comments

@bmburi
Copy link

bmburi commented Nov 13, 2022

HI, every time the pir senses a motion the pic is sent is actually the last pic was taken before.
is there a way to fix this?
thank u in advance!

@bmburi
Copy link
Author

bmburi commented Nov 13, 2022

@jameszah

@jameszah
Copy link
Owner

what version are you using?
That happened with ver 8.8 (13 months ago), and corrected with 8.9 (9 months ago) after the esp32-arduino drivers changed.
The current 9.5 or 9.6 (1 month ago) should be okay ????

@bmburi
Copy link
Author

bmburi commented Nov 14, 2022

am using the latest version 9.6
thank u so much for ur work btw
its the latest version is there a way around it? @jameszah

@jameszah
Copy link
Owner

Try this:

  • at line 873, it takes a picture which will be sent as a still picture before the movie (which may be skipped if you are skipping movies)
  • before that line, paste in the code below, which takes 4 pictures and discards them, deleting the inventory of old pictures that were added due to some driver changes

    for (int j = 0; j < 4; j++) {
      camera_fb_t * newfb = esp_camera_fb_get();
      if (!newfb) {
        Serial.println("Camera Capture Failed");
      } else {
        //Serial.print("Pic, len="); Serial.print(newfb->len);
        //Serial.printf(", new fb %X\n", (long)newfb->buf);
        esp_camera_fb_return(newfb);
        delay(10);
      }
    }

@bmburi
Copy link
Author

bmburi commented Nov 14, 2022

if its not too much trouble, is it possible to update the one link installation because i usually mess up the compiling!

@bmburi
Copy link
Author

bmburi commented Nov 14, 2022

i cant really compile it idk what am doing wrong

@bmburi
Copy link
Author

bmburi commented Nov 15, 2022

@jameszah plus command clip does not work

@FBMinis
Copy link

FBMinis commented Nov 16, 2022

I don't have that old pic problem with this combination:

Arduino 1.8.13
Arduino core for ESP32 v2.0.2
ESP32-CAM-Video-Telegram v9.6

@bmburi
Copy link
Author

bmburi commented Nov 16, 2022

does the clip command works for u?
do u have an sd card on?
i used tge one click installation did u u use the same?

@FBMinis
Copy link

FBMinis commented Nov 17, 2022

i used tge one click installation did u u use the same?

I use the .ino file with the arduino IDE

do u have an sd card on?

I do not use an sdcard

does the clip command works for u?

Running v9.6, I get reboots and dont receive the video when in HD && /fast || /med setting. In HD && /slow || /vslow I receive the video with no reboots. Zero problem running v9.5 or v9.6 VGA.

I have two cameras running for about 4 weeks now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants