|
2009-11-19
, 15:32
|
Posts: 168 |
Thanked: 265 times |
Joined on Oct 2009
@ London, UK
|
#2
|
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
The Following User Says Thank You to zaheerm For This Useful Post: | ||
|
2009-11-19
, 17:00
|
Posts: 2 |
Thanked: 1 time |
Joined on Nov 2009
|
#3
|
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 fabrice.desre For This Useful Post: | ||
|
2009-12-04
, 05:35
|
Posts: 1 |
Thanked: 0 times |
Joined on Dec 2009
|
#4
|
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 ...
GstV4l2CamSrc:v4l2camsrc0: Timeout when trying to get video
|
2010-03-01
, 17:13
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#5
|
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:
Would you have a suggestion? Thanks in advance.Code:GstV4l2CamSrc:v4l2camsrc0: Timeout when trying to get video
--
Manuel
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