MediaStream to RTMP in JavaScript - Stack Overflow

admin2025-04-19  0

  • read stream from webcam "MediaStream"
  • ingest the mediaStream to RTMP server
  • basically need an RTMP converter

or any other way to achieve the same broadcast video from webcam to youtube live.

any suggested JS libraries to achieve the second part of it?

  • read stream from webcam "MediaStream"
  • ingest the mediaStream to RTMP server
  • basically need an RTMP converter

or any other way to achieve the same broadcast video from webcam to youtube live.

any suggested JS libraries to achieve the second part of it?

Share edited May 25, 2020 at 6:02 PCB asked May 21, 2020 at 19:21 PCBPCB 7871 gold badge12 silver badges26 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3 +50

I have built a Node backend that takes the MediaStream from your webcam and converts it to RTMP with FFMPEG - which can then be ingested at Twitch or YouTube Live In my example, I am using api.video in the code to create live streams. You can try it out, and the code is on Github:

It is really lightweight (the demo is running on an AWS Micro instance). In the demo, you can adjust the size (dimensions and framerate) of the video - but as you increase the dimensions, you are more likely to hit uplink issues if your network is slow or has high latency.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745070868a283269.html

最新回复(0)