MPSOC VCU Control Software Sample Applications
alvin.lu@avnet.com
2020.09.12
软件平台:
Vivado 2019.1
PetaLinux 2019.1
Ubuntu16.04.6真机
硬件平台:
ZCU106 (ZynqMP)
VCU Control Software Compile
source ~/petalinux/2019.1/settings.sh
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
make clean
make
Source code of git
https://github.com/Xilinx/vcu-ctrl-sw (change branch to 2019.1)
VCU Control Software Sample Applications
Ctrlsw_encoder and ctrlsw_decoder are complete sample applications that encode
and decode video respectively. These applications are intended as a learning aid for the
VCU Control Software API and for troubleshooting. The source code for the
ctrlsw_encoder and ctrlsw_decoder applications are at https://github.com/Xilinx/vcu-ctrl-sw
H.264 Decoding File to File
ctrlsw_decoder -avc -in input-avc-file.h264 -out ouput.yuv
H.265 Decoding File to File
ctrlsw_decoder -hevc -in input-hevc-file.h265 -out ouput.yuv
Encoding File to File
ctrlsw_encoder –cfg encode_simple.cfg
Note: For a complete list parameters, type the following in the command line:
ctrlsw_decoder --help
ctrlsw_encoder –help
All cfg option PG252 P165
https://github.com/Xilinx/vcu-ctrl-sw/blob/master/test/config/encode_example.cfg
VCU Control Software
The VCU Control Software operates on the frame or slice levels. Its responsibilities are:
• Generating NAL (Network Abstraction Layer) units for encoder.
• Parsing NAL units for decoder.
• Composing and queuing commands for each frame to the MCU Firmware.
• Retrieves status of each frame.
• Concatenates video bit stream generated by hardware and software.