On 5 September 2017 at 14:24, Paul Leopard <[email protected]> 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.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to