简体   繁体   English

Ubuntu GStreamer 警告:打开 bin 时出错:没有元素“nvvideoconvert”

[英]Ubuntu GStreamer warning: Error opening bin: no element “nvvideoconvert”

I'd like to ingest a rstp video and “leave” in the GPU memory to be ready for tensorRT inference.我想摄取 rstp 视频并在 GPU memory 中“离开”以准备好进行 tensorRT 推理。 I have Ubuntu Server 18.04 with Cuda 11.1, Drivers 455, Tensort 7.2.1.1我有 Ubuntu 服务器 18.04 和 Cuda 11.1,驱动程序 455,Tensort 7.2.1.1

Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0

I setup Gstreamer on Ubuntu Server 18.04 with the following official command ( here ):我使用以下官方命令( 此处)在 Ubuntu 服务器 18.04 上设置 Gstreamer:

sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

But the following pipeline (I think the camera should be public)但是以下管道(我认为相机应该是公开的)

gst-launch-1.0 rtspsrc location=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov latency=10 num-buffers=256 ! decodebin !  nvvideoconvert ! video/x-raw\(memory:NVMM\),format=BGRx ! fakesink name=s

gives me the error:给我错误:

GStreamer warning: Error opening bin: no element "nvvideoconvert"

Also, cv2.getBuildInformation() reports this:此外, cv2.getBuildInformation()报告此:

  Video I/O:
    DC1394:                      YES (2.2.5)
    FFMPEG:                      YES
      avcodec:                   YES (57.107.100)
      avformat:                  YES (57.83.100)
      avutil:                    YES (55.78.100)
      swscale:                   YES (4.8.100)
      avresample:                YES (3.7.0)
    GStreamer:                   YES (1.14.5)
    v4l/v4l2:                    YES (linux/videodev2.h)

Do I need Deepstream?我需要深流吗? If not, how can I solve this?如果没有,我该如何解决这个问题? I don't think Deepstream support my current cuda version.我认为 Deepstream 不支持我当前的 cuda 版本。

You need deepstream to run the nvvideoconvert plugin.您需要 deepstream 才能运行 nvvideoconvert 插件。 As per my understanding, nvidia developed some plugins which works perfectly with deepstream.据我了解,nvidia 开发了一些与 deepstream 完美配合的插件。 All these plugins starts with "nv".所有这些插件都以“nv”开头。

I think you can use the gstreamer community equivalent of the nvvideoconvert, which is videoconvert in the pipeline.我认为您可以使用与 nvvideoconvert 等效的 gstreamer 社区,它是管道中的 videoconvert。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM