Raspberry Pi no delay (<10ms) video stream

Klemen picture Klemen · May 25, 2013 · Viewed 45.7k times · Source

I'm building quadcopter based on Raspberry Pi. I want to stream video from webcam via cellular conection to my computer. I tryed ffmpeg and mjpg but it has to big delay to make it possible to control Quad only with watching video.

My question is if it's possible to stream video with realy small delay (so small that I will be able to drive quad without problems)?

If Raspberry's hardware isn't good enough, BeagleBord may do it? Also, mounting smartphone to quad will be last possible solution but I prefer soulution with Pi.

UPDATE: I have used gstreamer for the streaming and Raspberry Pi camera. It turns out to have really small amount of delay. 10ms is somehow impossible but I managed to cut delay down to 20ms.

Answer

Rob picture Rob · Jun 14, 2013

I have a RasPi model B and use mjpg-streamer. The delay is almost unnoticeable running at 12fps 640 x 480. It takes around 10 mins to install and configure. In addition to mjpg-streamer I have also tried Motion and FFMpeg, but both were very laggy.

There is a good webcam tutorial for the Raspberry that you may find helpful.