Streaming video

I find the method used to stream video in diddyWeb.py to be a bit choppy in responding to movement in the camera's field of view. I have used a method by Dawn Robotics that seemed to stream much more smoothly.

https://bitbucket.org/DawnRobotics/raspberry_pi_camera_streamer

As I am new to video streaming, I am able to implement it, but do not have a real understanding of how it works. Has anyone else been able to get a smoother stream?

piborg's picture

The Dawn Robotics streaming code is significantly more complex than our Web UI example.
This means that it would require a large number of changes to make our Web UI use the same method.

Put simply our example captures a JPEG image, then it sends the image via the HTTP server code to the browser.

The Dawn Robotics streamer actually generates a video file which can be streamed to the browser.
This is much more efficent because each frame only sends the changes to the image, not the whole image each time.

Unfortuantely it is not very simple to mimic the Dawn Robotics source as it is written in C instead of Python.
What you could do is run both our code and the Dawn Robotics streamer at the same time.
This way you could change the HTML from our code to point to http://RASPBERRY_PI_IP_ADDRESS:8080/?action=stream instead of using the JPEG image frame.

Subscribe to Comments for "Streaming video"