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 3 Option - gstreamer issues #66

Open
ucfalmi opened this issue Mar 9, 2019 · 3 comments
Open

RTSP Server 3 Option - gstreamer issues #66

ucfalmi opened this issue Mar 9, 2019 · 3 comments

Comments

@ucfalmi
Copy link

ucfalmi commented Mar 9, 2019

Hi - I've worked through the install using a Raspbi Zero W with the NoIR camera module. My objective is to move away from flaky VLC streaming to something more elegant - I'm going to pick up the stream with SecuritySpy.

I'm not very experienced with this sort of thing, so excuse me if this is a dumb question. How can I fix this error in the python that refers to the get-rtsp-launch? I'm pretty confident that the install went OK, but this has me stumped.

The readme suggests that it's an option on the "RTSP Server" line but there are only comments for options 1 and 2, so I kind of assumed that it was 3.

pi@raspicam:~/rpos $ node rpos.js
Read IP address 192.168.0.134 from wlan0
Manufacturer : RPOS Raspberry Pi
Model : Model_PiZeroW_Revision_1.1
HardwareId : 
SerialNumber : 00000000fbfaae5f
FirmwareVersion : 2.0.4
Starting camera settings webserver on http://192.168.0.134:8081/
Binding DeviceService to http://192.168.0.134:8081/onvif/device_service
Binding MediaService to http://192.168.0.134:8081/onvif/media_service
Binding PTZService to http://192.168.0.134:8081/onvif/ptz_service
Binding ImagingService to http://192.168.0.134:8081/onvif/imaging_service
discovery_service started
device_service started
Starting Live555 rtsp server
media_service started
ptz_service started
imaging_service started
rtspServer: Traceback (most recent call last):

rtspServer:   File "./python/gst-rtsp-launch.py", line 44, in <module>
    import gi
ImportError: No module named gi

rtspServer exited with code: 1

EDIT: Just running through the install of this now: https://www.npmjs.com/package/gi
EDIT 2: Didn't make any difference to the error. But this is the snippet:

# --------------------------------------------------------------------------- # 
# Use gi to import GStreamer functionality
# --------------------------------------------------------------------------- # 
import gi
gi.require_version('Gst','1.0')
gi.require_version('GstRtspServer','1.0')
gi.require_version('GstVideo','1.0')
from gi.repository import GObject, Gst, Gio, GstVideo, GstRtspServer, GLib

from threading import Thread, Lock
cam_mutex = Lock()
# -------------------

@RogerHardiman
Copy link
Collaborator

The gstreamer work is RTSP Server option 3.
It was contributed by another developer and I have had it working. I recall there were lots of dependencies.

@johnnyxwan
Copy link
Contributor

johnnyxwan commented Jan 10, 2020

Not sure if you still need help. The README lacks this instruction. I hope this helps.
sudo apt-get install python-gi gir1.2-gst-plugins-base-1.0 gir1.2-gst-rtsp-server-1.0

@ucfalmi
Copy link
Author

ucfalmi commented Jan 10, 2020

Awesome, thanks @johnnyxwan - much appreciated.

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

3 participants