HTTP live stream test from virtual screen capture source streamed through VLC to BGE

Subscribers:
261
Published on ● Video Link: https://www.youtube.com/watch?v=0mGvaMeZLM8



Duration: 0:22
2,525 views
3


A new test! This is a live screen capture from my 2nd display which was playing a VOD of the Rachel Maddow Show in internet explorer, using a DirectShow screen capture virtual capture device, encoded and HTTP streamed through VLC, and then displayed in BGE on the videoTexture surface. Doesn't look great here because the capture is 640x480 and stretched (and recompressed etc), but it's an example of this being possible. I have thus far been unable to get a capture device to work directly in BGE (so I don't have to go through VLC), but I've gotten a bit of help from jesterking, who was kind enough to look at the videoffmpeg.cpp source and try some other ffmpeg dll's, none of which have worked yet. His thought was that vfwcap is disabled in the build of ffmpeg Blender is bundled with; fortunately Sergey was around in #blendercoders and jester asked him about it and he said he'd take a look into it. Hopefully this can be fixed! I also was able to get this working streaming from my laptop through the same method. The delay is several seconds on the desktop, but when I was streaming from the laptop I was able to get it much lower, and at one point I had the delay on the desktop to be just about 1 second, codec choices etc make a big difference. When I can get the virtual capture device (and thusly of course eventually real capture devices from cameras and other systems), and don't have to encode and degrade the video source just to get it into Blender; so much will be possible! Oh also I can do fades now as you can see, thanks to some youtube video clarifying object color :)







Tags:
blender
3d
video
mixer
transition
alpha
videotexture
texture
capture
stream
device
virtual
screen
switching
vlc
videolan
rachel
maddow
msnbc