No element "rtspclientsink"

I installed the rtsp “sudo apt install gstreamer1.0-rtsp”, but the ‘no element’ still exist.
And I tried to compile it and copy the libgstrtspclientsink.so to /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ and run ‘gst-inspect-1.0 rtspclientsink’.
There is a warning:
(gst-plugin-scanner:18721): GStreamer-WARNING **: 10:05:41.504: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrtspclientsink.so’: /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrtspclientsink.so: undefined symbol: gst_rtsp_stream_set_multicast_iface
No such element or plugin ‘rtspclientsink’

And ChatGPT told me to check if all the tools version are same. But I am not very sure about this answer.
dpkg -l | grep gstreamer
ii gir1.2-gstreamer-1.0:amd64 1.20.3-0ubuntu1 amd64 GObject introspection data for the GStreamer library
ii gstreamer1.0-alsa:amd64 1.20.1-1ubuntu0.2 amd64 GStreamer plugin for ALSA
ii gstreamer1.0-clutter-3.0:amd64 3.0.27-2ubuntu1 amd64 Clutter PLugin for GStreamer 1.0
ii gstreamer1.0-gl:amd64 1.20.1-1ubuntu0.2 amd64 GStreamer plugins for GL
ii gstreamer1.0-gtk3:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer plugin for GTK+3
ii gstreamer1.0-libav:amd64 1.20.3-0ubuntu1 amd64 ffmpeg plugin for GStreamer
ii gstreamer1.0-opencv:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer OpenCV plugins
ii gstreamer1.0-packagekit 1.2.5-2ubuntu2 amd64 GStreamer plugin to install codecs using PackageKit
ii gstreamer1.0-pipewire:amd64 0.3.48-1ubuntu3 amd64 GStreamer 1.0 plugin for the PipeWire multimedia server
ii gstreamer1.0-plugins-bad:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer plugins from the “bad” set
ii gstreamer1.0-plugins-base:amd64 1.20.1-1ubuntu0.2 amd64 GStreamer plugins from the “base” set
ii gstreamer1.0-plugins-base-apps 1.20.1-1ubuntu0.2 amd64 GStreamer helper programs from the “base” set
ii gstreamer1.0-plugins-good:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer plugins from the “good” set
ii gstreamer1.0-plugins-ugly:amd64 1.20.1-1 amd64 GStreamer plugins from the “ugly” set
ii gstreamer1.0-pulseaudio:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer plugin for PulseAudio (transitional package)
ii gstreamer1.0-qt5:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer plugin for Qt5
ii gstreamer1.0-rtsp:amd64 1.20.1-1 amd64 RTSP plugin for GStreamer
ii gstreamer1.0-tools 1.20.1-1 amd64 Tools for use with GStreamer
ii gstreamer1.0-x:amd64 1.20.1-1ubuntu0.2 amd64 GStreamer plugins for X11 and Pango
ii libgstreamer-gl1.0-0:amd64 1.20.1-1ubuntu0.2 amd64 GStreamer GL libraries
ii libgstreamer-opencv1.0-0:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer OpenCV libraries
ii libgstreamer-plugins-bad1.0-0:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer libraries from the “bad” set
ii libgstreamer-plugins-bad1.0-dev:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer development files for libraries from the “bad” set
ii libgstreamer-plugins-base1.0-0:amd64 1.20.1-1ubuntu0.2 amd64 GStreamer libraries from the “base” set
ii libgstreamer-plugins-base1.0-dev:amd64 1.20.1-1ubuntu0.2 amd64 GStreamer development files for libraries from the “base” set
ii libgstreamer-plugins-good1.0-0:amd64 1.20.3-0ubuntu1.1 amd64 GStreamer development files for libraries from the “good” set
ii libgstreamer-plugins-good1.0-dev 1.20.3-0ubuntu1.1 amd64 GStreamer development files for libraries from the “good” set
ii libgstreamer1.0-0:amd64 1.20.3-0ubuntu1 amd64 Core GStreamer libraries and elements
ii libgstreamer1.0-dev:amd64 1.20.3-0ubuntu1 amd64 GStreamer core development files
ii libqt5gstreamer-1.0-0:amd64 1.2.0-5.1ubuntu0.1 amd64 C++ bindings library for GStreamer with a Qt-style API - Qt 5 build

Thank you for any thread. Do I need downgrade all the libgstreamer-related tools?

rtspclientsink element is provided by libgstrtspserver-1.0-0 that seems not installed in your case. Try:

sudo apt install libgstrtspserver-1.0-0 libgstrtspserver-1.0-dev

