[osg-users] [osgPlugins] OSG Movie Export

Robert Osfield robert.osfield at gmail.com
Tue Sep 5 06:32:12 PDT 2017


On 5 September 2017 at 14:24, Paul Leopard <paul.leopard at gmail.com> wrote:

> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170905/f506c8b4/attachment.htm>


More information about the osg-users mailing list