4 ms·
Anybody have an idea how to put this into practice? I recently tried streaming video over wifi from a Raspberry (for a robotics hobby project) , and everything
by jakobegger 9y ago
Anybody have an idea how to put this into practice? I recently tried streaming video over wifi from a Raspberry (for a robotics hobby project) , and everything I tried was either unusable or very delayed.
Is there an open source low latency video streaming solution for hobbyists?
- Jakob 9y agoHave you tried ffmpeg? Its streaming capabilities always worked really well for me. It can stream over UDP as well: https://trac.ffmpeg.org/wiki/StreamingGuide https://trac.ffmpeg.org/wiki/StreamingGuide. Also see the paragraph on latency (https://trac.ffmpeg.org/wiki/StreamingGuide#Latency https://trac.ffmpeg.org/wiki/StreamingGuide#Latency) on how to avoid common pitfalls.
- mgamache 9y agoyou should easily get < 1 second latency from an RPi => Desktop over WiFi. Strangely it's usually the client's buffering that is the culprit.
- harlanji 9y agoConfirmed. Best results can be had by starting with the Ubuntu Mate distro which has the rpi omx and mmal optimized ffmpeg out of the box, else steps to compile exactly right were time consuming. Here’s a gif of RPi streaming through a CDN which itself is fast, showing timestamps, using janky ffmpeg I built (aka. Worst-case): https://twitter.com/iSpoogeDaily/status/986681611600084992?s=20 https://twitter.com/iSpoogeDaily/status/986681611600084992?s... Tuning is ongoing, learning as I go. Thanks for client buffering pointer.
- mbrumlow 9y agoI use ffmpeg and some custom services for http://robot247.io http://robot247.io All the code is on GitHub. I can get very low latency video. Most of the delay comes in the form of the speed of light being so slow. On the web site in use jsmpeg.
- m3adow 9y agoCan you link the repo please? I couldn't find a link in the site and would be interested.
- mbrumlow 9y agoHere is the core of the site. I have not had much time to keep robots on line but if you want a demo you can ping me at my username at gmail and I can pop a robot on line (during work hours if I am in the office). I have been working on a better web interface that has on screen controls, because most people seem to want to type in like twitch, but the arrow keys are what you use. https://github.com/mbrumlow/webbot https://github.com/mbrumlow/webbot
- imtringued 9y agoIf you want a low latency video stream to a webbrowser then the only solution is to use WebRTC. Try using kurento [0]. [0] https://www.kurento.org/ https://www.kurento.org/