在 Gstreamer 管道中使用 DeepStream 插件
Using DeepStream plugins within Gstreamer pipelines
我尝试在 Gstreamer 管道上使用 DeepStream 插件,包括编解码器、视频分析块和 TensorRT。但是有一个奇怪的错误。
我已经尝试 gst-launch-1.0
与 videotestsrc
和 ximagesink
在屏幕上显示。
代码:
gst-launch-1.0 videotestsrc ! videoconvert ! x264enc tune= zerolatency ! h264parse ! avdec_h264 ! videoconvert ! ximagesink
gst-launch-1.0 videotestsrc ! videoconvert ! x264enc tune= zerolatency ! 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 ...
我尝试在 Gstreamer 管道上使用 DeepStream 插件,包括编解码器、视频分析块和 TensorRT。但是有一个奇怪的错误。
我已经尝试 gst-launch-1.0
与 videotestsrc
和 ximagesink
在屏幕上显示。
代码:
gst-launch-1.0 videotestsrc ! videoconvert ! x264enc tune= zerolatency ! h264parse ! avdec_h264 ! videoconvert ! ximagesink
gst-launch-1.0 videotestsrc ! videoconvert ! x264enc tune= zerolatency ! 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 ...