Re: [osg-users] :) Video Capture Handler for osg::View
Hi David, i used a system with gstreamer on linux, grep in the mailing list with subject 'Rendering 2 video stream' and you will find details how to setup. Hopes it will help. Cheers, Cedric On Fri, 2010-04-09 at 00:17 +, David Glenn wrote: Hi J.P. Delport! Yea, what ever works the fastest. Actualy I have a way to control the osg::Viewer frame rate right now. I have to have it in order to give some of my cpu time over to the QT side of my app. Otherwise QT starts doing some funky things - like flakey file dialog boxes that hang! ... Thanks! D Glenn D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your Desk! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26602#26602 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Provide OpenGL services around OpenSceneGraph and more +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net signature.asc Description: This is a digitally signed message part ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] :) Video Capture Handler for osg::View
Hi, On 08/04/10 03:41, David Glenn wrote: mgb_osg wrote: Easiest way is probably just to write N jpegs named image000.jpg to imageN.jpg and then use virtualdub to convert them into a movie in whatever format you want. Since I'm using Linux, I'm thinking of using somthing like ffmpeg (that was segested to me) or something else. I'm not sure that vertualdub has ben ported to Linux yet - I think not! You can use mencoder to make jpegs/other images into a video. E.g. mencoder mf://*.jpg -mf w=512:h=512:fps=30:type=jpg -ovc lavc -oac copy -o my.avi Add other options as required. rgds jp mgb_osg wrote: Writing an MJPG movie, where each frame is just a jpeg, isn't much harder. Yea, I did something like that back in art school when I did my animation project years ago! The only thing I'm worrying about is that I'm not just thinking about making 20 sec. of video. I'm sure that it will be tested to up to an hour. One of the things I have to worry about is the frame rate. I don't need to go any more than 30/sec. for what I need it for. I have to add a delay timer for the refresh rate. Next I have to freeze the frame size to something like 740X480 for standard NTSC format. D Glenn D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your Desk! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26538#26538 ___ osg-users mailing list osg-users@lists.openscenegraph.org 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. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] :) Video Capture Handler for osg::View
Hi J.P. Delport! Yea, what ever works the fastest. Actualy I have a way to control the osg::Viewer frame rate right now. I have to have it in order to give some of my cpu time over to the QT side of my app. Otherwise QT starts doing some funky things - like flakey file dialog boxes that hang! ... Thanks! D Glenn D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your Desk! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26602#26602 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] :) Video Capture Handler for osg::View
mgb_osg wrote: Easiest way is probably just to write N jpegs named image000.jpg to imageN.jpg and then use virtualdub to convert them into a movie in whatever format you want. Since I'm using Linux, I'm thinking of using somthing like ffmpeg (that was segested to me) or something else. I'm not sure that vertualdub has ben ported to Linux yet - I think not! mgb_osg wrote: Writing an MJPG movie, where each frame is just a jpeg, isn't much harder. Yea, I did something like that back in art school when I did my animation project years ago! The only thing I'm worrying about is that I'm not just thinking about making 20 sec. of video. I'm sure that it will be tested to up to an hour. One of the things I have to worry about is the frame rate. I don't need to go any more than 30/sec. for what I need it for. I have to add a delay timer for the refresh rate. Next I have to freeze the frame size to something like 740X480 for standard NTSC format. D Glenn D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your Desk! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26538#26538 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] :) Video Capture Handler for osg::View
You might struggle to output 30fps with many video codecs Just writing jpegs should be ok. 640x480 apprx 70k * 30fps = 2MB/s Of course that is 10,000 frames/hour! Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26540#26540 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] :) Video Capture Handler for osg::View
:) Greetings All! I'm just wondering if anyone has made any progress on some kind of video capture routine for OSG under Linux. I have noticed that Jean-Sébastien Guay did some work modifying the screen capture handler to capture a sequence of images that can be chained to make a video - that is about all that I've seen or heard about so far. I was wondering how effective and practical it would be to buffer the images in some kind of memory loop and let some converter run through at it's own pace converting the images to some kind of video format (or even do raw video files). Has this been done in Linux already? I heard about doing some vid-cap stuff someware on this site, but I didn't hear anymore about it! What I've seen of Jean's example is the only approach I've seen. :D I like to do Video Stuff! It would be nice to show off a OSG video of what I'm doing with OSG! :D - Just Thinking Out Load! D Glenn D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your Desk! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26499#26499 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] :) Video Capture Handler for osg::View
Easiest way is probably just to write N jpegs named image000.jpg to imageN.jpg and then use virtualdub to convert them into a movie in whatever format you want. Writing an MJPG movie, where each frame is just a jpeg, isn't much harder. If your whole screen changes through the movie (eg a fly through) then it probably doesn't matter, if you are moving only a small part of a more static screen then a smarter codec will give much better quality Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26502#26502 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org