mxc_v4l2_capture.out : capture 2592x1944 frame

cancel
Showing results for 
Search instead for 
Did you mean: 

mxc_v4l2_capture.out : capture 2592x1944 frame

1,065 Views
anjojohn
Contributor IV

Hi All,

I have been trying to capture high resolution images from mx6 dualite with ov5640 mipi camera using imx-test application. Each time i try to capture images above 640x480, the image is corrupted and can't be viewed with any raw players.

I had to use mxc_v4l2_capture since Gstreamer imxv4l2videosrc plugin only support resolution upto 1920x1080. 

Below is the command i used for 640x480 capture

mxc_v4l2_capture.out -iw 640 -ih 480 -ow 640 -oh 480 -f UYVY -c 5 still.yuv

for any other higher resolution, the image is corrupted

i tried these 

mxc_v4l2_capture.out -iw 2592 -ih 1944 -ow 2592 -oh 1944 -f UYVY -c 5 -m 1 still.yuv

log of this command

in_width = 2592, in_height = 1944
out_width = 2592, out_height = 1944
top = 0, left = 0
sensor chip is ov5640_mipi_camera
sensor supported frame size:
640x480
320x240
720x480
720x576
1280x720
1920x1080
2592x1944
176x144
1024x768
sensor frame format: UYVY
sensor frame format: UYVY
sensor frame format: UYVY
sensor frame format: UYVY
sensor frame format: UYVY
sensor frame format: UYVY
sensor frame format: UYVY
sensor frame format: UYVY
sensor frame format: UYVY
Width = 2592 Height = 1944 Image size = 10077696
pixelformat: UYVY
UYVY
imx-ipuv3 2400000.ipu: IC output size(1944) cannot exceed 1024
imx-ipuv3 2400000.ipu: failed to calculate prpenc height scaling coefficients
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00100000
buf.index 2
buf.index 0
buf.index 1

i also tried setting the -i (input mode) to 0 and 1 and it didn't help either.

Is there any issue with mxc_v4l2_capture with higher resolution? Any help is appreciated

With Regards

John

0 Kudos
3 Replies

214 Views
joanxie
NXP TechSupport
NXP TechSupport

how about try to use gstreamer 1.0?

gst-inspect-1.0 imxv4l2src

   Capabilities:

     video/x-raw

                 format: YUY2

                 width: 640

                 height: 480

             framerate: { 15/1, 30/1 }

     video/x-raw

                 format: YUY2

                 width: 320

                 height: 240

             framerate: { 15/1, 30/1 }

     video/x-raw

                 format: YUY2

                 width: 720

                 height: { 576, 480 }

             framerate: { 15/1, 30/1 }

     video/x-raw

                 format: YUY2

                 width: 1280

                 height: 720

             framerate: { 15/1, 30/1 }

     video/x-raw

                 format: YUY2

                 width: 1920

                 height: 1080

             framerate: 15/1

     video/x-raw

                 format: YUY2

                 width: 2592

                 height: 1944

             framerate: 15/1

     video/x-raw

                 format: YUY2

                 width: 176

                 height: 144

             framerate: { 15/1, 30/1 }

     video/x-raw

                 format: YUY2

               width: 1024

                 height: 768

             framerate: { 15/1, 30/1 }

gst-launch-1.0 -v imxv4l2src device=/dev/video0 ! "video/x-raw, format=(string)YUY2, width=(int)2592, height=(int)1944, framerate=(fraction)15/1" ! videoconvert ! x264enc ! avimux ! filesink location=still.yuv

0 Kudos

214 Views
anjojohn
Contributor IV

Hi Joan,

which version of Gstreamer Freescale plugins are you using. I am using gstreamer-1.4.5. The camera source plugin in my version is "imxv4l2videosrc" and the resolutions are configured with capture-mode parameter. 

0 Kudos

214 Views
joanxie
NXP TechSupport
NXP TechSupport

my gstreamer is older version, no problem, you can use the mode your src plugins shows. the command is the same like I sent to you, just change the plugins refer to your gstreamer

0 Kudos