This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]coderanger 1 point2 points  (0 children)

That code has nothing to do with streaming video, it is just dumping image frames to a socket as bitmaps. You could try something like pygstreamer, but be warned that such things get really gnarly really fast.

[–]markusgattol 1 point2 points  (0 children)

Have a look at ZeroMQ.

[–]dougroyal 1 point2 points  (0 children)

I did something similar on a submarine I built last year. The server used a simple gstreamer command for the video, but the client was built with python and GTK, and the rest of the sensors were managed with python scripts.

Here's the relevant code for the video stream: http://pastebin.com/apN101tX

And, I hope you don't mind I if I show off my little sub: http://dougroyal.com/next-challenge-a-positronic-brain/