如何流式传输到新的视频源? [英] How do I stream to a new video source?

查看:72
本文介绍了如何流式传输到新的视频源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的是修改现有的或创建新的视频源.我在Facetime和Google Hangouts上花费了很多时间,并希望在将视频放入任何一个应用程序之前对其进行修改.我看到这是2种方式中的1种.

What I'm looking to do is modify an existing or create a new video source. I spend a lot of time on Facetime and Google Hangouts and want to modify the video before it goes into either application. I see this happening 1 of 2 ways.

  1. 我的程序获取了初始视频源(我的USB网络摄像头),对其进行了修改,然后输出到可以从Facetime/环聊中选择的新视频源.

  1. My program takes the initial video source (my USB webcam), modifies it, then outputs to a new video source that I can select from Facetime/Hangouts.

我的程序就地修改了原始视频源.

My program modifies the original video source in place.

我计划进行的修改是能够放大,用静态图像替换视频,用我选择的内容分割屏幕视频以及播放音效.

The modifications I plan on doing are being able to zoom in, replace the video with a static image, split screen my video with something of my choosing, and be able to play sound effects.

我几乎可以用任何一种语言编写此代码,问题是我不知道从哪里开始.我进行的每一次搜索都完全偏离主题.我确定我最终会使用OpenCV,但是我所读过的所有内容只会将视频写入文件中.我需要将其写入新的流,以便在选择视频源"时显示我的应用程序(或者是否可以写入原始流).OpenCV能够做到这一点吗?还是有其他库可以做到这一点?(它们都在Mac上运行)

I'm capable of writing this in just about any language, the problem is that I don't have a clue where to begin. Every search I've performed has come up completely off topic. I'm sure I'll end up using OpenCV, but everything I've read only writes the video to a file. I need it to write to a new stream so that when I select Video Source, my application shows up (or if I can write to the original stream). Is OpenCV capable of doing that or are there other libraries that can accomplish this? (This is all running on a Mac)

推荐答案

这将取决于操作系统.您必须创建一个显示为新相机的OS界面,然后通过界面重定向真实相机.

This would be OS dependent. You'll have to create an OS interface that appears as a new camera and redirect the real camera through your interface.

您需要查看操作系统如何处理相机.
像SplitCam这样的产品做类似的事情.

You'll need to look at how your OS processed cameras.
Products like SplitCam do something similar.

这篇关于如何流式传输到新的视频源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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