-
Notifications
You must be signed in to change notification settings - Fork 372
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
OctoPi Webcam Unuseable #246
Comments
|
Perhaps, depends on what format the camera produces and how much processing is required to produce the mjpeg stream from the format produced by the camera. However, my guess in your case is that you're saturating the available bandwidth of the WiFi dongle given its connectivity with your AP (position, walls, RF noise etc.) You can test my theory by removing the dongle and plugging in Ethernet directly to your router reboot and test using new ip address. |
top - 20:39:48 up 19 min, 1 user, load average: 0.20, 0.16, 0.23 Everything else is super fast, I can stream video from my media center to ANY tv in the house. But I cant get this webcam to do much more then stills every 2 seconds |
Yeah, but do any of them have as bad of an attenae as your wifi dongle as your pi? And keep in mind, the mjpeg stream is "optimized" to be as fast as possible to compute and is also a fairly fat in terms of bytes. There is no interframe compression. |
The ChromeCast probably has one just as bad. And it streams everything just fine. I have 4 of them in various parts of the house. much further away and more walls and floors in the way. Im kind of at a loss with it. I can get pretty smooth video when I have it set to 80 x 40 resoluion. |
That would lend to a bandwidth issue. Also, the web interface could still fly by comparison as it requires far less. I have a similar problem in the workspace of my apartment. Try this: From a command prompt on the Pi, run What do the results say? |
I have the same issue on my RPi2. The speed test gives me this
|
what do you get on your normal machine? |
About the same. Not quite sure how this helps as I normally stream over internal wifi, not via my ISP |
Understood. That's just a quick and easy test. If it were vastly different that's be an easy warning sign. You can check machine<->machine throughput with iperf for nuttcp (http://nuttcp.net/nuttcp/nuttcp-8.1.4/binaries/). |
Yes that is the sad truth. mjpg-streams are fat. there is hardly any compression. I currently run 640x480 @ 10 fps and it needs about 4.5 Mbit/s . Unusable if I want to access it via the web. I don't understand the issue, but it seems to be complicated to implement the usage of the h.264 compression on the Pi. (With that, 720p @30 fps shouldn't be way less than 4 MBit/s.) |
I've been using remotely the telegram plugin, |
Is there a chance that a better video compression will be implemented?? I found this comprehensive discussion: https://raspberrypi.stackexchange.com/questions/7446/how-can-i-stream-h-264-video-from-the-raspberry-pi-camera-module-via-a-web-serve Maybe the WebRTC is worth trying. |
AstroBox (a heavily divergent octoprint fork) uses webrtc if anyone felt like exploring that route. |
I have no idea. They forked years ago, no idea what they did in the meantime since contrary to made promises I never got any contributions back. |
@CoDanny Hey, any input by any chance on how Astroprint does camera streaming using WebRTC? BTW, just pulled the latest Astrobox image and ran it using CustomPiOS
Which is kinda strange can't tell how the image is built because there is not source available, that would suggest though someone is manually upgrading an exiting image. |
I just noticed that it has a WebRTC message when loading/ failing to load a video stream, and when I searched the repo there were some mentions, so I thought it reasonable to think it does something with it. |
I have an OctoPi server setup on a Pi 2. I have a Logitech C510 webcam setup with it, and it recognizes the camera, and displays images... images is all. It seems that the video has a refresh rate of once ever 2 seconds. its set to the standard 640x480 and 10 fps. It should be running MUCH smoother then that should it not?
The text was updated successfully, but these errors were encountered: