IMX7 V4L2 Camera Error

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

IMX7 V4L2 Camera Error

1,494 Views
gopinathsriniva
Contributor III

Hi All,

I am checking camera streaming in IMX7 using gstreamer commands. I am getting below error when I tried to stream 2304 x 1536 (3.4 MP) resolution. Below is the gstreamer command I have used.  

gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw,format=(string)UYVY,width=(int)2304,height=(int)1536" ! videoscale ! imxv4l2sink

And I got the below error. 

====== IMXV4L2SINK: 4.0.9 build on Jun 30 2016 05:45:07. ======
Setting pipeline to PAUSED ...
display(/dev/fb0) resolution is (1280x720).
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
v4l2sink need allocate 3 buffers.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
/home/bamboo/build/4.1.X-1.0.0_ga/fsl-imx-x11/temp_build_dir/build_fsl-imx-x11/tmp/work/cortexa7hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesrc.c(2943): gst_b:
streaming task paused, reason error (-5)
Execution ended after 0:00:04.280681000
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Total showed frames (0), playing for (0:00:04.281360375), fps (0.000).
Freeing pipeline ...

Whereas the same command works fine for 1080P and 720P resolutions and the camera streaming works fine without any issues. 


gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw,format=(string)UYVY,width=(int)1280,height=(int)720" ! videoscale ! imxv4l2sink
gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw,format=(string)UYVY,width=(int)1920,height=(int)1080" ! videoscale ! imxv4l2sink

When I  tried with fakesink instead of imxv4l2sink, there will be no issues which means the issue is in the display side especially for 3.4 and 3 mega pixels (2304 x 1536 and 2304 x 1296). I want to test the streaming of this higher resolutions. Can  anyone guide me on solving this error ? Your suggestions are highly appropriated.

Thanks,

Gopinath S 

Labels (2)
Tags (2)
0 Kudos
4 Replies

1,060 Views
vinodhulagabali
Contributor II

Hi Gopinath srinivasan,

                                    I have used OV5640_MIPI for bringing up camera drivers and configured as shown in the imx-reference guide but while building the image using bitbake core-image-minimal i am getting errors. So find the attachments below and Is there any configuration have to be made in local.conf file.

Thanks with regards

         Vinod

0 Kudos

1,060 Views
nayananr
Contributor I

Hello Gopinath srinivasan,

I am Nayana, I am new to imx7 board and I am working on imx7 camera module but i am facing problem in enabling camera driver. Can you help me how did u bring up the camera in imx7 and how to check the camera is enabled in our image?

Thanks and Regards

Nayana

0 Kudos

1,060 Views
gopinathsriniva
Contributor III

Hi,

I have tested USB camera in SABRESD board. This can be done by enabling below def_config in SABRESD config file.

CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

I am not sure about your case whether it is MIPI or parallel camera. You can elaborate your problem with more details in a new thread so other community members can help you.  

0 Kudos

1,060 Views
joanxie
NXP TechSupport
NXP TechSupport

pls try to use the command "gst-inspect-1.0 v4l2src", you can find all of support format for v4l2src, it seems the resolution you use doesn't support in v4l2src.

0 Kudos