Re: [clutter] Capturing image data from stage save as video file.
Take a look at Yukon: https://devel.neopsis.com/projects/yukon/ It's meant for GL capturing. I've used it, and it works, though I've never used it for Clutter. Jimmy On Mon, Jun 8, 2009 at 7:00 PM, Florent wrote: >> the gnome-shell project has a set of hooks that allow them to capture >> the contents of the screen to make videos through GStreamer. I suggest >> you take a look at that as well. > > Very interesting, thanks for pointing it out ! > > It's located in src/shell-recorder.c, and is a gstreamer plugin based > on appsrc, and uses glReadPixel calls to grab frames. The gstreamer > videorate element is used to smooth the capture. > > The test-recorder.c file shows an usage example. > > FLo > -- > To unsubscribe send a mail to clutter+unsubscr...@o-hand.com > > -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Capturing image data from stage save as video file.
> the gnome-shell project has a set of hooks that allow them to capture > the contents of the screen to make videos through GStreamer. I suggest > you take a look at that as well. Very interesting, thanks for pointing it out ! It's located in src/shell-recorder.c, and is a gstreamer plugin based on appsrc, and uses glReadPixel calls to grab frames. The gstreamer videorate element is used to smooth the capture. The test-recorder.c file shows an usage example. FLo -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Capturing image data from stage save as video file.
On Fri, 2009-06-05 at 14:53 +1000, Saul Lethbridge wrote: > I'm thinking it might be easier to simply offscreen the stage and do a > gdk_pixbuf_get_from_drawable for each frame, then send that frame on > for encoding to video. Has anybody tried this? it's not necessary. the gnome-shell project has a set of hooks that allow them to capture the contents of the screen to make videos through GStreamer. I suggest you take a look at that as well. ciao, Emmanuele. -- Emmanuele Bassi, Senior Engineer| emmanuele.ba...@intel.com Intel Open Source Technology Center | http://oss.intel.com -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Capturing image data from stage save as video file.
On Fri, 2009-06-05 at 14:18 +1000, Saul Lethbridge wrote: > Would I be able to use glReadBuffer & glReadPixels to get the image > data? Am I on the right track? > > > http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readbuffer.html > http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readpixels.html instead of using glReadPixels directly you can use: clutter_stage_read_pixels and push the unsigned char* buffer inside GStreamer, for instance. ciao, Emmanuele. > > > > On Thu, Jun 4, 2009 at 6:59 AM, Florent wrote: > Hello, > > > I'm wanting an efficient way of capturing image data on the > stage. I'd like > > to be able to take video of the stage and save it to a file. > So being able > > to grab image data, frame by frame, from an animation. Has > anybody attempted > > this or have any idea where I should start looking? > > > See > http://lists.o-hand.com/clutter/0175.html > http://lists.o-hand.com/clutter/2163.html > > I recall pippin to have some patch for rendering video using > ffmpeg, > but in short there is nothing like that in the main code > (yet?). > > There are ongoing experiments around gst-gl with clutter, > might be > your best chance. Or simply try general purpose screen capture > software. > > >I guess the best way > > would be for clutter-gst to offer this kind of feature. > > > clutter-gst just displays video frames to an actor. > > Florent -- Emmanuele Bassi, Senior Engineer| emmanuele.ba...@intel.com Intel Open Source Technology Center | http://oss.intel.com -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Capturing image data from stage save as video file.
I'm thinking it might be easier to simply offscreen the stage and do a gdk_pixbuf_get_from_drawable for each frame, then send that frame on for encoding to video. Has anybody tried this? On Fri, Jun 5, 2009 at 2:46 PM, Mustafizur Rahaman < mustafizur.raha...@azingo.com> wrote: > Hi, > > You can use glReadPixels, but the problem is glReadPixels reads the data > assuming origin at *lower left corner* of the screen, where your video > data may be shown in a window where the origin is *top left corner. *So > the image data you get here is actually vertically flipped, so you have to > manually manipulate the data (in s/w) i guess before you can use them. and > to do that for each frame, is quite expensive operation. > > My purpose was at some time depending on certain scenario, i had to take > snapshot of the current framebuffer/GL surface data and then dump it on to > the frame buffer later on when reqd.I followed the above mechanism.Because > for me, it was at certain scenario and not in every frame, i am fine with > the s/w manipulation of the image data captured.. > > May be this will give you certain hints.. > > Regs, > Rahaman > > > Saul Lethbridge wrote: > > Would I be able to use glReadBuffer & glReadPixels to get the image data? > Am I on the right track? > > > > http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readbuffer.html > > http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readpixels.html > > > > > On Thu, Jun 4, 2009 at 6:59 AM, Florent wrote: > >> Hello, >> >> > I'm wanting an efficient way of capturing image data on the stage. I'd >> like >> > to be able to take video of the stage and save it to a file. So being >> able >> > to grab image data, frame by frame, from an animation. Has anybody >> attempted >> > this or have any idea where I should start looking? >> >> See >> http://lists.o-hand.com/clutter/0175.html >> http://lists.o-hand.com/clutter/2163.html >> >> I recall pippin to have some patch for rendering video using ffmpeg, >> but in short there is nothing like that in the main code (yet?). >> >> There are ongoing experiments around gst-gl with clutter, might be >> your best chance. Or simply try general purpose screen capture >> software. >> >> >I guess the best way >> > would be for clutter-gst to offer this kind of feature. >> >> clutter-gst just displays video frames to an actor. >> >> Florent >> > >
Re: [clutter] Capturing image data from stage save as video file.
Hi, You can use glReadPixels, but the problem is glReadPixels reads the data assuming origin at lower left corner of the screen, where your video data may be shown in a window where the origin is top left corner. So the image data you get here is actually vertically flipped, so you have to manually manipulate the data (in s/w) i guess before you can use them. and to do that for each frame, is quite expensive operation. My purpose was at some time depending on certain scenario, i had to take snapshot of the current framebuffer/GL surface data and then dump it on to the frame buffer later on when reqd.I followed the above mechanism.Because for me, it was at certain scenario and not in every frame, i am fine with the s/w manipulation of the image data captured.. May be this will give you certain hints.. Regs, Rahaman Saul Lethbridge wrote: Would I be able to use glReadBuffer & glReadPixels to get the image data? Am I on the right track? http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readbuffer.html http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readpixels.html On Thu, Jun 4, 2009 at 6:59 AM, Florentwrote: Hello, > I'm wanting an efficient way of capturing image data on the stage. I'd like > to be able to take video of the stage and save it to a file. So being able > to grab image data, frame by frame, from an animation. Has anybody attempted > this or have any idea where I should start looking? See http://lists.o-hand.com/clutter/0175.html http://lists.o-hand.com/clutter/2163.html I recall pippin to have some patch for rendering video using ffmpeg, but in short there is nothing like that in the main code (yet?). There are ongoing experiments around gst-gl with clutter, might be your best chance. Or simply try general purpose screen capture software. >I guess the best way > would be for clutter-gst to offer this kind of feature. clutter-gst just displays video frames to an actor. Florent -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Capturing image data from stage save as video file.
Would I be able to use glReadBuffer & glReadPixels to get the image data? Am I on the right track? http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readbuffer.html http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readpixels.html On Thu, Jun 4, 2009 at 6:59 AM, Florent wrote: > Hello, > > > I'm wanting an efficient way of capturing image data on the stage. I'd > like > > to be able to take video of the stage and save it to a file. So being > able > > to grab image data, frame by frame, from an animation. Has anybody > attempted > > this or have any idea where I should start looking? > > See > http://lists.o-hand.com/clutter/0175.html > http://lists.o-hand.com/clutter/2163.html > > I recall pippin to have some patch for rendering video using ffmpeg, > but in short there is nothing like that in the main code (yet?). > > There are ongoing experiments around gst-gl with clutter, might be > your best chance. Or simply try general purpose screen capture > software. > > >I guess the best way > > would be for clutter-gst to offer this kind of feature. > > clutter-gst just displays video frames to an actor. > > Florent >
Re: [clutter] Capturing image data from stage save as video file.
Hello, > I'm wanting an efficient way of capturing image data on the stage. I'd like > to be able to take video of the stage and save it to a file. So being able > to grab image data, frame by frame, from an animation. Has anybody attempted > this or have any idea where I should start looking? See http://lists.o-hand.com/clutter/0175.html http://lists.o-hand.com/clutter/2163.html I recall pippin to have some patch for rendering video using ffmpeg, but in short there is nothing like that in the main code (yet?). There are ongoing experiments around gst-gl with clutter, might be your best chance. Or simply try general purpose screen capture software. >I guess the best way > would be for clutter-gst to offer this kind of feature. clutter-gst just displays video frames to an actor. Florent -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] Capturing image data from stage save as video file.
Hi, I'm wanting an efficient way of capturing image data on the stage. I'd like to be able to take video of the stage and save it to a file. So being able to grab image data, frame by frame, from an animation. Has anybody attempted this or have any idea where I should start looking? I guess the best way would be for clutter-gst to offer this kind of feature. Thanks