OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

UDP Video Multicast Stream onto OSG object


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
jay.kemper
Newbie


Joined: 17 Jun 2016
Posts: 1

PostPosted: Fri Jun 17, 2016 9:50 pm    Post subject:
UDP Video Multicast Stream onto OSG object
Reply with quote

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]
Back to top
View user's profile Send private message
SMesserschmidt (Sebastian Messerschmidt)
Forum Moderator


Joined: 10 Sep 2013
Posts: 703

PostPosted: Sat Jun 18, 2016 9:48 pm    Post subject:
UDP Video Multicast Stream onto OSG object
Reply with quote

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
Quote:
Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
SMesserschmidt (Sebastian Messerschmidt)
Forum Moderator


Joined: 10 Sep 2013
Posts: 703

PostPosted: Sat Jun 18, 2016 9:50 pm    Post subject:
UDP Video Multicast Stream onto OSG object
Reply with quote

Hello again,

You might need to modify the address to make it work. The .ffmpeg is the essential part.
There is a good example for files/devices in the osg cookbook.

Cheers
Sebastian
Quote:


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
Quote:
Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



Quote:
_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Zoom in to special area and special o... Daven Hem General 2 Wed Feb 22, 2017 2:35 am View latest post
No new posts How to use frame buffer object in exi... saedrna1 General 2 Sat Feb 18, 2017 3:54 am View latest post
No new posts Vertex Buffer Object used inside disp... scrawl General 2 Thu Feb 16, 2017 9:14 pm View latest post
No new posts Buffer object pool and setUnrefImageD... scrawl General 1 Tue Feb 14, 2017 1:58 am View latest post
No new posts object deletion and rtts psquare General 2 Fri Jan 27, 2017 2:52 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP