W
W
Wasya UK2019-01-24 20:28:06
fmpeg
Wasya UK, 2019-01-24 20:28:06

What is the best way to broadcast video on Node?

It is necessary to transmit the broadcast of what is happening on the monitor through socket.io. Can I count all the pixels using robot.js and pass it as an array and then process it on the client, or is it better to use ffmpeg, get the image and pass it in a compressed format? I think that it will take a long time to read each pixel from the monitor, plus it will still take resources on the client to process an array of pixels in a photo and it will be difficult to broadcast a video from this, because I don’t rummage in this issue, but I also think that mastering ffmpeg will take a decent amount of time, because I only know how to cut frames from a photo on it. Which way would be more optimized and better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Savostin, 2019-01-26
@savostin

Yes, in ffmpeg everything is simple: captured and distributed . Here you can see the keys.
Somehow you can wrap it in Node.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question