-
Notifications
You must be signed in to change notification settings - Fork 174
How to Setup RTSP IP Camera video stream
Speed camera can use an RTSP video stream from an IP camera using the config.py WEBCAM_SRC setting. When using an RTSP webcam the video stream image size is automatically calculated from the stream so you do NOT have adjust the WEBCAM_WIDTH or WEBCAM_HEIGHT settings since they will be ignored if RTSP camera source is used.
Depending on the model of Raspberry PI and the Network bandwidth you should start with a stream resolution of 320x240 if possible and increase resolution as required until speed camera response is affected.
To set the video source to an rtsp IP camera edit the config.py file using nano
WEBCAM = True
WEBCAM_SRC = "rtsp://192.168.1.101/RtspTranslator.12/camera"
Above is just an example. Adjust the video stream rtsp:// setting to the IP address and connection string for your IP camera per documentation.
Examples from Tony Reinke treinke@gmail.com
I have a Raspberry Pi 4 with 4gb of ram and I was able to push it to 1280x720 with consistent video. If someone asks about authentication, the pattern is
WEBCAM_SRC = "rtsp://username:password@ipaddress"
In my case of using HIKVision cameras
WEBCAM_SRC = "rtsp://admin:mypassword@192.168.1.100:554/Streaming/Channels/101/"
Sub stream for going down to 640x480, 640x360, or 320x240 at
WEBCAM_SRC = "rtsp://admin:mypassword@192.168.1.100:554/Streaming/Channels/102/"
Wiki Home
Description, Issues, Features
How to Install or Upgrade
How to Run
How to Calibrate
Change Settings and Plugins
How to Tune Motion Tracking
Setup RTSP Camera
rclone Remote Storage File Transfer
How to View Speed Data
How to Generate Graphs
How to Run speed-search.py
How to Start on Boot
How to use run.sh
watch-app.sh Remote config
How to Manage Sqlite3 Database
How to move speed-camera to ext drive
How to use OPENALPR with speed camera
Github Repo