jkjung-avt / tensorrt_demos

TensorRT MODNet, YOLOv4, YOLOv3, SSD, MTCNN, and GoogLeNet
https://jkjung-avt.github.io/
MIT License
1.75k stars 547 forks source link

Issue with rtsp stream #478

Closed basitraza1214 closed 3 years ago

basitraza1214 commented 3 years ago

I am facing the following error while accessing the RTSP stream from a camera that supports the RTSP stream. I am able to access the stream in vlc as well as in the shell using GStreamer.

This is my input:

python3 trt_yolo.py --rtsp "rtsp://admin:admin@123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0" --m yolov4-custom-416 --category_num 1

This the shell output:

[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (711) open OpenCV | GStreamer warning: Error opening bin: syntax error [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created WARNING:root:Camera: starting while cap is not opened! ERROR: failed to open camera!

jkjung-avt commented 3 years ago

Reference:

And at least make sure:

jkjung-avt commented 3 years ago

Closing due to no further response.