Notices


Reply
Thread Tools
Posts: 2 | Thanked: 1 time | Joined on Nov 2009
#1
hello,

I'm trying to build a gstreamer pipeline to take snapshots (only on picture) from the camera. I'd like one for the N810 and one for the N900.

On the N810, I came up with :
gst-launch v4l2src num-buffers=1 ! video/x-raw-rgb,width=640,height=480,framerate=8/1 ! ffmpegcolorspace ! jpegenc ! filesink location=test.jpg

The pipeline is executed as it should, but the jpeg file is a black frame... I tested v4l2src ! ffmpegcolorspace ! xvimagesink to check the camera hardware and it's ok.

For the N900, I'd be grateful for any help since I don't have this lovely device yet ;-)

Thanks,

Fabrice
 
Posts: 168 | Thanked: 265 times | Joined on Oct 2009 @ London, UK
#2
Originally Posted by fabrice.desre View Post
hello,

I'm trying to build a gstreamer pipeline to take snapshots (only on picture) from the camera. I'd like one for the N810 and one for the N900.

On the N810, I came up with :
gst-launch v4l2src num-buffers=1 ! video/x-raw-rgb,width=640,height=480,framerate=8/1 ! ffmpegcolorspace ! jpegenc ! filesink location=test.jpg

The pipeline is executed as it should, but the jpeg file is a black frame... I tested v4l2src ! ffmpegcolorspace ! xvimagesink to check the camera hardware and it's ok.

For the N900, I'd be grateful for any help since I don't have this lovely device yet ;-)

Thanks,

Fabrice
gst-launch v4l2camsrc device=/dev/video1 num-buffers=1 ! omx_jpegenc ! filesink location=test.jpg

works on the n900 and produces a 640x480 jpeg from the front camera.
 

The Following User Says Thank You to zaheerm For This Useful Post:
Posts: 2 | Thanked: 1 time | Joined on Nov 2009
#3
Originally Posted by zaheerm View Post
gst-launch v4l2camsrc device=/dev/video1 num-buffers=1 ! omx_jpegenc ! filesink location=test.jpg

works on the n900 and produces a 640x480 jpeg from the front camera.
Thanks !

Can you confirm that scaling works with :

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

The Following User Says Thank You to fabrice.desre For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Dec 2009
#4
This gst-launch invokation does not work for me. It produces:

Code:
gst-launch v4l2camsrc device=/dev/video1 num-buffers                                                             =1 ! omx_jpegenc ! filesink location=test.jpg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2CamSrc:v4l2camsrc0: Timeout when trying to get video frames from device '/dev/video1'.
Additional debug info:
v4l2camsrc_calls.c(1549): gst_v4l2camsrc_grab_frame (): /GstPipeline:pipeline0/GstV4l2CamSrc:v4l2camsrc0
Execution ended after 3014404294 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

I'm puzzled by this:
Code:
GstV4l2CamSrc:v4l2camsrc0: Timeout when trying to get video
Would you have a suggestion? Thanks in advance.

--
Manuel
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#5
Originally Posted by serrano View Post
This gst-launch invokation does not work for me. It produces:

Code:
gst-launch v4l2camsrc device=/dev/video1 num-buffers                                                             =1 ! omx_jpegenc ! filesink location=test.jpg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2CamSrc:v4l2camsrc0: Timeout when trying to get video frames from device '/dev/video1'.
Additional debug info:
v4l2camsrc_calls.c(1549): gst_v4l2camsrc_grab_frame (): /GstPipeline:pipeline0/GstV4l2CamSrc:v4l2camsrc0
Execution ended after 3014404294 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

I'm puzzled by this:
Code:
GstV4l2CamSrc:v4l2camsrc0: Timeout when trying to get video
Would you have a suggestion? Thanks in advance.

--
Manuel
got the lens closed? src0 is the back camera

Also i find jspjpegenc works better than omx_jpegenc
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:44.