在Gstreamer管道中使用DeepStream插件

在Gstreamer管道中使用DeepStream插件,gstreamer,Gstreamer,我尝试在Gstreamer管道上使用DeepStream插件,包括编解码器、视频分析块和TensorRT。但有一个奇怪的错误 我已经尝试了gst-launch-1.0和videotestsrc以及ximagesink在屏幕上显示 代码: gst-launch-1.0 videotestsrc!视频转换!x264enc tune=零延迟!h264parse!avdec_h264!视频转换!ximagesink gst-launch-1.0 videotestsrc!视频转换!x264enc tun

我尝试在Gstreamer管道上使用DeepStream插件,包括编解码器、视频分析块和TensorRT。但有一个奇怪的错误

我已经尝试了gst-launch-1.0和videotestsrc以及ximagesink在屏幕上显示

代码:

gst-launch-1.0 videotestsrc!视频转换!x264enc tune=零延迟!h264parse!avdec_h264!视频转换!ximagesink gst-launch-1.0 videotestsrc!视频转换!x264enc tune=零延迟!h264parse!nvdec_h264!nvvidconv!ximagesink 错误:

nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400

如果这样做,则生成的H.264流将采用4:4:4颜色采样。只有少数解码器将处理此配置文件

您必须强制编码器改用4:2:0

gst-launch-1.0 videotestsrc ! video/x-raw, format=I420 ! x264enc ...