GstRtspServer not found in anaconda environment

Hi!

I’m trying to create a RSTP server using the Gstreamer Gst Python library in conda environment with the Jetson Xavier AGX, Jetpack 4.6, L4t 32.6.1, GStreamer 1.14.5, conda 23.1.0. It complains about the GstRtspServer that is not found.

Traceback (most recent call last):
  File "/media/ubuntu/Advantec/s3ms_maestro_tensorrt/run.py", line 1, in <module>
    from Maestro import Maestro
  File "/media/ubuntu/Advantec/s3ms_maestro_tensorrt/Maestro.py", line 31, in <module>
    from RtspStreamer        import RTSP_Streamer
  File "/media/ubuntu/Advantec/s3ms_maestro_tensorrt/RtspStreamer.py", line 17, in <module>
    gi.require_version('GstRtspServer', '1.0')
  File "/media/ubuntu/Advantec/miniconda3/envs/s3ms_jetson_env/lib/python3.9/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GstRtspServer not available

The GStreamer RTSP Server is missing:

(s3ms_jetson_env) ubuntu@ubuntu:/media/ubuntu/Advantec/s3ms_maestro_tensorrt$ conda list | grep gst
gst-plugins-bad 1.22.0 h2f05ab0_0 conda-forge
gst-plugins-base 1.22.0 h8a62080_0 conda-forge
gst-plugins-good 1.22.0 hf363d5f_0 conda-forge
gst-plugins-ugly 1.22.0 h5356407_2 conda-forge
gstreamer 1.22.0 h1f26242_0 conda-forge
gstreamer-orc 0.4.33 h4e544f5_0 conda-forge

But how to do it in conda environment?

Hi,
We don’t have experience in conda so may not be able to provide the answer. Would see if other users can share experience.

The following inofrmation may help:
We have the python samples in DeepStream SDK:
https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/master/apps/deepstream-rtsp-in-rtsp-out
https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/master/apps/deepstream-test1-rtsp-out
The sample demonstrates setting up RTSP server. You may refer to the samples.

And for C programming, we have the steps in Jetson Nano FAQ

Q: Is there any example of running RTSP streaming?

We need to install libgstrtspserver-1.0 for building C sample. Probably it has to install the same in conda.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.