How to properly organise stream from multiple ip-cameras to website?

bekobod1

n3wb
Joined
Nov 2, 2020
Messages
1
Reaction score
0
Location
Tashkent
I am developing a web application in PHP (Laravel) that will be stored on a local server.
There are about 50 IP cameras (Dahua ipc-k42a).
All cameras are available locally.
Cameras also have an SDK. Truth not quite figured out how to integrate it to my web application.
There is an HTTP API for cameras. At the moment, using it, I take an mjpg stream from the camera to the site. This format turned out to be inconvenient to use, since when 2-3 users are connected at the same time, the video starts to hang terribly, besides, the video quality is lame.
As I understand it, there are several other solutions besides this:
  1. Broadcast the recording via rtsp stream, however, for this, as I understand it:
  • You need to use third-party services to convert the stream into a browser-friendly format.
  • All IP cameras must be globally accessible.
  1. Converting the rtsp stream directly on the server using the ffmpeg program. But, as I understand it, if the local machine, in which the conversion will be started, goes to reboot, then you will have to re-enter all the commands for conversion.
  2. Use the Flashphoner service, deploy a web call server in your virtual server, and through it broadcast the rtsp stream in the browser. It seems to me that the most convenient option, however, the service is paid, and it costs a lot of money, relative to the project budget)
Which of these solutions would you recommend to choose, or, if there are other options, you can also suggest.
I would be very grateful if there is a specialist on this topic who can advise (for a separate fee) on this topic.
Thanks for attention!
 
Top