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

raspvid or raspvid_mjpeg_server - buffer problem #1

Open
dawidteo opened this issue Apr 22, 2024 · 1 comment
Open

raspvid or raspvid_mjpeg_server - buffer problem #1

dawidteo opened this issue Apr 22, 2024 · 1 comment

Comments

@dawidteo
Copy link

Hello,

thank You for this great project for home fun. ;)
I have a problem and don't know how to fix it.
When for some reason the connection speed drops below the set bitrate for a few seconds, no frame is skipped, which generates terrible delays and makes it impossible to control the car because I have to wait until all the frames from the buffer are loaded.
Is it possible to reduce the buffer size, e.g. to 1 frame, so that the video is always realtime?

best regards
Dawid

@dawidteo dawidteo changed the title raspvid or raspvid_mjpeg_server raspvid or raspvid_mjpeg_server - buffer problem Apr 22, 2024
@kig
Copy link
Owner

kig commented Apr 30, 2024

This would be caused by the video sender pushing all the frames to the TCP socket.

I don't know if it would help to rewrite raspivid_mjpeg_server to wait for each socket to finish writing the currently sending frame, and then send the latest frame.

If not, making the video stream work so that the browser pulls the latest frame from the server would get around this.

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