1

I would like to overlay a graphic, such as a lower 3rd or frame on top of the video layer as an effect in MediaCapture. How would I go about doing this?

I do not simply want to layer it in the UI using a grid, it needs to be in the MediaCapture so the frame/lower 3rd is also captured in video/image recording.

I am using a rather basic implementation for MediaCapture while I test things out;

MediaCapture mediaCapture;

public async void init()
{
    mediaCapture = new MediaCapture();
    await mediaCapture.InitializeAsync();
}

public async void snapPic()
{
    var lowLagCapture = await mediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties.CreateUncompressed(MediaPixelFormat.Bgra8));

    var capturedPhoto = await lowLagCapture.CaptureAsync();
    var softwareBitmap = capturedPhoto.Frame.SoftwareBitmap;

    await lowLagCapture.FinishAsync(); 
}
Wobbles
  • 3,033
  • 1
  • 25
  • 51
  • Do you mean you want to add an image in every frame when you record your video using the camera? – Breeze Liu - MSFT Sep 14 '18 at 08:24
  • @BreezeLiu-MSFT Yes that was the goal, to create a composite image. I found a effect in the `lumia.Imaging.Compositing.BlendEffect` that does this perfect, i can put a PNG image over my video and it works just fine. – Wobbles Sep 16 '18 at 12:38

0 Answers0