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 

OSG Movie Export


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
DiB78
User


Joined: 28 Nov 2010
Posts: 29

PostPosted: Mon Sep 07, 2015 5:46 pm    Post subject:
OSG Movie Export
Reply with quote

Hi,

I have written a custom callback based on the screen capture examples to export directly to an AVI file. This works great, but I hate re-inventing the wheel. Looking through OSG documentation
(http://trac.openscenegraph.org/projects/osg//wiki/Support/UserGuides/Plugins) I see that OSG supports exporting to several movie file types to include:

.mov .mpg .mpv .mp4 .m4v .dc .avi .flv .swf

Briefly looking at the code (OSG 3.2.3) I don't see where this is supported. Searching, I found several references over the years to capturing to movie formats and it seems that folks are using 3rd party applications, which is less awesome than doing it internally. How would I go about directly capturing to one of these formats or am I misunderstanding the documentation?

Thank you!

Cheers,
John
Back to top
View user's profile Send private message Visit poster's website
pleopard
User


Joined: 29 Jun 2011
Posts: 44
Location: Huntsville AL

PostPosted: Tue Sep 05, 2017 1:24 pm    Post subject:
Reply with quote

Old thread but still a good question. I'd like to know this myself

_________________
things are more like they are now than they have ever been before
Back to top
View user's profile Send private message Visit poster's website
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11275

PostPosted: Tue Sep 05, 2017 1:33 pm    Post subject:
OSG Movie Export
Reply with quote

On 5 September 2017 at 14:24, Paul Leopard < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Old thread but still a good question. I'd like to know this myself


The OSG doesn't have any built in support for exporting movies.



Movies aren't a static object that you can just pass around and export, you'd need to very directly map the updates of the image data to threads that are consuming the data and doing the encoding and export.  There isn't an easy drop in for providing this functionality in the OSG, so it's no a case of just extending an existing OSG plugin to add support, it would require changes to the core OSG libraries to support this particular usage case and OSG plugin work to the 3rd party API that does the encoding and exporting.



The way I'd tackle the task would be to use ffmpeg's or similiar API to do the encoding and output to the movie file.  This doesn't need any core OSG integration, you'd just need to write up pulling image data from the framebuffer as with a normal screenshot and then wire up the things yourself to the 3rd party API you select.



Robert.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
pleopard
User


Joined: 29 Jun 2011
Posts: 44
Location: Huntsville AL

PostPosted: Tue Sep 05, 2017 1:40 pm    Post subject:
Reply with quote

Thanks Robert

_________________
things are more like they are now than they have ever been before
Back to top
View user's profile Send private message Visit poster's website
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 export to wavefront (obj) of line obj... MNicke General 0 Tue Dec 05, 2017 4:18 pm View latest post
No new posts [OSG Exporter problem] Export skinnin... tungwert Plugins [osgPlugins] 6 Fri Jun 24, 2016 10:43 am View latest post
No new posts [FLT Problem] Export FLT from 3ds max... tungwert Plugins [osgPlugins] 1 Mon Jan 18, 2016 8:58 am View latest post
No new posts Export shader programs to external files JohanH General 11 Sun Sep 13, 2015 7:07 pm View latest post
No new posts Trouble with texture to export to OSG... MathieuKatharos Plugins [osgPlugins] 5 Mon Jul 27, 2015 7:58 am 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