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 petalinux-user-image.bb 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:

petalinux-build

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

附件

文件名 文件大小 File Type
recipes-multimedia.tar.gz 2 KB GZ

链接问答记录

主要问答记录

相关答复记录

AR# 71167
日期 08/03/2018
状态 Active
Type 综合文章
器件
Tools
IP
Boards & Kits