kyriesent / node-rtsp-stream

Stream any RTSP stream and output to websocket for consumption by jsmpeg (https://github.com/phoboslab/jsmpeg). HTML5 streaming video! Requires ffmpeg.
MIT License
451 stars 166 forks source link

How to stream multiple rtsp in the same port #56

Closed spksoft closed 4 years ago

spksoft commented 4 years ago

How to stream multiple rtsp in the same port ?

I have to stream multiple RTSP link from multiple RTSP and I have many client to view diferrent and multiple rtsp sametime. Is this lib support this case ?

spksoft commented 4 years ago

@ivanantunes I think you cannot set a streamUrl as a array of string because from the mpeg1muxer.js file line 11 there does not extract any array. From the code I sure that streamUrl must be string only.

kyriesent commented 4 years ago

@spksoft This is correct. Each RTSP stream will need its own port.

If there is enough demand for this I'm open to considering adding multiple streams/port as a feature. However, it might cause some breaking interface changes so it'd need to be a compelling case.

Dipenduroy commented 3 years ago

@kyriesent Can you add the multiple rtsp support in the same port? I am using https://github.com/k-yle/rtsp-relay#usage-with-many-cameras for the same functionality, but i am unable to get best video quality in it compared to your node-rtsp-stream library. I tried the suggested options in the library but it didn't improve the video quality. Do we have any options to get multiple rtsp in the same port with better video quality?