cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
herry
Contributor
Contributor
1,621 Views
Registered: ‎02-18-2013

How to launch MIPI video in reVISION Getting Started Guide?

Jump to solution

There are USB and MIPI video source in reVISION Getting Started Guide:

root@zcu102_base_trd:~# video_cmd -S
    VIDEO SOURCE        ID         VIDEO DEVNODE
    MIPI CSI2 Rx        0       /dev/video3
      HDMI Input        1       /dev/video2
      USB Webcam        2       /dev/video4
Virtual Video De        3       /dev/video0

I can use See3CAM_CU30 USB camera as video source, and display it on HDMI monitor like this:

root@zcu102_base_trd:~# gst-launch-1.0 v4l2src device=/dev/video4 ! kmssink driver-name=xilinx_drm_mixer plane-id=28 -v
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ width\=\(int\)2304\,\ height\=\(int\)1536\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)24/1"
/GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ width\=\(int\)2304\,\ height\=\(int\)1536\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)24/1"
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:08.496943593
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

But when I use LI-IMX274MIPI-FMC camera as video source, there are errors like these:

root@zcu102_base_trd:~# gst-launch-1.0 v4l2src device=/dev/video3 ! kmssink driver-name=xilinx_drm_mixer plane-id=28 -v
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ framerate\=\(fraction\)100/1\,\ width\=\(int\)320\,\ height\=\(int\)200\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1"
New clock: GstSystemClock
/GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ framerate\=\(fraction\)100/1\,\ width\=\(int\)320\,\ height\=\(int\)200\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1"
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not read from resource.
Additional debug info:
../../../git/sys/v4l2/gstv4l2bufferpool.c(1054): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
poll error 1: Broken pipe (32)
Execution ended after 0:00:00.002138001
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

How to launch MIPI video in reVISION Getting Started Guide?

0 Kudos
1 Solution

Accepted Solutions
herry
Contributor
Contributor
1,570 Views
Registered: ‎02-18-2013

 

It need to use video_cmd utility to initialize the media pipeline of an associated V4L2 capture device when the video source is MIPI but not USB.

 

I use the following command refer to zcu104_rv_ss/sd_card/optical_flow/gstpass.sh 

video_cmd -d 1 -s 0 -i 1920x1080@UYVY -f 60/1 -X
gst-launch-1.0 v4l2src device=/dev/video3 ! "video/x-raw, width=1920, height=1080" ! kmssink plane-id=26 driver-name=xilinx_drm_mixer

the video can be fetched and displayed on HDMI monitor.

View solution in original post

0 Kudos
4 Replies
herry
Contributor
Contributor
1,607 Views
Registered: ‎02-18-2013

When I use the command include video fomat, there are a little difference description with the same ERROR:

root@zcu102_base_trd:~# gst-launch-1.0 v4l2src device=/dev/video3 ! "video/x-raw, width=1920, height=1080, format=UYVY" ! kmssink driver-name=xilinx_drm_mixer plane-id=28 -v
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ framerate\=\(fraction\)100/1\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1"
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ framerate\=\(fraction\)100/1\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ framerate\=\(fraction\)100/1\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)UYVY\,\ framerate\=\(fraction\)100/1\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1"
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not read from resource.
Additional debug info:
../../../git/sys/v4l2/gstv4l2bufferpool.c(1054): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
poll error 1: Broken pipe (32)
Execution ended after 0:00:00.005596086
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

 

0 Kudos
emu
Observer
Observer
1,585 Views
Registered: ‎11-05-2013

did you try the .sh files which are on the sd-card?

 

herry
Contributor
Contributor
1,571 Views
Registered: ‎02-18-2013

 

It need to use video_cmd utility to initialize the media pipeline of an associated V4L2 capture device when the video source is MIPI but not USB.

 

I use the following command refer to zcu104_rv_ss/sd_card/optical_flow/gstpass.sh 

video_cmd -d 1 -s 0 -i 1920x1080@UYVY -f 60/1 -X
gst-launch-1.0 v4l2src device=/dev/video3 ! "video/x-raw, width=1920, height=1080" ! kmssink plane-id=26 driver-name=xilinx_drm_mixer

the video can be fetched and displayed on HDMI monitor.

View solution in original post

0 Kudos
herry
Contributor
Contributor
1,537 Views
Registered: ‎02-18-2013

I tested the LI-IMX274MIPI-FMC with the above command, there were problems with white balance and overexposure: when the brightness is low, the picture is green; when the brightness is high, the picture is white.

 

The reVISION Getting Started Guide states: The provided image signal processor (ISP) pipeline does not include any auto algorithms. The IMX274, gamma, and color correction controls have to be adjusted manually based on the surrounding environment.

 

How to adjust specifically?

0 Kudos