Thank you. But I got a bad luck.
sudo apt install libgstrtspserver-1.0-0 libgstrtspserver-1.0-dev
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
libgstrtspserver-1.0-0 is already the newest version (1.20.1-1).
libgstrtspserver-1.0-dev is already the newest version (1.20.1-1).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

Ok, carefully re-reading your original post, it seems the plugin lib is available but fails to find symbol. I’ve seen such error with lib-gst-rtsp-server being built from a higher version than installed gstreamer. Though, if it is just installed from apt packages, it should be ok. What gives:

ldd /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstrtspclientsink.so

rm ~/.cache/gstreamer-1.0/registry.*.bin
gst-inspect-1.0 -b

Thanks again. And I reinstalled almost everything. :sob:

apt-get install --reinstall libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

apt install --reinstall libgstrtspserver-1.0-0 libgstrtspserver-1.0-dev

apt install --reinstall gstreamer1.0-rtsp

And got
1.
ldd /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrtspclientsink.so
linux-vdso.so.1 (0x00007ffc269d1000)
libgstrtspserver-1.0.so.0 => /usr/local/lib/libgstrtspserver-1.0.so.0 (0x00007c33bd337000)
libgstrtsp-1.0.so.0 => /lib/x86_64-linux-gnu/libgstrtsp-1.0.so.0 (0x00007c33bd30e000)
libgstsdp-1.0.so.0 => /lib/x86_64-linux-gnu/libgstsdp-1.0.so.0 (0x00007c33bd2f4000)
libgstreamer-1.0.so.0 => /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 (0x00007c33bd1a3000)
libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007c33bcfc9000)
libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007c33bcf67000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007c33bce2d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007c33bcc00000)
libgstrtp-1.0.so.0 => /lib/x86_64-linux-gnu/libgstrtp-1.0.so.0 (0x00007c33bcbcf000)
libgstnet-1.0.so.0 => /lib/x86_64-linux-gnu/libgstnet-1.0.so.0 (0x00007c33bcbb4000)
libgstapp-1.0.so.0 => /lib/x86_64-linux-gnu/libgstapp-1.0.so.0 (0x00007c33bcb9e000)
libgstbase-1.0.so.0 => /lib/x86_64-linux-gnu/libgstbase-1.0.so.0 (0x00007c33bcb19000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007c33bca32000)
libgstpbutils-1.0.so.0 => /lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0 (0x00007c33bc9ee000)
libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007c33bc9e7000)
libunwind.so.8 => /lib/x86_64-linux-gnu/libunwind.so.8 (0x00007c33bc9cc000)
libdw.so.1 => /lib/x86_64-linux-gnu/libdw.so.1 (0x00007c33bc920000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007c33bc904000)
libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007c33bc8c0000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007c33bc894000)
libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007c33bc887000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007c33bc811000)
/lib64/ld-linux-x86-64.so.2 (0x00007c33bd3c6000)
libgstvideo-1.0.so.0 => /lib/x86_64-linux-gnu/libgstvideo-1.0.so.0 (0x00007c33bc74a000)
libgstaudio-1.0.so.0 => /lib/x86_64-linux-gnu/libgstaudio-1.0.so.0 (0x00007c33bc6c8000)
libgsttag-1.0.so.0 => /lib/x86_64-linux-gnu/libgsttag-1.0.so.0 (0x00007c33bc686000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007c33bc65b000)
libelf.so.1 => /lib/x86_64-linux-gnu/libelf.so.1 (0x00007c33bc63d000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007c33bc62a000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007c33bc5f1000)
libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007c33bc55a000)
liborc-0.4.so.0 => /lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007c33bc4d5000)

2.gst-inspect-1.0 -b

(gst-plugin-scanner:31175): GStreamer-WARNING **: 21:16:42.177: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrtspclientsink.so’: /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrtspclientsink.so: undefined symbol: gst_rtsp_stream_set_multicast_iface
Blacklisted files:
libgstmsdk.so
libgstrtspclientsink.so

Total count: 2 blacklisted files

Seems that you have a custom version of libgstrtspserver-1.0 with libs installed in /usr/local/lib/ directory and this one is first found by ld.
You may try to move it away from any standard path (/usr/local/lib/, /usr/lib/, /lib/x86_64-linux-gnu, /lib, …) or any path listed in $LD_LIBRARY_PATH.

Not sure for your case, though I think that Ubuntu package version would be installed in /lib/x86_64-linux-gnu/, so if it’s there you may also force to use it with:

LD_PRELOAD=/lib/x86_64-linux-gnu/libgstrtspserver-1.0.so.0 gst-inspect-1.0 rtspclientsink