最佳方法来访问和修改OBS用户的视频和音频流是什么?

huangapple go评论91阅读模式
英文:

Best approach to access and modify video and audio streams of an OBS user

问题

我正在进行一个项目,需要实时访问和修改OBS用户的视频和音频流。

目前,我已经建立了一个系统,其中OBS用户将他们的流发送到一个RTMP服务器。从那里,我访问帧并根据需要进行处理。但我不能不考虑这是否是实现我的目标的一种低效方式。

是否有更好的方法可以直接访问OBS用户的视频和音频流,而不依赖于RTMP服务器?我希望找到一种更直接和高效的方法来进行实时流处理。

如果有任何见解或代码示例,将不胜感激。我的主要编程语言是Python,但如果它们提供更优雅的解决方案,我也愿意探索其他选项。提前感谢!

英文:

I'm working on a project where I need to access and modify the video and audio streams of an OBS user in real-time.

Currently, I have set up a system where the OBS user sends their stream to an RTMP server. From there, I access the frames and process them as needed. However, I can't help but think that this is an inefficient way to achieve my goal.

Is there a better approach to directly access the video and audio streams of an OBS user without relying on an RTMP server? I would like to find a more direct and efficient method for real-time stream manipulation.

Any insights or code examples would be greatly appreciated. My primary programming language is Python, but I'm open to exploring other options if they provide a more elegant solution. Thanks in advance!

答案1

得分: 1

以下是翻译好的部分:

NDI

NDI 是一种用于在高带宽网络上进行低延迟实时视频传输的协议,如局域网。OBS有一个NDI插件。如果您使用NDI实现解决方案,那么它将与除OBS之外的所有其他软件一起工作。

OBS插件

您可以制作自己的OBS插件

使用FFmpeg的自定义输出

在高级选项下使用录制选项,您可以为FFmpeg设置自定义命令行。从那里,您可以将视频发送到其他位置(如果需要)。

英文:

Without knowing more specifics about your project, there are a few possible options:

NDI

NDI is a protocol for low latency realtime video over high bandwidth networks, like LANs. There is an NDI plugin for OBS. If you implement your solution with NDI, then it will work with all the other software beyond just OBS.

OBS Plugin

You can make your own OBS plugin.

Custom Output with FFmpeg

Using recording options under advanced, you can set a custom command line for FFmpeg. From there, you can send your video elsewhere if you want.

huangapple
  • 本文由 发表于 2023年7月18日 07:42:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76708718.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定