S
S
Stanislav2018-07-19 20:22:48
fmpeg
Stanislav, 2018-07-19 20:22:48

How to output rtmp stream to html?

Good afternoon!
I have a win10 machine with nginx+rtmp module, ffmpeg, and a Gige camera. The idea is to broadcast in real time (or as close as possible) video from a gigabit camera.
With the receipt and compression of the picture with gige, everything is fine.
The driver rolls onto the eBUS network interface and is recognized by ffmpeg as a direct show device.
Next, the picture is compressed by ffmpeg in h264 encoding, put into flv and sent via rtmp to the nginx server.
Video from the server can be obtained using ffplay or vlc.
But the task is to display a picture from the camera on the web page of the local nginx server.
And here comes the problem. flv is only supported by flash players and just the videovj player is not enough, it must be used in conjunction with the videojs-flash module, a bunch of which throws out the error "No compatible source was found for this media".
Questions: Is it possible to publish a video stream on a web page? What can you advise and has anyone had a similar experience?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
key don, 2018-07-19
@S_Stas

  1. If +10-15 seconds of delay is not critical, then switch to HLS (nginx with the module can, and it seems ffmpeg in server mode), use any html5 player that supports it (videojs, clappr).
  2. Look towards webrtc (potentially problematic and gemmorno).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question