Table of Contents
The primary goal of this Design is to demonstrate the capabilities of VCU hard block present in Zynq UltraScale+ EV devices. The TRD will serve as a platform to tune the performance parameters of VCU and arrive at optimal configurations for encoder and decoder blocks with the streaming use case where bandwidth plays a vital role.
This design supports the following video interfaces:
Sources:
Sinks:
VCU Codec:
Streaming Interfaces:
Video format:
Supported Features:
The table below provides the supported encoder feature in this release.
Resolution | Command Line | |
Single Stream | Multi-stream | |
4kp60 | √ | NA |
4kp30 | √ | NA |
1080p60 | √ | NA |
√ - Supported
NA – Not applicable
x – Not supported
Deliverables:
Pipeline | Input source | Output Type | Resolution | Video encode/Decoder type | Deliverables |
Playback pipeline | File Source/ Stream-In | SDI-Tx | 4K/1080p | HEVC/AVC | Playback of the local-file/stream-in with video decoded using VCU and display on SDI-Tx. |
The below figure shows the SDI Video Display design hardware block diagram.
The below figure shows the SDI Video Display design software block diagram.
Refer below link for Board Setup
The TRD package is released with the source code, Vivado project, Petalinux BSP, and SD card image that enables the user to run the demonstration. It also includes the binaries necessary to configure and boot the ZCU106 board. Prior to running the steps mentioned in this wiki page, download the TRD package and extract its contents to a directory referred to as ‘TRD_HOME' which is the home directory.
Refer below link to download all TRD contents.
TRD package contents specific to SDI Video Display design is placed in the following directory structure. The user needs to copy all the files from the $TRD_HOME/images/vcu_sditx/ to FAT32 formatted SD card directory.
rdf0428-zcu106-vcu-trd-2019-2 ├── apu │ └── vcu_petalinux_bsp │ └── xilinx-vcu-zcu106-v2019.2-final.bsp ├── images │ vcu_sditx │ │ ├── autostart.sh │ │ ├── bin │ │ ├── BOOT.BIN │ │ ├── config │ │ ├── image.ub │ │ ├── system.dtb │ │ └── vcu ├── pl │ ├── constrs │ │ ├── hdmi_plddr.xdc │ │ ├── misc.xdc │ │ ├── sdi_interclk.xdc │ │ ├── vcu_10g.xdc │ │ ├── vcu_audio_async.xdc │ │ ├── vcu_audio_w10.xdc │ │ ├── vcu_audio.xdc │ │ ├── vcu_hdmirx.xdc │ │ ├── vcu_hdmitx.xdc │ │ ├── vcu_pcie.xdc │ │ ├── vcu_sdirx_place.xdc │ │ ├── vcu_sdirx_timing.xdc │ │ ├── vcu_sdirxtx_place.xdc │ │ ├── vcu_sdirxtx_plddr_place.xdc │ │ ├── vcu_sdirxtx_plddr_timing.xdc │ │ ├── vcu_sdirxtx_timing.xdc │ │ ├── vcu_sditx_async.xdc │ │ ├── vcu_sditx_place.xdc │ │ ├── vcu_sditx_timing.xdc │ │ ├── vcu_trd_async.xdc │ │ ├── vcu_trd.xdc │ │ ├── vcu_uc2_async.xdc │ │ └── vcu_uc2.xdc │ ├── designs │ │ ├── zcu106_sditx │ │ └── zcu106_trd │ ├── prebuild │ │ ├── zcu106_sditx │ │ └── zcu106_trd │ ├── README.md │ └── srcs │ ├── hdl │ └── ip |
Configuration files(input.cfg) are placed in the following directory structure in /media/card.
config/ ├── Display ├── Stream └── input.cfg |
The vcu_gst_app is a command-line multi-threaded Linux application. The command-line application requires an input configuration file (input.cfg) to be provided in plain text.
Execution of the application is shown below:
% vcu_gst_app < path to *.cfg file> |
Example:
Display Pipeline execution
% vcu_gst_app /media/card/config/Display/input.cfg |
Stream-in Pipeline execution
% vcu_gst_app /media/card/config/Stream/input.cfg |
To measure the latency of the pipeline, run the below command. The latency data is huge, so dump it to a file.
% GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency;scheduletime" ./vcu_gst_app ./input.cfg >& dump_log.txt |
The example configuration files are stored at /media/card/config/ folder.
Common Configuration:
It is the starting point of common configuration.
Num of Input:
Provide the number of inputs. this is always 1 for this design.
Output:
Select the video interface.
Options: SDI or DP
Out Type:
Options: Display
Display Rate:
Pipeline frame rate.
Options: 30 FPS or 60 FPS for each stream.
Exit:
It indicates to the application that the configuration is over.
Input Configuration:
It is the starting point of the input configuration.
Input Num:
Starting Nth input configuration.
Options: 1
Input Type:
Input source type.
Options: File, Stream
Uri:
File path or Network URL. Applicable for file playback and stream-in pipeline only. Supported file formats for playback are ts, mp4, and mkv.
Options: file:///media/usb/abc.ts (for file path), udp://192.168.26.89:5004/ (for Network streaming, Here 192.168.26.89 is IP address and 5004 is port no)
Raw:
To tell the pipeline is processed or pass-through.
Options: True, False
Width:
The width of the live source.
Options: 3840, 1920
Height:
The height of the live source.
Options: 2160, 1080
Exit:
It indicates to the application that the configuration is over.
$ gst-launch-1.0 uridecodebin uri="file:///media/usb/test.ts" ! queue max-size-bytes=0 ! kmssink driver-name=xlnx |
NOTE: File location should be USB-3.0 to avoid the read-write bandwidth issue.
$ gst-launch-1.0 udpsrc port=5004 buffer-size=60000000 caps="application/x-rtp, clock-rate=90000" ! rtpjitterbuffer latency=1000 ! rtpmp2tdepay ! tsparse ! video/mpegts ! tsdemux name=demux ! queue ! h265parse ! omxh265dec internal-entropy-buffers=5 latency-mode=normal ! queue max-size-bytes=0 ! kmssink driver-name=xlnx |
NOTE: A low latency stream-in pipeline cannot be launched with vcu-gst-app. Hence use below gst-launch pipeline
$ gst-launch-1.0 udpsrc port=5004 buffer-size=60000000 caps="application/x-rtp, clock-rate=90000" ! rtpjitterbuffer latency=1000 ! rtpmp2tdepay ! tsparse ! video/mpegts ! tsdemux name=demux ! queue ! h265parse ! video/x-h265, profile=main-422-10, alignment=nal ! omxh265dec internal-entropy-buffers=5 low-latency=1 ! queue max-size-bytes=0 ! kmssink driver-name=xlnx |
Notes for modetest commands:
$ xmodetest -M xlnx -s 31:3840x2160-60@XV20 -w 31:sdi_mode:5 -w 31:sdi_data_stream:8 -w 31:is_frac:0 & |
$ xmodetest -M xlnx -s 31:3840x2160-60@XV20 -w 31:sdi_mode:4 -w 31:sdi_data_stream:8 -w 31:is_frac:0 & |
$ xmodetest -M xlnx -s 31:1920x1080-60@XV20 -w 31:sdi_mode:2 -w 31:sdi_data_stream:2 -w 31:is_frac:0 & |