Bill Dekel
Bill Dekel

Reputation: 47

How to Overlay or Superimpose an Image onto a Video in 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.

Upvotes: 1

Views: 4412

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69734

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 samples include:

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 ---------------------- A sample application showing how to superimpose text strings on a datastream. The stream is read from an avi file.

Upvotes: 3

Related Questions