Error when taking a photo using GStreamer - 5mp camera(VCAM-OV5640)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error when taking a photo using GStreamer - 5mp camera(VCAM-OV5640)

1,050 Views
thisumbuddhika
Contributor I

I'm trying to take a photo using the following pipe:
gst-launch-1.0 imxv4l2videosrc device="/dev/video0" num-buffers=1 !  jpegenc ! filesink location=sample.jpeg

With the above, I can take a photo and save it as sample.jpeg. But the problem is, I'm still get the following error: 

Setting pipeline to PAUSED ...

ERROR: unrecognized std! 0 (PAL=ff, NTSC=b000

ERROR: v4l2 capture: unsupported ioctrl!

Pipeline is live and does not need PREROLL ...

Setting pipeline to PLAYING ...

New clock: GstSystemClock

Got EOS from element "pipeline0".

Execution ended after 0:00:00.139820736

Setting pipeline to PAUSED ...

Setting pipeline to RERROR: v4l2 capture: unsupported ioctrl!

EADY ...

Setting pipeline to NULL ...

Freeing pipeline ...

Followings are the system details:

OS: Debian 8.7
GStreamer: 1.0 (Community GStreamer-imx plugin).

Mipi camera (5MP)

What is the possible solution for this?
Also the image generated from the above pipeline is 640 x 480. How should I change the dimensions of the output image? How can I make sure that the image is actually 5MP?

Labels (1)
Tags (2)
0 Kudos
3 Replies

773 Views
thisumbuddhika
Contributor I

I'm using SOM

When I ran the command, I got the following error:

ERROR: pipeline could not be constructed: no element "imxv4l2src".

0 Kudos

773 Views
joanxie
NXP TechSupport
NXP TechSupport

I don't know what bsp you use, maybe you need to use "imxv4l2videosrc" instead of "imxv4l2src"

0 Kudos

773 Views
joanxie
NXP TechSupport
NXP TechSupport

what board and bsp version you use??

if you just use the command "gst-launch-1.0 imxv4l2src device=/dev/video0 ! imxv4l2sink", what do you get?

0 Kudos