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

Camera settings ignored? #160

Open
0wwafa opened this issue Jan 18, 2025 · 2 comments
Open

Camera settings ignored? #160

0wwafa opened this issue Jan 18, 2025 · 2 comments

Comments

@0wwafa
Copy link

0wwafa commented Jan 18, 2025

Whatever I set in "FRAME SIZE", both the web streaming (fast) and RTSP stream seems not to be affected and just output 640x480.

Also, why the web streaming (jpg) is so fast and the rtsp instead is so slow (like 5 fps vs 30 or so)

@rzeldent
Copy link
Owner

Hi Robert,

RTSP requires a fixed clock and this means that in the loop the frame will be outputted every xx ms.
The web streaming just grabs a frame and sends it without delay.

See handle stream:

  while (client.connected())
  {
    client.write("\r\n--" STREAM_CONTENT_BOUNDARY "\r\n");
    cam.run();
    client.write("Content-Type: image/jpeg\r\nContent-Length: ");
    sprintf(size_buf, "%d\r\n\r\n", cam.getSize());
    client.write(size_buf);
    client.write(cam.getfb(), cam.getSize());
  }

RTSP is a rather complex protocol....

@0wwafa
Copy link
Author

0wwafa commented Jan 19, 2025

I understand. but why are camera settings ignored?
The camera (DC 2640 V3) can grab frames at 1600x1200 but it only seems to grab 640x480 with esp32cam-rtsp :(
http://www.uctronics.com/download/OV2640_DS.pdf

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

2 participants