[maemo-developers] Single frame capture with gstreamer

From: Fabrice Desré fabrice.desre at gmail.com
Date: Thu Nov 19 16:35:47 EET 2009
Bonjour Manuel,
 
> I have tried something similar: take a snapshot on the N810. I have
> found a solution that almost works except that from to time, I also get
> a black frame. Here is the code I'm using (this is a Hop
> (http://hop.inria.fr) source code but I'm sure you will manage to
> transpose it in your own language).

 Thanks ! I found my mistake : the ffmpegcolorspace was not where it 
should. Here's a working pipeline for the N810 :

v4l2src num-buffers=1 ! ffmpegcolorspace ! video/x-raw-
yuv,width=640,height=480,framerate=8/1 ! jpegenc ! filesink 
location=test.jpg

  Fabrice

More information about the maemo-developers mailing list