M
M
Maatthew Patell2016-04-27 17:45:44
linux
Maatthew Patell, 2016-04-27 17:45:44

What is the correct way to organize rtsp streaming through debian server?

There is a computer on debian how to broadcast video stream(s) satisfying the trail. conditions:
1. Organize the broadcast on the server, knowing the address of the stream (ip note 178.15.56.78:554)
2. The return must be through your local ip. Note. 192.168.0.15. For multiple broadcasts, you need to give to one ip with different ports.
3. At the same time, you need to take into account what will happen if 100 people watch at once.
Will the upload take 200 Mbps with 100 people online if the camera stream is 2 Mbps (if yes, how to avoid this) ???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Udovichenko, 2016-04-28
@Matthew_Patell

1. You need a media server that can take RTSP pull and send it back the same way. The list of the most suitable ones is in this answer .
2. Why such a requirement - different ports? Usually early broadcasts are separated at the level of different URLs. For example rtsp://server.ip:554/live/stream1 , rtsp://server.ip:554/live/stream2 etc.
3. A little more - above correctly said about the overhead during transmission. Again, we subtract incoming streams from the total bandwidth - there is only one channel. That is, according to the facts, there will be not 200, but 180-190 simultaneous connections.

A
Alexey Cheremisin, 2016-04-27
@leahch

I recommend to take a closer look at the rtmp module for nginx https://github.com/arut/nginx-rtmp-module
For questions.
1) is this the address of the stream from the camera?
2) what does it mean through your local ip? How do you imagine this? Or do you need to publish the stream from the camera on the server from the local ip? Then take ffmpeg and publish to rtmp nginx.
3) yes, we multiply the camera flow by the number of viewers plus 8-10% for the transport protocol. There are only two options to avoid, if in the local network we use malticast, but we also need to configure the switches. If on the Internet, then only by limiting the number of simultaneous connections, and look for a hosting that will not ask you to go back (many hostings still have a footnote about multimedia broadcasting, read the offer agreement), or go to colocation in some data center.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question