Hi Gianni,
like Sergey said, you could try an application external to your own. On
Linux we've also used "istanbul" and ffmpeg [1] before.
If you want to read pixels back you can use one of the approaches in
osgscreencapture. We've experimented with this in a small image
processing framework we have. See the screen_capture_producer and
screen_capture examples here:
http://code.google.com/p/flitr/
It basically attaches (a producer) to an osg::View as a final draw
callback and reads data into a memory buffer. A consumer then streams
this data to disk in another thread. One is obviously limited by either
GPU->CPU speed, mem size or (more likely) disk speed.
cheers
jp
[1] e.g. ffmpeg -f x11grab -r 20 -s 768x768 -i :0.0+4,52 -an -vcodec
mjpeg ...
On 12/05/11 16:42, Sergey Polischuk wrote:
Hi, Gianni
In linux you can use glc for grabbing video from opengl render in realtime.
osgscreencapture-like screen capture takes a lot of time each frame and would
be slow as hell in good resolutions (you can speedup it to some point by
writing to drive created in ram).
11.05.2011, 12:17, "Gianni Ambrosio"<[email protected]>:
Hi All,
I know this topic have been already discussed in the past but I didn't find
clear solution.
Basically I need to save a movie of what is shown in an osgViewer embedded in a
Qt widget.
I gave a rough look at the osgscreencapture example. Is the recommended way to
implement what I need?
Regards
Gianni
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39265#39265
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org