Closed enboig closed 1 year ago
What version of Raspberry Pi OS are you using, I recently tried to get RPOS working on Bullseye and got similar errors to those you have reported. I then switched to Buster and it works ok.
I am pretty sure it is Bullseye, I will check later
I reinstalled Buster, gstreamer from apt, and continue failing:
rtspServer: ./python/gst-rtsp-launch.py:60: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead
self.mainloop = GObject.MainLoop()
./python/gst-rtsp-launch.py:78: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
GObject.threads_init()
INFO:root:StreamServer initialized
rtspServer: INFO:root:Video settings loaded from v4l2ctl.json
rtspServer: DEBUG:root:StreamServer.launch
INFO:root:USB camera ignored most of the parameters
DEBUG:root:( v4l2src is-live=true device=/dev/video0 brightness=50 contrast=50 saturation=50 ! queue ! jpegdec ! clockoverlay ! queue ! x264enc tune=zerolatency ! h264parse ! rtph264pay name=pay0 pt=96 )
rtspServer: INFO:root:Starting service on port 8554 at url /h264
rtspServer: INFO:root:Running RTSP Server
What version of Raspberry Pi OS are you using, I recently tried to get RPOS working on Bullseye and got similar errors to those you have reported. I then switched to Buster and it works ok.
Could you paste your .bash_history? I may do something different from you because it isn't working in my case
I have 2 Pis running Buster and PI HD cameras, I use the gsteamer RTSP source. These cameras have been running for some time as part of my house security. The record to a Network Video Recorder, connected via ONVIF. The RTSP output is 1920x1080 at 15 FPS. I used a 3rd PI recently using BULLSEYE and couldn't get it it to work. On Bullseye the camera software uses Libcamera, thus the gst-rtsp-launch.py call to rpicamsrc fails. Not using a USB camera myself, my guess is there is a similar issue with v4l2src in gst-rtsp-launch not having the correct calls or libraries.
enboig Sorry about the delay in getting back to you. I have now installed RPOS in a PI 4 running Bullseye, with a USB webcam. There are a number of issues installing GSTREAMER and I am getting errors associated with gi.repository call in the gst-rtsp-launch.py. I am now stuck, but it does look as if there are a number of changes that are needed before RPOS is ready for bullseye. If I have time I will try an install of Buster.
enboig Finally installed Buster and again ran into some issues, but the solution for me was to change the gst-rtsp-launch.sh file to remove all the bash code except for the line /usr/bin/python ./python/gst-rtsp-launch.py $@ -v. This assumes you are only running pytohn 2.7 and not python 3 (which fails similar to what you experienced). So I know think the issue with Bullseye lines around the fact it uses Python 3 by default. Hope this helps
It would help, but I will buy a second hand ip camera which already has ONVIF.
Thanks, I supose somebody with better python knowledge may upgrade the code.
After installation, I can open the html interface to configure the camera, but cannot get any stream using vlc at
rtsp://admin:******@192.168.1.111:8554
My log shows some errors: