Re: [sugar] [theora] Fwd: video encoding

2007-10-15 Thread Ed Stoner
The problem with the example below is that in uses utilities (mplayer 
and convert) which aren't on the XO image.

Ivo Emanuel Gonçalves wrote:
 Besides j's answer below, it was also suggested that:
 
 On 10/13/07, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 Perhaps examination of the following Python-based convertor would
 prove beneficial.

 http://www.reimeika.ca/lives/cvs/theora_encoder.py
 
 
 On 10/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 hi,

 you could use png2theora which is in the example folder of libtheora.
 it does about what you are looing for, encoding a series of pngs to
 theora.
 or you could build something like this using gstreamer
 which is also installed on the XO and has nice python bindings.
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] [theora] Fwd: video encoding

2007-10-15 Thread Erik Blankinship
 I am not 100% sure multifilesrc is on the xo, but I am pretty sure we
 could get it added.  We are in need of the same component for some our
 development efforts too.


Multifilesrc isn't on the xo, as it is in gstreamer-plugins-bad, evidently
because it hasn't been updated in a while.  Any chance we can get this
element added to sugar so we can see how it works for us?

If we add it to the build, and it works, we can then create movies from
series of images you can grab at your own discretion (perhaps in the way
done by the Web activity):

def _get_screenshot(self):
window = self._browser.window
width, height = window.get_size()

screenshot = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, has_alpha=False,
bits_per_sample=8, width=width,
height=height)
screenshot.get_from_drawable(window, window.get_colormap(), 0, 0, 0,
0,
 width, height)

screenshot = screenshot.scale_simple(style.zoom(100),
 style.zoom(80),
 gtk.gdk.INTERP_BILINEAR)

buffer = self.get_buffer(screenshot)
return buffer


Then we run those through a gstreamer pipline to spit out ogg files.
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar