最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

MediaStream to RTMP in JavaScript - Stack Overflow

programmeradmin1浏览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.

发布评论

评论列表(0)

  1. 暂无评论