cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
459 Views
Registered: ‎07-30-2019

How to output cameras video to DP port with Gstreamer

Hi Xilinx,

I am using ZCU102 board + Avnet GMSL Multi-cameras Kit. with Avnet shell, It can output cameras video to HDMI with Gstreamer, But outputing the video to DP port is not OK.

Please help me check it.

 

Thanks 

#!/bin/bash

#
# Helper script demonstrating basic pipeline funcationality
# utilizing gst-launch.
#

#w=3840
#h=2160
#framerate=60/1
w=1920
h=1080
framerate=30/1
fmt=YUY2
#fmt=UYVY

# use command 'video_cmd -S' to view input sources.
s=0

# select your display output
# bus id fd4a0000.zynqmp-display is used for display port
# bus id b00c0000.v_mix is used for hdmi
#bus_id=fd4a0000.zynqmp-display
bus_id=b00c0000.v_mix

# the plane id is set automatically based on the selected format (fmt variable)
# zynqmp_disp (DP)
#   + plane 34: YUY2, UYVY
# xlnx_mixer (HDMI)
#   + plane 29: YUY2
#   + plane 30: YUY2
#   + plane 31: YUY2
#   + plane 32: YUY2
#plane=34

# set display device id based on driver name
if [ ${bus_id} = "fd4a0000.zynqmp-display" ]; then
	d=0
elif [ ${bus_id} = "b00c0000.v_mix" ]; then
	d=1
	if [ ${fmt} = "YUY2" ]; then
		plane=30
	elif [ ${fmt} = "UYVY" ]; then
		plane=31
	fi
else
	echo "Invalid bus id '${bus_id}'. Exiting..."
	exit 1
fi

# set media pipeline
#vdev=`video_cmd -d ${d} -s ${s} -i ${w}x${h}@${fmt} -f ${framerate} -X`
video_cmd -d ${d} -s ${s} -i ${w}x${h}@${fmt} -f ${framerate} -X
vdev=/dev/video2

# gst-launch is a command line utility for testing your pipeline
#gst-launch-1.0 
#    v4l2src device=${vdev} io-mode="dmabuf" ! 
#    "video/x-raw, width=${w}, height=${h}, format=${fmt}, framerate=${framerate}" ! 
#    fpsdisplaysink video-sink="kmssink plane-id=${plane} bus-id=${bus_id} fullscreen-overlay=true" 
#    sync=false text-overlay=false -v


w=1920
h=1080
qw=1920
qh=1080
gst-launch-1.0 \
	v4l2src device=/dev/video2 io-mode="dmabuf" ! \
	"video/x-raw, width=${w}, height=${h}, format=${fmt}, framerate=${framerate}" ! \
	kmssink plane-id=29 bus-id=${bus_id} render-rectangle="<0,0,${qw},${qh}>" \
	\
	v4l2src device=/dev/video3 io-mode="dmabuf" ! \
	"video/x-raw, width=${w}, height=${h}, format=${fmt}, framerate=${framerate}" ! \
	kmssink plane-id=30 bus-id=${bus_id} render-rectangle="<${qw},0,${qw},${qh}>" \
	\
	v4l2src device=/dev/video4 io-mode="dmabuf" ! \
	"video/x-raw, width=${w}, height=${h}, format=${fmt}, framerate=${framerate}" ! \
	kmssink plane-id=31 bus-id=${bus_id} render-rectangle="<0,${qh},${qw},${qh}>" \
	\
	v4l2src device=/dev/video5 io-mode="dmabuf" ! \
	"video/x-raw, width=${w}, height=${h}, format=${fmt}, framerate=${framerate}" ! \
	kmssink plane-id=32 bus-id=${bus_id} render-rectangle="<${qw},${qh},${qw},${qh}>" \
	-v
0 Kudos
18 Replies
Highlighted
Moderator
Moderator
421 Views
Registered: ‎11-09-2015

HI @analoglamb 

Let start by the beginning. Can you have a DP output with any reference design with this board + the monitor your are using?

If not, what is the output of the modetest command? Is it showing the monitor connected?

If not, make sure you are using a DP monitor (thus no DP to HDMI adapter)


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Observer
Observer
389 Views
Registered: ‎07-30-2019

Thanks,

