Comments (1)
The correct ONVIF way is to have one ONVIF server (one instance running) and then list all the available video streams in the GetProfiles ONVIF message.
There is a 2 step process in ONVIF
Step 1: Call GetProfiles. This returns a long list of available video streams.
Each Profile has a Name, a Unique UUID Token and details about the image size and video codec.
This would list all your available streams. Your CCTV software should present you with the list.
Step 2: Call GetStreamURI with the unique Token from GetProfiles to get the RTSP address
ONVIF viewing software does this Bosch do this with their 4 input ONVIF IP Encoder (4 video sources, 1 IP address, 1 ONVIF server instance)
So for your proxy situation, you could modify RPOS to have a list of streams in GetProfiles (each with a unique token) and then to check the token in GetStreamURI to deliver a RTSP address for each stream
For Pi performance, if you could return the actual RTSP address of the camera then the Pi has very little to do other than some ONVIF messages to supply the RTSP address.
If the Pi was to be a transcoding RTSP proxy then you need to think about CPU power (and GPU offload) (transcoders need to decompress the H264 back to video frames, then rescale the image to a new size and then re-compress with a H264 encoder).
If the RTSP proxy just gets video from the camera and then re-delivers it to your ONVIF viewing application then you just need to think about the ethernet port on the Pi. It is 10/100 (chained to the USB2 bus).
You need to add up the bandwidth of the stream coming in and all the streams going out and make sure you are not near the bandwidth limit of the Pi (as you need to allow for large I-frame bursts)
So, RPOS can be made to do this.
Also note RPOS runs on any NodeJS platform. I run it on my Mac and Windows machines with alternative RTSP servers (ffserver).
from rpos.
Related Issues (20)
- Not getting any rtsp HOT 8
- Simple ONVIF server written in Python3 HOT 1
- When I deployed rpos on ubuntu, I was able to discover the device upon startup, but couldn't open the screen for adjusting the device ip HOT 1
- When there is Chinese in the soap body, Onvif Device Manager and wireshark will fail to parse it. HOT 1
- Get exception from sax.js in node_modules HOT 2
- Discovery uses default route rather than the route associated with the listening IP
- os
- Many outdated dependencies? 33 vulnerabilities (13 moderate, 15 high, 5 critical) HOT 1
- ONVIF to Visca Serial HOT 6
- h265 encoded gstreamer HOT 2
- Can't indeed start service HOT 1
- The demo video linked in the README is private HOT 1
- Big latency with usbcam HOT 2
- ONVIF doesn't work in hikvision DVR HOT 1
- Support for RPI Camera Module 3 HOT 6
- trying to run rpos in raspberry pi 4 HOT 20
- issue with RPI4 or compute module HOT 2
- Updating JPG stream
- Waveshare pan-tilt-hat on pi4 communication through onvif in frigate (hassio)
- For those suffering from ‘rU’ or 'gyp' error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpos.