使用WebRTC/GetUserMedia流作为FFMPEG的输入 [英] Use WebRTC/GetUserMedia stream as input for FFMPEG

查看:408
本文介绍了使用WebRTC/GetUserMedia流作为FFMPEG的输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用gerUserMedia录制屏幕,并获取我的视频&音频流.然后,我使用WebRTC在另一台设备上发送/接收此流.有什么办法可以通过某种方式将传入的Webrtc流用作ffmpeg的输入吗?

I'm recording my screen with gerUserMedia and get my video & audio stream. I'm then using WebRTC to send/receive this stream on another device. Is there any way I can then use this incoming webrtc stream as an input for ffmpeg by converting it somehow?

我正在使用的所有内容都在javascript中.

Everything I'm working with is in javascript.

谢谢.

推荐答案

ffmpeg还没有WebRTC支持,但是您知道我还有其他一些选择.

ffmpeg doesn't have WebRTC support (yet) but you have a couple other options that I know of.

  • Pion WebRTC, here is an example of saving video to disk
  • Amazon Kinesis has an Open Source Pure C WebRTC Client here
  • Python implementation of WebRTC aiortc
  • GStreamer has webrtcbin

这篇关于使用WebRTC/GetUserMedia流作为FFMPEG的输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