View Full Version : How to show live-streaming-video on Vizard

10-29-2012, 09:57 PM
Hi, everyone.

I'm looking for how to get video on the website and show it on Vizard.
The video is streaming on youtube or saving on a server.

If you know something, please give me information.

Thank you.

11-01-2012, 02:59 PM
There would need to be some type of application on the server side that gets each frame of the video, perhaps compress it to jpeg, and then sends it over the network. A TCP socket is probably the best method to send image data over the network. UDP sockets have a maximum message size and only work with small images. In Vizard, you would have to use Python's networking features to receive the image data and then use Vizard commands to apply it as a texture to some object.

12-09-2014, 01:27 AM
Hi there,

I'm having some time with a similar problem, but maybe something has changed since 2012.

I'm trying to stream a (webcam-)video via VLC into vizard and it just doesn't work. I guess livestreaming isn't supported, but maybe I'm just not looking at the right things.

So here's my code:

#Adding a quad for video-projection
quad = viz.addTexQuad()
quad.setPosition([0., 2, 3])

#loading live-stream and applying video to quad
vid = viz.addVideo('', loop=1, play=1)

The localhost is just used so I can get to the next point (having the webcam on a different pc) later, so therefore I cannot just load the webcam. ;)

If there, of course, is a simple way to load a webcam which is connected to a different pc directly into vizard it would be sufficient too.

Thanks in advance. :)