[maemo-users] gst-launch and openmax

From: Aldon Hynes Aldon.Hynes at Orient-Lodge.com
Date: Wed Jan 27 16:05:27 EET 2010
I've tried 
gst-launch camerabin filename="cb.jpg"

but it just hangs and never takes a picture.

aldon900:~/linux1/n900# gst-launch camerabin filename="cb.jpg"
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

(It never gets past the NewClock and I have to interrupt the process)

That said, by adding videoscale back in with the dspjpegenc, I can now talk 640x480 jpeg pictures.  However, when I try changing the width or height, I don't have any luck.  I'm also hoping to find some way of adjusting the exposure and/or ISO settings with gst.  If anyone knows how to do that, please let me know.

Aldon
  -----Original Message-----
  From: maemo-users-bounces at maemo.org [mailto:maemo-users-bounces at maemo.org]On Behalf Of Iñigo Illán Aranburu
  Sent: Wednesday, January 27, 2010 8:51 AM
  To: Aldon Hynes
  Cc: maemo-users at maemo.org
  Subject: RE: gst-launch and openmax


  I think you should better use camerabin 

  El mar, 26-01-2010 a las 21:01 -0500, Aldon Hynes escribió: 
I am new to using gst-launch.  I've not been able to find good descriptions
of the different options or elements to use.  So, I started by using

gst-launch v4l2camsrc device=/dev/video1 num-buffers=1 ! videoscale !
video/x-raw-yuv,width=475,height=356 ! omx_jpegenc ! filesink
location=test.jpg

That gave me the error about omx_jpegenc

When I tried using jpegenc instead of omx_jpegenc I got a message:
could not link videoscale0 to jpegenc0

I tried dropping videoscale, I tried using pngenc, none of these worked.
The suggestion about dspjpegenc worked nicely, except that the images turned
out all black or all white.  Is there a png counterpart?  I also tried
adding capture-mode=1 to the v4l2camsrc element, which didn't make any
difference.

I haven't done anything with ffmpegcolorspace, so I'll look at that next.

If you know of any good documentation on using the gst-tools, that would be
greatly appreciated.

Aldon

-----Original Message-----
From: Attila Csipa [mailto:maemo at csipa.in.rs]
Sent: Tuesday, January 26, 2010 6:42 PM
To: maemo-users at maemo.org
Cc: Aldon Hynes
Subject: Re: gst-launch and openmax


On Tuesday 26 January 2010 23:21:49 Aldon Hynes wrote:
> When I tried jpegenc I got
>
> WARNING: erroneous pipeline: could not link v4l2camsrc0 to jpegenc0
>
> When I tried pngenc I got
>
> WARNING: erroneous pipeline: could not link v4l2camsrc0 to pngenc0
>
> When I tried dspjpegenc, it captured a picture, but my image was all
black.

Can you post the whole pipeline you're using ? Seems you're missing an
element
(likely ffmpegcolorspace or sorts).

Regards,
Attila

_______________________________________________
maemo-users mailing list
maemo-users at maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-users/attachments/20100127/c7a7cf1d/attachment.htm>
More information about the maemo-users mailing list