如何在C#中将图像叠加或叠加到视频上 [英] How to Overlay or Superimpose an Image onto a Video in C#

查看:148
本文介绍了如何在C#中将图像叠加或叠加到视频上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试弄清楚如何在Visual C#中将图像叠加在(保存的文件)视频上,然后重新保存它。在过去的四个小时里,我一直在试着这样做,一直到处寻找,所以任何帮助都会非常感激。

I'm trying to figure out how to overlay an image over a (saved file) video in Visual C#, and then resave it. I've been ripping my hair out trying to do this for the past four hours, looking everywhere, so any help would be hugely appreciated.

推荐答案

DirectShow.NET是DirectShow的一个包装器,它是[上一代] MS多媒体API。 API本身更适合本机开发,但.NET包装器非常流行且功能强大。

DirectShow.NET is a wrapper over DirectShow, a [previous generation] MS Multimedia API. The API itself is better suitable for native development, however .NET wrapper is pretty popular and powerful.

DirectShow.NET样本包括:


样本\Capture\DxLogo
----------------------一个示例应用程序,显示如何在数据流上叠加徽标。它使用捕获设备作为视频
源,并将结果输出到文件。

Samples\Capture\DxLogo ---------------------- A sample application showing how to superimpose a logo on a data stream. It uses a capture device for the video source, and outputs the result to a file.

Samples\Players \DxText
- --------------------一个示例应用程序,显示如何在数据流上叠加文本字符串。从avi文件中读取流。

Samples\Players\DxText ---------------------- A sample application showing how to superimpose text strings on a datastream. The stream is read from an avi file.

这篇关于如何在C#中将图像叠加或叠加到视频上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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