V
V
Vadim Pirx2018-12-13 19:08:09
Nginx
Vadim Pirx, 2018-12-13 19:08:09

How to play the broadcast from the camera on the site?

I take the stream from the rtsp camera like
this ipcam(rtsp) - ubuntu(nginx + ffmpeg + nginx-rtmp-module) - www(rtmp)

nginx.conf
...
rtmp{
  application cam1 {
   live on;
   exec_static ffmpeg -i rtsp://login:[email protected]<ip>:554 -c copy -f flv rtmp://<ip>/cam1/stream;
}
}

in VLC, the stream plays fine rtmp:///cam1/stream
, I don’t understand how to display it on the site.
read a lot of articles about jwplayer etc. they are all paid.
is there any free solution?
for example html5 and tag
and how to properly configure nginx for stream return?
tried hls , several .ts files are created and stream.m3u8 fed it to the tag it says "No video found in supported format and MIME type." maybe you didn't feed it right?
<video width="600" height="300" controls="1" autoplay="1" src="rtmp://<ip>/hls"></video>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question