run linux with the board, there is no anything in the monitor, but the monitor backlight is on.

run modetest command, log as below: can detect the DP port.

 

root@xilinx:~# modetest
Encoders:
id      crtc    type    possible crtcs  possible clones
37      36      TMDS    0x00000001      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
38      37      connected       DP-1            530x300         24      37
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
  1920x1080 60 1920 2008 2052 2200 1080 1082 1087 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver
  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver
  1600x1200 60 1600 1664 1856 2160 1200 1201 1204 1250 162000 flags: phsync, pvsync; type: driver
  1280x1024 75 1280 1296 1440 1688 1024 1025 1028 1066 135000 flags: phsync, pvsync; type: driver
  1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver
  1152x864 75 1152 1216 1344 1600 864 865 868 900 108000 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver
  1280x720 50 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1024x768 75 1024 1040 1136 1312 768 769 772 800 78750 flags: phsync, pvsync; type: driver
  1024x768 60 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver
  800x600 75 800 816 896 1056 600 601 604 625 49500 flags: phsync, pvsync; type: driver
  800x600 60 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
  720x576 50 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  640x480 75 640 656 720 840 480 481 484 500 31500 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  720x400 70 720 738 846 900 400 412 414 449 28320 flags: nhsync, pvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
                        00ffffffffffff0010ace7404c5a4548
                        0e1d0104a5351e783aee95a3544c9926
                        0f5054a54b00714f8180a940d1c00101
                        010101010101023a801871382d40582c
                        45000f282100001e000000ff00324448
                        373639343448455a4c0a000000fc0044
                        454c4c205532343137480a20000000fd
                        00324b1e5311000a20202020202001e1
                        02031df1509005040302071601061112
                        1513141f2023091f0783010000023a80
                        1871382d40582c25000f282100001e01
                        1d8018711c1620582c25000f28210000
                        9e011d007251d01e206e2855000f2821
                        00001e8c0ad08a20e02d10103e96000f
                        28210000180000000000000000000000
                        00000000000000000000000000000075
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        39 sync:
                flags: range
                values: 0 1
                value: 0
        40 bpc:
                flags: enum
                enums: 6BPC=6 8BPC=8 10BPC=10 12BPC=12
                value: 8

CRTCs:
id      fb      pos     size
36      58      (0,0)   (1920x1080)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
  props:
        29 output_color:
                flags: enum
                enums: rgb=0 ycrcb444=1 ycrcb422=2 yonly=3
                value: 0
        30 bg_c0:
                flags: range
                values: 0 4095
                value: 0
        31 bg_c1:
                flags: range
                values: 0 4095
                value: 0
        32 bg_c2:
                flags: range
                values: 0 4095
                value: 0

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
34      0       0       0,0             0,0     0               0x00000001
  formats: VYUY UYVY YUYV YVYU YU16 YV16 YU24 YV24 NV16 NV61 BG24 RG24 XB24 XR24 XB30 XR30 YU12 YV12 NV12 NV21 XV15 XV20
  props:
        6 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        33 tpg:
                flags: range
                values: 0 1
                value: 0
35      36      58      0,0             0,0     0               0x00000001
  formats: AB24 AR24 RA24 BA24 BG24 RG24 RA15 BA15 RA12 BA12 RG16 BG16
  props:
        6 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        27 alpha:
                flags: range
                values: 0 255
                value: 255
        28 g_alpha_en:
                flags: range
                values: 0 1
                value: 1

Frame buffers:
id      size    pitch

root@xilinx:~#
0 Kudos
Highlighted
Moderator
Moderator
383 Views
Registered: ‎11-09-2015

HI @analoglamb 

Ok. Next step would be to check if you can display something with the modetest command:

modetest -M xlnx -s 38:1920x1080@RG24

Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Observer
Observer
381 Views
Registered: ‎07-30-2019

Thanks for your quick reply,

run the command: modetest -M xlnx -s 38:1920x1080@RG24

The monitor shows the colorbar as below:

analoglamb_0-1599636841673.png

 

 

0 Kudos
Highlighted
Moderator
Moderator
365 Views
Registered: ‎11-09-2015

HI @analoglamb 

Ok. Then that looks good. Then I am not sure what can be the issue. I am not very familiar with Gstreamer in source code.

