[osg-users] [osgPlugins] UDP Video Multicast Stream onto OSG object

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Sat Jun 18 14:40:03 PDT 2016


Hello Jay,

Have you tried the ffmpeg pseudoloader?

image = osgDB::readImageFile("udp://228.10.10.24:12345.ffmpeg");
  image = osgDB::readImageFile( "Images/bouncing_beach_ball.png" );

   osg::ImageStream* imageStream = dynamic_cast<osg::ImageStream*>( 
image.get() );
   if ( imageStream ) imageStream->play();

Cheers
Sebastian
> 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:
> http://forum.openscenegraph.org/viewtopic.php?p=67676#67676
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160618/3ba555f9/attachment-0002.htm>


More information about the osg-users mailing list