MediaStream to RTMP in JavaScript - Stack Overflow

read stream from webcam "MediaStream"ingest the mediaStream to RTMP serverbasically need an

  • 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745070866a4609536.html

相关推荐

  • MediaStream to RTMP in JavaScript - Stack Overflow

    read stream from webcam "MediaStream"ingest the mediaStream to RTMP serverbasically need an

    18小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信