What is the source of your camera? If this is from MIPI, I would start with a TPG IP in the PL and make sure that you can make this work. This would be to heck if you can move the data from the PL to the DP controller.

The ZynqMPSoC Base TRD might be helpful for you as well as it is using the MIPI input and DP output:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/523239470/Zynq+UltraScale+MPSoC+Base+TRD+2020.1+-+Design+Module+8 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Teacher
Teacher
360 Views
Registered: ‎06-16-2013

Hi @analoglamb 

 

Did you set proper parameter on media graph ?

Also, did you make sure it by media-ctl on media graph ?

 

Best regards,

Highlighted
Observer
Observer
304 Views
Registered: ‎07-30-2019

Hi,

 

I think the real problem is the gst command: 

gst-launch-1.0 \
	v4l2src device=/dev/video2 io-mode="dmabuf" ! \
	"video/x-raw, width=${w}, height=${h}, format=${fmt}, framerate=${framerate}" ! \
	kmssink plane-id=29 bus-id=${bus_id} render-rectangle="<0,0,${qw},${qh}>" \

 I do not know how to config this for PS DP port. But there is option for DP port. It does not work well.

# select your display output
# bus id fd4a0000.zynqmp-display is used for display port
# bus id b00c0000.v_mix is used for hdmi
#bus_id=fd4a0000.zynqmp-display
bus_id=b00c0000.v_mix

Do you have colleagues who know Gstreamer work well? From Xilinx Wiki, Xilinx always use Gsteamer.

 

Thanks

 

0 Kudos
Highlighted
Observer
Observer
303 Views
Registered: ‎07-30-2019

Media configruation is OK, video can output to HDMI.

Thanks

0 Kudos
Highlighted
Teacher
Teacher
295 Views
Registered: ‎06-16-2013

Hi @analoglamb 

 

Would you try to change plane-id to 34 on kmssink element ?

 

Best regards,

 

Highlighted
Observer
Observer
275 Views
Registered: ‎07-30-2019

Thanks for your suggestion.

plane-id=34, there is no error message, it looks well, but the monitor display nothing.the DP log as below:

[vcap_gmsl] vcap_gmsl_init ...
[vcap_gmsl] csi_set_act_lanes ...
[vcap_gmsl] v4l2_csi_set_ctrl ...
[vcap_gmsl] V4L2_CID_TEST_PATTERN ... 0
[vcap_gmsl] SET_CTRL : ID=0x009F0903, VALUE=0x00000000 ...
[vcap_gmsl] V4L2_CID_EXPOSURE ... 1339
[vcap_gmsl] SET_CTRL : ID=0x00980911, VALUE=0x0000053B ...
[vcap_gmsl] V4L2_CID_ANALOGUE_GAIN ... 7
[vcap_gmsl] SET_CTRL : ID=0x009E0903, VALUE=0x00000007 ...
[vcap_gmsl] V4L2_CID_GAIN ... 512
[vcap_gmsl] SET_CTRL : ID=0x00980913, VALUE=0x00000200 ...
[vcap_gmsl] V4L2_CID_VFLIP ... 0
[vcap_gmsl] SET_CTRL : ID=0x00980915, VALUE=0x00000000 ...
[vcap_gmsl] V4L2_CID_HFLIP ... 0
[vcap_gmsl] SET_CTRL : ID=0x00980914, VALUE=0x00000000 ...
[vcap_gmsl] vcap_gmsl_ops_set_media_ctrl ...
[vcap_gmsl] vcap_gmsl_find_sensor_res ...
[vcap_gmsl] vcap_gmsl_ops_set_frame_rate ... NOT IMPLEMENTED YET ...
/dev/video2
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstKMSSink:kmssink3: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink3: display-height = 1080
/GstPipeline:pipeline0/GstKMSSink:kmssink2: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink2: display-height = 1080
/GstPipeline:pipeline0/GstKMSSink:kmssink1: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink1: display-height = 1080
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080
/GstPipeline:pipeline0/GstV4l2Src:v4l2src2.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstV4l2Src:v4l2src2.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstKMSSink:kmssink3.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter3.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter3.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter3.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601

use HDMI port, the monitor display well: log as blew

[vcap_gmsl] vcap_gmsl_init ...
[vcap_gmsl] csi_set_act_lanes ...
[vcap_gmsl] v4l2_csi_set_ctrl ...
[vcap_gmsl] V4L2_CID_TEST_PATTERN ... 0
[vcap_gmsl] SET_CTRL : ID=0x009F0903, VALUE=0x00000000 ...
[vcap_gmsl] V4L2_CID_EXPOSURE ... 1339
[vcap_gmsl] SET_CTRL : ID=0x00980911, VALUE=0x0000053B ...
[vcap_gmsl] V4L2_CID_ANALOGUE_GAIN ... 7
[vcap_gmsl] SET_CTRL : ID=0x009E0903, VALUE=0x00000007 ...
[vcap_gmsl] V4L2_CID_GAIN ... 512
[vcap_gmsl] SET_CTRL : ID=0x00980913, VALUE=0x00000200 ...
[vcap_gmsl] V4L2_CID_VFLIP ... 0
[vcap_gmsl] SET_CTRL : ID=0x00980915, VALUE=0x00000000 ...
[vcap_gmsl] V4L2_CID_HFLIP ... 0
[vcap_gmsl] SET_CTRL : ID=0x00980914, VALUE=0x00000000 ...
[vcap_gmsl] vcap_gmsl_ops_set_media_ctrl ...
[vcap_gmsl] vcap_gmsl_find_sensor_res ...
[vcap_gmsl] vcap_gmsl_ops_set_frame_rate ... NOT IMPLEMENTED YET ...
/dev/video2
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstKMSSink:kmssink3: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink3: display-height = 1080
/GstPipeline:pipeline0/GstKMSSink:kmssink2: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink2: display-height = 1080
/GstPipeline:pipeline0/GstKMSSink:kmssink1: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink1: display-height = 1080
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920
/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080
/GstPipeline:pipeline0/GstV4l2Src:v4l2src3.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstV4l2Src:v4l2src2.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter3.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter3.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstKMSSink:kmssink2.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstKMSSink:kmssink2.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstKMSSink:kmssink2.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstKMSSink:kmssink2.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter2.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUY2, framerate=(fraction)30/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601
0 Kudos
Highlighted
Moderator
Moderator
267 Views
Registered: ‎11-09-2015

HI @analoglamb 

Plane id=34 might not be visible because of plane id=35 which is always on top. You might need to change the alpha

Refer to 

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842105/ZynqMP+DisplayPort+Linux+driver 

Or did you try with plane id = 35?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Teacher
Teacher
235 Views
Registered: ‎06-16-2013

Hi @analoglamb 

 

Just ask you.

Does your monitor support YUV2 mode on DisplayPort ?

 

Best regards,

Highlighted
Observer
Observer
219 Views
Registered: ‎07-30-2019

Thanks, I will try it, but seems the id=35 is not support YUV format video.

 

I want to know how to install modetest in Petalinux Rootfs, I select libdrm, there is a GUI in monitor, run modetest, log as below,  please help me check it

analoglamb_0-1599792352246.png

 

0 Kudos
Highlighted
Observer
Observer
215 Views
Registered: ‎07-30-2019

Now I am doubting that the DP port does not support YUV, because when run 

modetest -M xlnx -s 38:1920x1080@RG24

 @YUVxxx, show error log.

0 Kudos
Highlighted
Teacher
Teacher
211 Views
Registered: ‎06-16-2013

Hi @analoglamb 

 

It indicates that DRM graph is broken by modetest command.

So would you make sure DRM graph and boot log message ?

 

Best regards,

0 Kudos
Highlighted
Teacher
Teacher
210 Views
Registered: ‎06-16-2013

Hi @analoglamb 

 

What is your monitor (supported DP) ?

 

Best regards,

0 Kudos
Highlighted
Observer
Observer
84 Views
Registered: ‎07-30-2019

Hi, sorry for the reply late.

I am using dell u2417h ,here is user guide 

http://ftp.dell.com/manuals/all-products/esuprt_electronics_accessories/esuprt_electronics_accessories_monitors/dell-u2417h-monitor_User's-Guide_en-us.pdf

 

It seems use RGB color format.

Thanks

0 Kudos
Highlighted
Observer
Observer
80 Views
Registered: ‎07-30-2019

0 Kudos