<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
Hello again, <br>
<br>
You might need to modify the address to make it work. The .ffmpeg is
the essential part. <br>
There is a good example for files/devices in the osg cookbook. <br>
<br>
Cheers<br>
Sebastian <br>
<blockquote cite="mid:35a3c3ff-4efe-aea2-a547-c2f2d2b12667@gmx.de"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<p><br>
</p>
Hello Jay, <br>
<br>
Have you tried the ffmpeg pseudoloader?<br>
<br>
<span class="postbody">image =
osgDB::readImageFile("udp://228.10.10.24:12345.ffmpeg");<br>
image = osgDB::readImageFile( "Images/bouncing_beach_ball.png"
); <br>
<br>
osg::ImageStream* imageStream =
dynamic_cast<osg::ImageStream*>( image.get() ); <br>
if ( imageStream ) imageStream->play();<br>
<br>
Cheers <br>
Sebastian <br>
</span>
<blockquote
cite="mid:1466200220.m2f.67676@forum.openscenegraph.org"
type="cite">
<pre wrap="">Hello all,
I've been scouring the forums for this answer, but failed to find anything...
So here's the setup:
I have video stream on a multicast address using ffmpeg and the following arguments
Code:
ffmpeg -framerate 30 -i desktop -b 900k -f mpegts udp://228.10.10.24:12345
I can go to another computer on the network, open a stream on VLC and view the video.
The question:
How can I grab that video and "display" it on an object in an OSG environment? I know that osgmovie can read from files, but how can i grab and render from a UDP stream?
The context:
I have an OSG-based image generator for a simulator. I want to have a "hovering screen" in the view that displays streaming video. It allows custom plugin code written in c/c++.[/code]
------------------
Read this topic online here:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://forum.openscenegraph.org/viewtopic.php?p=67676#67676">http://forum.openscenegraph.org/viewtopic.php?p=67676#67676</a>
_______________________________________________
osg-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
</body>
</html>