Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
/ VideoEffects Public archive

A implementation of the chroma key, saturation and zoom effect for Windows.Media.Effects and UWP.

License

Notifications You must be signed in to change notification settings

NickDarvey/VideoEffects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Effects

A implementation of the chroma key, saturation and zoom effect for Windows.Media.Effects and UWP.

Getting started

Right now, submodule them into your repo and add a project reference. If Windows Runtime components gets easier to package, I'll publish them on nuget.org.

var media = new MediaCapture();
var settings = new MediaCaptureInitializationSettings();
await media.InitializeAsync();

var definition = new VideoEffectDefinition(typeof(ChromaKeyVideoEffect).FullName);
var cfg = new PropertySet();
cfg[nameof(ChromaKeyMediaExtension.Color)] = Colors.Green;

var effect = await media.AddVideoEffectAsync(definition, MediaStreamType.VideoPreview);
effect.SetProperties(cfg);

captureElement.Source = media;
await media.StartPreviewAsync();

About

A implementation of the chroma key, saturation and zoom effect for Windows.Media.Effects and UWP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages