-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtsp source is not working #5
Comments
@barslan16
|
Thank you very much for your advice. I tried what you said. However, when I run the code below, I get an error. I'm writing the error and code below. python3 detect.py --tracker sort --videosrc rtsp://admin:1234@192.168.1.143/H264?ch=1&subtype=0 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! xvimagesink Error: Gstreamer pipeline: Warning: gst_parse_error: Delayed linking failed. (7): ./grammar.y(510): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: I would be glad if you could help. |
|
@barslan16 Is there an HDMI monitor connected ? And on which platform are you trying to run this demo ? |
@manoj7410 I am using rpi4 and coral, I could not run it when connected with hdmi, nor could I run it when connected via vnc player. |
Same problem here, i can get a feed with: gst-launch-1.0 rtspsrc location=rtsp://admin:password@10.8.0.4:554/videoinput_1:0/h264_2/media.stm ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! xvimagesink but following gives error: python3 detect.py --tracker sort --videosrc rtsp://admin:password@10.8.0.4:554/videoinput_1:0/h264_2/media.stm Warning: gst_parse_error: Delayed linking failed. (7): ./grammar.y(506): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Following works using laptop webcam: python3 detect.py --tracker sort |
Any help please???? |
try to remove the password auth. from the camera menu |
Tried without password, same error. Must be something in the pipeline that they build in the application that is broken because the following works: |
Quick note gst-launch-1.0 rtspsrc location="rtsp://admin:xxxxx@192.168.1.105:554/cam/realmonitor?channel=2&subtype=0" |
Can't believe still the same problem after months. Could someone from google fix it please? |
I'm looking into this and noticed that the video used for the two methods (invoked with parameters: --device and --stream) differ... and they differ from the original presumably borrowed by Google from pixabay. See http://salemdata.net/ai/coral/video_device_comparisons.html I think the complexity of gstreamer and video, in general, is intimidating, even for the people supporting the functionality of the coral chip. |
It works for me : python3 detect.py --videosrc "rtsp://192.168.120.58/ch01_sub.h264 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert" |
I have the same issue. I was able to use ffmpeg / vlc to view the stream with no issue:
I then tried the various gst-launch commands, for example:
Every time, no matter the options selected, I get the following error:
Reading through some forums is seem that on Debian there are some issues with non-free code for RTSP so the decision was made to pull it: Debian bug #982299 . Not sure it its related, but a lot of the tools I tried to use in testing this ran into issues because of RTSP being pulled (like in VLC on debian). Then I came across this old Stack overflow article so I tried it:
and it works great Based on that, here is how I fixed it. In gstreamers.py line 219, I updated it to
With that change you can use a password protected rtsp stream. Works with Wyze v3 camera running rtsp firmware and VLC running on Mac creating a rtsp stream. Needs to be tested more before creating a pull request with this change but it works on my Debian 11 server. |
Could you give a command line example of how to change video source to rtsp?
Although I tried many times, I could not run this command.
Thank you very much in advance, looking forward to your
I also add the error I got below.
The text was updated successfully, but these errors were encountered: