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
Use the stream.py in this git repo. We have three functions there.
The run
function starts streaming with default port 8001. You can change the default port by passing an integer to that.
The stop
function stops streaming.
And finally you can check the status by calling status
function.
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.