AR# 73023

2019.2 Zynq UltraScale+ MPSoC VCU - "VCU: unavailable resource error" errors when trying to switch from a 4Kp30 stream to a 4Kp60 stream, using the Xilinx Low Latency mode

描述

Why do I see "VCU: unavailable resource error" errors when trying to switch from a 4Kp30 stream to a 4Kp60 stream using the Xilinx Low Latency (sometimes called Low Latency Phase 2 or LLP2) mode?

Example Pipeline:

gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video0 ! video/x-raw, width=3840, height=2160, format=NV12, framerate=30/1 ! omxh264enc control-rate=low-latency target-bitrate=20000 filler-data=0 prefetch-buffer=TRUE num-slices=16 ! video/x-h264, alignment=nal ! queue max-size-buffers=0 ! omxh264dec low-latency=1 ! queue max-size-bytes=0 ! fpsdisplaysink name=fpssink text-overlay=false 'video-sink=kmssink bus-id=a0070000.v_mix plane-id=30 hold-extra-sample=1 show-preroll=false sync=true' sync=true -v

killall -9 gst-launch-1.0

gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video0 ! video/x-raw, width=3840, height=2160, format=NV12, framerate=60/1 ! omxh264enc control-rate=low-latency target-bitrate=20000 filler-data=0 prefetch-buffer=TRUE num-slices=16 ! video/x-h264, alignment=nal ! queue max-size-buffers=0 ! omxh264dec low-latency=1 ! queue max-size-bytes=0 ! fpsdisplaysink name=fpssink text-overlay=false 'video-sink=kmssink bus-id=a0070000.v_mix plane-id=30 hold-extra-sample=1 show-preroll=false sync=true' sync=true -v

解决方案

This is a known issue with the Zynq UltraScale+ MPSoC - LogiCORE H.264/H.265 Video Codec Unit (VCU) that can occur when using kill -9 (SIGKILL) to try and close out the GStreamer pipeline.

The issue occurs because the software does not clean up properly when it receives a SIGKILL.

To work around this issue, use kill -2 (SIGINT), or Ctrl + C, to close the GStreamer Pipeline.

This will ensure that the process terminates gracefully.

Users who need to use SIGKILL to close the GStreamer pipeline can resolve this issue by unloading the VCU kernel modules and reloading them.

This issue is under investigation and will be fixed in a future release.

链接问答记录

主要问答记录

AR# 73023
日期 12/19/2019
状态 Active
Type 综合文章
Tools
IP