I wanted to get some ideas one how some of you would approach this problem. I ve got a robot, that is running linux and uses a webcam (with a v4l2 driver) as one of its sensors. I ve written a control panel with gtkmm. Both the server and client are written in C++. The server is the robot, client is the "control panel". The image analysis is happening on the robot, and I d like to stream back the video from the camera to the control panel for two reasons: A) for fun B) to overlay image analysis results
So my question is, what are some good ways to stream video from the webcam to the control panel as well as giving priority to the robot code to process it? I m not interested it writing my own video compression scheme and putting it through the existing networking port, a new network port (dedicated to video data) would be best I think. The second part of the problem is how do I display video in gtkmm? The video data arrives asynchronously and I don t have control over main() in gtkmm so I think that would be tricky.
I m open to using things like vlc, gstreamer or any other general compression libraries I don t know about.
thanks!
EDIT: The robot has a 1GHz processor, running a desktop like version of linux, but no X11.