Zynq UltraScale+ MPSoC VCU TRD 2019.2 - Multi stream Audio-Video Design
...
1.1 Board Setup
Refer below link for Board Setup
- Zynq UltraScale+ MPSoC VCU TRD 2019.2 Board Setup
- The Pmod I2S2's I2S Audio. signals from MPSoC PL fabric are connected to PMOD0 GPIO Header (J55 - right angle female connector )
- Pmod I2S2 Add on card connects to J55 connector and its Master/Slave select jumper (JP1) should be placed into the Slave (SLV) positionI2S Audio. signals are connected to PMOD0 GPIO Header (J55 - right angle female connector on ZCU106)
1.2 Run Flow
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 are placed in the following directory structure. The user needs to copy all the files from the $TRD_HOME/images/vcu_audio/ to FAT32 formatted SD card directory.
Code Block |
---|
|
└── rdf0428-zcu106-vcu-trd-2019-2
├── apu
│ └── vcu_petalinux_bsp
├── images
│ ├── vcu_10g
│ ├── vcu_audio
│ ├── vcu_hdmi_multistream_xv20
│ ├── vcu_hdmi_rx
│ ├── vcu_hdmi_tx
│ ├── vcu_llp2_hdmi_nv12
│ ├── vcu_llp2_hdmi_nv16
│ ├── vcu_llp2_hdmi_xv20
│ ├── vcu_llp2_sdi_xv20
│ ├── vcu_multistream_nv12
│ ├── vcu_pcie
│ ├── vcu_sdirx
│ ├── vcu_sditx
│ └── vcu_sdi_xv20
├── pcie_host_package
│ ├── COPYING
│ ├── etc
│ ├── include
│ ├── libxdma
│ ├── LICENSE
│ ├── README.md
│ ├── tools
│ └── xdma
├── pl
│ ├── constrs
│ ├── designs
│ ├── prebuild
│ ├── README.md
│ └── srcs
└── README.txt |
TRD package contents specific to Multistream Audio-Video design is placed in the following directory structure.
Code Block |
---|
|
└── rdf0428-zcu106-vcu-trd-2019-2
├── apu
│ └── vcu_petalinux_bsp
├── images
│ ├── vcu_audio
│ │ ├── autostart.sh
│ │ ├── bin
│ │ ├── BOOT.BIN
│ │ ├── config
│ │ ├── image.ub
│ │ ├── system.dtb
│ │ └── vcu
├── pcie_host_package
│ ├── COPYING
│ ├── etc
│ ├── include
│ ├── libxdma
│ ├── LICENSE
│ ├── README.md
│ ├── tools
│ └── xdma
├── pl
│ ├── constrs
│ ├── designs
│ ├── prebuild
│ ├── README.md
│ └── srcs
└── README.txt |
configuration files(input.cfg) for various Resolutions are placed in the following directory structure in /media/card.
Code Block |
---|
|
config
├── 1-4kp60
│ ├── Display
│ ├── Record
│ ├── Stream-in
│ └── Stream-out
├── 2-1080p60
│ ├── Display
│ ├── Record
│ ├── Stream-in
│ └── Stream-out
├── 2-4kp30
│ ├── Display
│ ├── Record
│ ├── Stream-in
│ └── Stream-out
└── input.cfg
|
1.2.1 GStreamer Application (vcu_gst_app)
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 the plain text.
Execution of the application is shown below:
Code Block |
---|
|
% vcu_gst_app <path to *.cfg file> |
Example:
4kp60 HEVC_HIGH Display Pipeline execution
Code Block |
---|
|
% vcu_gst_app /media/card/config/Single_4kp60_HDMI_HDMI/Display/Single_HDMI_HDMI_4kp60_HEVC_HIGH.cfg |
4kp60 HEVC_HIGH Record Pipeline execution
Code Block |
---|
|
% vcu_gst_app /media/card/config/Single_4kp60_HDMI_HDMI/Record/Single_HDMI_HDMI_4kp60_HEVC_HIGH.cfg |
4kp60 HEVC_HIGH Stream-out Pipeline execution
Code Block |
---|
|
% vcu_gst_app /media/card/config/Single_4kp60_HDMI_HDMI/Stream-out/Single_HDMI_HDMI_4kp60_HEVC_HIGH.cfg |
4kp60 HEVC_HIGH Stream-in Pipeline execution
Code Block |
---|
|
% vcu_gst_app /media/card/config/Single_4kp60_HDMI_HDMI/Stream-in/Single_HDMI_HDMI_4kp60_HEVC_HIGH.cfg |
NOTE: Make sure HDMI-Rx should be configured to 4kp60 mode.
To measure the latency of the pipeline, run the below command. The latency data is huge, so dump it to a file.
Code Block |
---|
|
% GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency;scheduletime" ./vcu_gst_app ./input.cfg >& dump_log.txt |
...