Remotion 可以用于直播吗?
Remotion 不是为广播设计的。它的使用场景是渲染固定长度的视频,其内容从头到尾是确定的。
🌐 Remotion is not designed for broadcasting. It's use case is to render fixed-length videos which content is deterministic from start to end.
直播需要不同的方法。内容事先未知,通常需要能够对事件作出反应,视频长度不固定,并且广播对性能极为敏感,所有帧都需要实时渲染。
🌐 Live streaming requires a different approach. Content is not known in advance, being able to react to events is often necessary, the video is not fixed-length and broadcasting is extremely performance sensitive, with all frames needing to be rendered in real-time.
基于浏览器 API 的 Remotion 声明式方法不适合此用例。
🌐 Remotion declarative approach based on browser APIs is not suitable for this use case.
对于希望在直播中利用网络技术的主播,我们建议他们构建一个具有透明背景的网页应用,并将其作为浏览器来源添加到 OBS 中。
🌐 For streamers wanting to leverage web technologies in their livestream, we recommend that they build a web app with transparent background and add it as a browser source to OBS.
你可以使用 Remotion 为 OBS 创建刺针过渡效果,参见这里的示例。
🌐 You may create stinger transitions for OBS with Remotion, see an example here.
如果你想使用 React 编程创建直播流,我们推荐来自我们朋友 Software Mansion 的 Live Compositor。
🌐 If you want to create live streams programmatically with React, we recommend Live Compositor from our friends at Software Mansion.