frc1418 / 2019-dashboard

Code for our 2019 driving dashboard.
MIT License
0 stars 0 forks source link

Cameras are very slow through MJPG web stream, but not on driverstation's dashboard #63

Open ErikBoesen opened 5 years ago

ErikBoesen commented 5 years ago

No idea why this would happen. @ArchdukeTim

ArchdukeTim commented 5 years ago

@virtuald?

Lot's of people at competition were having issues with low FPS camera streams, even though the usage was only at ~2 MB/s

virtuald commented 5 years ago

I don't understand the title.

ErikBoesen commented 5 years ago

On the driverstation's FRC Dashboard application (the top panel of the dashboard), the cameras run at a reasonable framerate. However, when the cameras are viewed through a browser stream (like at 10.14.18.2:1181/stream.mjpg, for instance), the framerate is 1-2fps. The same thing thus occurs when we try to show the camera streams through the mjpg stream on the dashboard. @virtuald

virtuald commented 5 years ago

o rly... that's very curious. I don't have an explanation for this, you should post a question on CD and I'll point Peter at it.

virtuald commented 5 years ago

Any idea what version of cscore you're using? It would be in the driver station logs if you have that available.

virtuald commented 5 years ago

What resolution/fps are you specifying?

ErikBoesen commented 5 years ago

@virtuald We are specifying 160x120, however this problem occurs regardless of the resolution we use. We played around with the FPS to try and get a more consistent framerate on the driverstation dashboard, but this issue occurs regardless of what FPS we choose there.

ErikBoesen commented 5 years ago

I'm not sure what version of cscore we're using. I updated all our dependencies on the robot on Friday.