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

Multi-channel / Multi-RTSP streaming #121

Open
xueershelllin opened this issue Nov 4, 2021 · 6 comments
Open

Multi-channel / Multi-RTSP streaming #121

xueershelllin opened this issue Nov 4, 2021 · 6 comments

Comments

@xueershelllin
Copy link

Hello all,

I am using RPOS as a video stream proxy which takes in RTSP stream and output it as a onvif device to the network.

At the moment, I succeeded with one RTSP stream. However, my application requires me to stream multiple channels in one RPOS instance. Say, I have three cameras, each of which has a RTSP stream. What/How should I configure to make the js node to take in all three RTSP url and appear in the ONVIF Device Manager as one device with three video channels?

I attached a screenshot of what I am trying to achieve. Hope that helps explaining what I want to do.

Thanks in advance!
Multi channels in ODM

@RogerHardiman
Copy link
Collaborator

I understand what you are trying to do.

Unfortunately with RPOS this is not possible with config file settings as RPOS was written to tell ONVIF users that it has only 1 camera

It will require code changes to RPOS to the ONVIF messages that tell viewers (like ODM) how many Video Sources there are, and then needs code changes to have additional Profiles for each video Source and needs changes to the GetJPEGSnapshot and GetStreamUri functions to return the correct addresses from a list in the config file.

It is about 3 days of programming work to write and test this which is more than I can give in my spare time.

Roger

@xueershelllin
Copy link
Author

It is about 3 days of programming work to write and test this which is more than I can give in my spare time.

Thanks for replying. May I please have a quote if you were to make it happen?

@RogerHardiman
Copy link
Collaborator

send me an email to
imageimage

I can make RPOS proxy as many RTSP streams as you want via the ONVIF XML messages but in the real world CCTV software expects a maximum of 16 streams per ONVIF Device (eg a 16 channel Bosch or Pelco analogue encoder)
So you may have to run a few copies of RPOS on different ports if needed.

@cdaher78
Copy link

cdaher78 commented Nov 25, 2021

I'm very interested on this development.

In general on IP CCTV world, basic camears has 2 independent video streams, usually for viewing (low resolution, high framerate) and recording (high resolution, low framerate) givin' us great flexibility on VMS settings. Maybe adding another ONVIF stream profile, and let us set Resolution, Framerate, Bitrate Target, Bitrate Mode (CBR, VBR) parameters for both stream profiles will put this project on a stellar level.

@mrdown11
Copy link

Hi, I'm very interested in this functionality as well. I am using rpos on a stereoPi (with 2 cameras). Right now I've made a trigger to restart the rtsp server for the second camera, but this has some issues with reconnecting sometimes, and it does not allow simultanious streaming. I'm also worried for high resolutions the pi CM3 is not powerful enough for multiple streams, but the stereopi v2 with CM4 is on the way.

@VCTGomes
Copy link

VCTGomes commented Aug 1, 2023

send me an email to imageimage

I can make RPOS proxy as many RTSP streams as you want via the ONVIF XML messages but in the real world CCTV software expects a maximum of 16 streams per ONVIF Device (eg a 16 channel Bosch or Pelco analogue encoder) So you may have to run a few copies of RPOS on different ports if needed.

It'd be really cool to be implemented and having an extra streaming with low resolutions. My NVRs uses it to provide multiple cameras view:

image

On this example, I'm on multi camera viewer, so my NVR chooses to use
low resolution streaming, how RPOS doesn't delivers it, the image is black.

Same happens on my NVR app, where it delivers low res to save mobile data

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

5 participants