Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Zynq UltraScale+ MPSoC VCU TRD 2019.2 - SDI Video Capture and SDI Display with PLDDR

...


Resolution
GUICommand Line
Single StreamSingle Stream
4kp60X
4kp30X
1080p60X

√ - Supported
NA – Not applicable
x – Not supported

The below table gives information about the features supported in this design. 

...

4 Appendix B SDI Link Status

Run the below command to check the SDI link status and output format of the SDI input source. Run the below command for all media nodes to print media device topology where "mediaX" represents different media nodes. In the topology, log look for the “v_smpte_uhdsdi_rx_ss” string to identify the SDI input source media node.

Code Block
themeMidnight
$ xmedia-ctl -p -d /dev/mediaX


NOTE: Check resolution and frame-rate of "v_smpte_uhdsdi_rx_ss" node.

Code Block
themeMidnight
# xmedia-ctl -d /dev/media0 -p
Media controller API version 4.19.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  4.19.0

Device topology
- entity 1: vcap_sdirx output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "a0030000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]

- entity 5: a0030000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Source
                [fmt:UYVY10_1X20/3840x2160@1000/60000 field:none]
                [dv.detect:BT.656/1120 3840x2160p60 (4400x2250) stds:CEA-861 flags:can-reduce-fps,CE-video,0x80]   --> RX link up 
                -> "vcap_sdirx output 0":0 [ENABLED]

If the SDI-Rx link has the issue, it appears as below.When SDI source is connected to 4KP60 resolution, it shows:

NOTE: Check resolution and frame-rate of "dv.detect" under "v_smpte_uhdsdi_rx_ss" node.

When the SDI source is not connected, it shows:

Code Block
themeMidnight
# xmedia-ctl -d /dev/media0 -p -----> media node for SDI input source
Media controller API version 4.19.0

Media device information
--[ 1215.787801] xilinx-sdirxss a0030000.v_smpte_uhdsdi_rx_ss: Video not locked!
----------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  4.19.0

Device topology
- entity 1: vcap_sdirx output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "a0030000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]

- entity 5: a0030000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Source
                [dv.query:no-lock]                           ----------------> link is not detected
                -> "vcap_sdirx output 0":0 [ENABLED]

NOTE: Check resolution and frame-rate of "v_smpte_uhdsdi_rx_ss" node.

...


...

Notes for modetest commands:

  • Modetest command for 4kp60 Display
Code Block
themeMidnight
$ xmodetest -M xlnx -s 31:3840x2160-60@XV20  -w 31:sdi_mode:5 -w 31:sdi_data_stream:8 -w 31:is_frac:0 
  • Modetest command for 4kp30 Display
Code Block
themeMidnight
$ vcu_gst_app /media/card/config/input.cfg

...

xmodetest -M xlnx -s 31:3840x2160-60@XV20  -w 31:sdi_mode:4 -w 31:sdi_data_stream:8 -w 31:is_frac:0
  • Modetest command for 1080p60 Display
Code Block
themeMidnight
Common$ Configurationxmodetest -M xlnx -s 31:1920x1080-60@XV20 START Num Of Input            : 1
Output                  : SDI
Out Type                : Display
Frame Rate      -w 31:sdi_mode:2 -w 31:sdi_data_stream:2 -w 31:is_frac:0 


  • Follow the below steps to switch the SDI-Rx resolution from 1080p60 to 4kp60.
    • Check current SDI Input Source Resolution (1080p60) by following the above-mentioned steps.
    • Run vcu_gst_app for current SDI resolution (1080p60) by executing the following command.
Code Block
themeMidnight
$ vcu_gst_app /media/card/config/input.cfg

Below configurations needs to be set in input.cfg for SDI-1080p60.

Code Block
themeMidnight
Common Configuration    : START
Num Of Input            : 1
Output                  : SDI
Out Type                : Display
Frame Rate              : 60
Exit

Input Configuration     : START
Input Num               : 1
Input Type              : SDI
Raw                     : TRUE
Width                   : 1920
Height                  : 1080
Format					: XV20
Exit

...

Code Block
themeMidnight
$ gst-launch-1.0 v4l2src io-mode=4 ! video/x-raw\(format:Interlaced\),interlace-mode=alternate,format=NV16_10LE32,width=1920,height=1080,framerate=30/1 ! omxh265enc target-bitrate=10000 control-rate=2 ! omxh265dec ! queue max-size-bytes=-1 ! kmssink bus-id=amba_pl@0:drm-pl-disp-drv connector-properties="props,sdi_mode=0,sdi_data_stream=2,is_frac=0" show-preroll-frame=false

$ gst-launch-1.0 v4l2src io-mode=4 ! video/x-raw\(format:Interlaced\),interlace-mode=alternate,format=NV16_10LE32,width=720,height=576,framerate=25/1 ! omxh265enc target-bitrate=4000 control-rate=2 ! omxh265dec ! queue max-size-bytes=-1 ! kmssink bus-id=amba_pl@0:drm-pl-disp-drv connector-properties="props,sdi_mode=1,sdi_data_stream=2,is_frac=0" show-preroll-frame=false

$ gst-launch-1.0 v4l2src io-mode=4 ! video/x-raw\(format:Interlaced\),interlace-mode=alternate,format=NV16_10LE32,width=720,height=486,framerate=30/1 ! omxh265enc target-bitrate=10000 control-rate=2 ! omxh265dec ! queue max-size-bytes=-1 ! kmssink bus-id=amba_pl@0:drm-pl-disp-drv connector-properties="props,sdi_mode=1,sdi_data_stream=2,is_frac=1" show-preroll-frame=false

Notes for gst-launch-1.0 commands:

  • Make sure the SDI-Rx media pipeline is configured for 4kp60 resolution and the source/sink has the same color format. Run below xmedia-ctl commands to set the resolution and format of the SDI scaler node.

When SDI Input Source is NVIDIA SHIELD

NOTE: Make sure NVIDIA SHIELD is configured for 4kp resolution and UYVY8 color format.

When SDI Input Source is ABOX

NOTE: Make sure ABOX is configured for 4kp resolution and UYVY8 color format.

Notes for modetest commands:

  • Modetest command for 4kp60 Display
Code Block
themeMidnight
$ xmodetest -M xlnx -s 31:3840x2160-60@XV20  -w 31:sdi_mode:5 -w 31:sdi_data_stream:8 -w 31:is_frac:0 
  • Modetest command for 4kp30 Display
Code Block
themeMidnight
$ xmodetest -M xlnx -s 31:3840x2160-60@XV20  -w 31:sdi_mode:4 -w 31:sdi_data_stream:8 -w 31:is_frac:0
  • Modetest command for 1080p60 Display
Code Block
themeMidnight
$ xmodetest -M xlnx -s 31:1920x1080-60@XV20  -w 31:sdi_mode:2 -w 31:sdi_data_stream:2 -w 31:is_frac:0  max-size-bytes=-1 ! kmssink bus-id=amba_pl@0:drm-pl-disp-drv connector-properties="props,sdi_mode=1,sdi_data_stream=2,is_frac=0" show-preroll-frame=false

$ gst-launch-1.0 v4l2src io-mode=4 ! video/x-raw\(format:Interlaced\),interlace-mode=alternate,format=NV16_10LE32,width=720,height=486,framerate=30/1 ! omxh265enc target-bitrate=10000 control-rate=2 ! omxh265dec ! queue max-size-bytes=-1 ! kmssink bus-id=amba_pl@0:drm-pl-disp-drv connector-properties="props,sdi_mode=1,sdi_data_stream=2,is_frac=1" show-preroll-frame=false