Answer the question
In order to leave comments, you need to log in
How to send rtmp stream from browser?
We need to make a proof of concept product. You need to make a server that accepts streaming video and saves it as a file on the server.
The bottom line is that the server should not receive a file, but a stream and save it as a file on the server, while the minimum requirement is two separate streams from two devices into two files.
There is
1) USB camera + Laptop + Google Chrome
2) A page that asks a person for access to the camera and microphone and receives a video + audio stream
3) A server on a node that receives this stream from the browser and saves it to the Nagoogle file on the server
, which the easiest way is to accept the media stream as RTMP using the nginx-rtmp module. The question remains, how to transfer the rtmp stream from the browser
Answer the question
In order to leave comments, you need to log in
Why do you need an rtmp stream? I didn't get it in the assignment. Write to a file - nginx-rtmp can.
To send via rtmp, you need to install ffmpeg, and then use the exec directive for nginx-rtmp, in which you write a command for ffmpeg that sends rtmp to the right place.
Or do you just need to send rtmp to nginx? Then why from the browser? Is this a fundamental condition? If so, then you have to write a browser application that will request access to devices, choose the boring one from them, and that's it. If you need to do this not from the browser, then everything can be solved easier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question