Lewis Morris
Lewis Morris

Reputation: 2124

gstreamer RTSP on ubuntu - WARNING: erroneous pipeline: no element "rtspsrc"

Getting my self in a bit of a state. I've been trying to get opencv to use gstreamer and after finally manage to compile from source and have it pick up gstreamer its not working.

So i've taken to the command line to make sure its working there first, and I've tried everything but gstreamer is not picking up "rtspsrc".

I'm running the below in the terminal.

gst-launch-1.0 rtspsrc location=rtsp://admin:[**mypassword**]@192.168.0.40/h264Preview_01_main ! decodebin ! videoconvert ! appsink max-buffers=1 drop=true")

But am getting the below error, does anyone know why this might be?

WARNING: erroneous pipeline: no element "rtspsrc"

Running ubuntu - gstreamer1.0

Upvotes: 4

Views: 10525

Answers (3)

Martijn
Martijn

Reputation: 122

Rtspsrc is part of the Gst-plugins-good. Are you sure you have those installed?

If not, try installing it using:

apt install libgstreamer-plugins-good1.0-0 libgstreamer-plugins-good1.0-dev gstreamer1.0-plugins-good

To check if GStreamer can find the plugin. Run the following in the terminal:

gst-inspect-1.0 rtspsrc

If it returns all kinds of details, it can correctly find the plugin. If it cannot find it, it will return:

No such element or plugin 'rtspsrc'

(edit)

As OP said, for him

which gst-launch-1.0

returns

/home/lewis/anaconda3/bin

So apparently GStreamer is installed through Anaconda, which means it is probably easiest to also install the plugins through Anaconda. I don't have any specific experience with Anaconda, but it think the following should work:

conda install -c conda-forge gst-plugins-good

If other elements are also missing, plugins-base/bad can also be installed

Upvotes: 8

Lewis Morris
Lewis Morris

Reputation: 2124

The issue is when using apt-get the plugins are installing to /usr/bin

BUT

which gst-launch-1.0

returns /home/lewis/anaconda3/bin

I'm not sure what to do yet, but have opened a new question on the linux pages.

https://unix.stackexchange.com/questions/575262/whereis-gstreamer-located-in-two-paths-causing-issues

Upvotes: 1

Florian Zwoch
Florian Zwoch

Reputation: 7373

Note that although RTSP components are on the good set of plugins on Debian/Ubuntu they have been separated into their own package:

sudo apt install gstreamer1.0-rtsp

Upvotes: 0

Related Questions