WorldViz User Forum  

Go Back   WorldViz User Forum > Plug-in development

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-29-2012, 10:57 PM
tkm tkm is offline
Member
 
Join Date: Oct 2012
Posts: 1
Post How to show live-streaming-video on Vizard

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.
Reply With Quote
  #2  
Old 11-01-2012, 03:59 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
  #3  
Old 12-09-2014, 02:27 AM
asdf asdf is offline
Member
 
Join Date: Sep 2012
Posts: 6
Include LiveStream into vizard

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('http://127.0.0.1:8080/', loop=1, play=1)
quad.texture(vid)


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.
Reply With Quote
Reply

Tags
streaming, video


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vizard 4 Beta Testing farshizzo Announcements 0 02-01-2011 11:46 AM
Vizard 4 Beta Testing farshizzo Vizard 0 02-01-2011 11:46 AM
synching video camera recording with vizard billjarrold Vizard 0 12-16-2009 12:43 AM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 12:13 PM
Displaying live video in Vizard? Deltcho Vizard 2 01-04-2008 12:05 PM


All times are GMT -7. The time now is 02:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC