AR# 71167


2018.1/2 - Zynq UltraScale+ MPSoC - Video Codec Unit (VCU) - How do I build gst-shark for latency measurements?


How do I build gst-shark for latency measurements using PetaLinux?


This Answer Record will walk you through adding gst-shark to a ZCU106 BSP project.

1) Create a PetaLinux Project for the ZCU106.

$ petalinux-create -t project -s /<PATH_TO_BSP>/xilinx-zcu106-v2018.1-final.bsp

2) Extract the attached recipies-multimedia.tar.gz

$ cd xilinx-zcu106-2018.1/project-spec/meta-user/
$ tar xvf recipes-multimedia.tar.gz
$ cd -

3) Add gst-shark and gsd in in IMAGE_INSTALL as shown below:

$ vim xilinx-zcu106-2018.1/project-spec/meta-user/conf/petalinuxbsp.conf
IMAGE_INSTALL_append += "\
                gst-shark \
                gstd \

4) Build PetaLinux:


Note: it is recommend that you always run gst-shark form /tmp.

Example GStreamer Pipeline:

GST_DEBUG="GST_TRACER:7" GST_TRACERS="framerate;scheduletime" gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 !  omxh265enc  ip-mode=2 target-bitrate=20000000 control-rate=2 Gop-Length=30 b-frames=2 ! video/x-h265, profile=main  ! queue ! omxh265dec   ip-mode=1 op-mode=1 ! queue ! kmssink sync=true  > framerate_schedule_hevc.txt 2>&1


Associated Attachments

Name File Size File Type
recipes-multimedia.tar.gz 2 KB GZ

Linked Answer Records

Master Answer Records

Associated Answer Records

AR# 71167
Date 08/03/2018
Status Active
Type General Article
Boards & Kits
People Also Viewed