Skip to content
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 server not working #4

Open
SuperElectron opened this issue Sep 21, 2020 · 0 comments
Open

rtsp server not working #4

SuperElectron opened this issue Sep 21, 2020 · 0 comments

Comments

@SuperElectron
Copy link

Hi there,
Can you share the commands you used to get this running? Thanks in advance.


  • i copied your code into a file called utils/rtsp-server.py
  • i ran the code with this command in terminal # 1

$ python3 pyrtsp.py

utils/rtsp-server.py:22: PyGIWarning: GstVideo was imported without specifying a version first. Use gi.require_version('GstVideo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gst, GstVideo, GstRtspServer
utils/rtsp-server.py:22: PyGIWarning: GstRtspServer was imported without specifying a version first. Use gi.require_version('GstRtspServer', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gst, GstVideo, GstRtspServer
stream ready at rtsp://127.0.0.1:8554/test
  • in terminal # 2 I ran this command

$ gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! fakesink

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading.
Additional debug info:
gstrtspsrc.c(5829): gst_rtspsrc_setup_auth (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
No supported authentication protocol was found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant