Question / Help Stream multiple RTMP Network Cameras

Nck80

New Member
Hello,
I am trying to run OBS in order to stream multiple network (IP) cameras and produce livestream feed on each camera. I followed correctly all the guides i found on the Web to build a streaming server with Nginx and RTMP module support on a VPS running CentOS 7. I was able to stream 1-2 cameras with 1920x1080 resolution at about 512-1024Kbps bandwidth for each one, with different applications in nginx.conf that produce the m3u8 files in different directories, but the problem is that i have to run multiple instances of OBS in order to stream more cameras, so i am running out of CPU power.

What i am seeking is a permanent solution with low CPU consumption, because i am planning to stream over 30-40 cameras at the moment, while in the near future to stream even more. I am on a VPS with huge network availability, but limited CPU resources. So I don't know if it is possible to stream multiple applications using one instance of OBS within a single stream. Although i found a guide here https://obsproject.com/forum/resources/multi-streaming-server.376/ it doesn't help much because there is only support for 3rd party streaming servers like Facebook, Youtube, Twitch etc. What i want is to stream those network cameras in my own server.

The format of the RTSP streams are rtsp://username:password@hostname:port but i couldn't find much information. Any help would be appreciated. Thanks in advance.
 

Nck80

New Member
Ok, if i understand correctly all the work has to be done through ffmpeg, but i don't know the commands, can you explain me the process? OBS will be used for the stream and all the other commands with ffmpeg, correct? I am little newbie to all those tools. Thanks
 
Top