Hi,
I’m trying to use deepstream_test_3.py with an RTSP stream. The script is running in a docker container built using the Dockerfile below:
FROM nvcr.io/nvidia/deepstream:4.0.2-19.12-devel
ADD python_release_bind /root/deepstream_sdk_v4.0.2_x86_64/sources/python
RUN ls /app
RUN apt-get update -y
RUN apt-get install python-gi-dev -y
RUN export GST_LIBS="-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0"
RUN export GST_CFLAGS="-pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include"
RUN apt-get install git -y
RUN cd /app/panel_factory/research/deepstream
RUN git clone https://github.com/GStreamer/gst-python.git
RUN cd gst-python && \
git checkout 1a8f48a && \
apt-get install autoconf automake libtool python-dev python3-dev libgstreamer1.0-dev -y && \
./autogen.sh PYTHON=python3 && \
./configure PYTHON=python3 && \
make &&\
make install
RUN apt-get install nano
RUN apt-get install python3-pip -y
RUN pip3 install opencv-python
EXPOSE 8554
EXPOSE 554
RUN ls root/deepstream_sdk_v4.0.2_x86_64/sources
RUN ls root/deepstream_sdk_v4.0.2_x86_64/sources/python
The container is started using docker-compose:
version: "3.7"
services:
deepstream_test:
image: test_deepstream_build:latest
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.Xauthority:/root/.Xauthority:rw
environment:
- DISPLAY=:1
- QT_X11_NO_MITSHM=1
- NVIDIA_VISIBLE_DEVICES=1
- RTSP_LINK=[link]
network_mode: host
Within the container, in the deepstream_test3 folder I use from the command line:
python3 deepstream_test_3.py $RTSP_LINK
I get the following output:
Creating streamux
Creating source_bin 0
Creating source bin
source-bin-00
Creating Pgie
Creating tiler
Creating nvvidconv
Creating nvosd
Creating EGLSink
Adding elements to Pipeline
Linking elements in the Pipeline
Now playing...
1 : rtsp://admin:Hik.1234567890@[IP]
Starting pipeline
Outside of the container I used the command:
xhost +
As in the instructions here: DeepStream | NVIDIA NGC
Has anyone encountered this issue? Thanks.