Questions tagged [mediacapture]

UWP Class provides functionality for capturing photos, audio, and videos from a capture device, such as a webcam.

48 questions
1
vote
0 answers

Overlay a PNG on top of video from MediaCapture

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…
Wobbles
  • 3,033
  • 1
  • 25
  • 51
0
votes
0 answers

How do I render the IDirect3DSurface returned from a WinRT MediaCapture FrameReader to a SwapChain in WinUI3

I am receiving IDirect3DSurfaces from a FrameReader and wish to render them to a SwapChain in a WinUI3 desktop app. I have followed DirectX and XAML interop to implement the SwapChain, including this fix. My research suggests I need to create a…
Eoin
  • 1,709
  • 11
  • 22
0
votes
0 answers

Unable to use RTSP with MediaCapture UWP

Following this article: https://blogs.windows.com/windowsdeveloper/2019/10/10/connecting-network-cameras-to-windows-10-devices/ We can initiate MediaCapture with RTSP URI link in constructor. I'm using VLC and IpCameraEmulator as RTSP streamers.…
sahap
  • 390
  • 3
  • 19
0
votes
1 answer

c# using MediaCapture to show live video captured on a pictureBox in a Form

I want to be able to see the "preview" image of my webcam on a pictureBox, in case I just show an image captured in the pictureBox when I use MediaCapture.PrepareLowLagPhotoCaptureAsync, soon does not show what the camera sees, but rather just one…
0
votes
0 answers

Capture still images with UWP MediaCapture (PIN_CATEGORY_STILL)

An alternative title could be: What happened to PIN_CATEGORY_STILL? I am currently comparing images that were captured using DirectShow and PIN_CATEGORY_STILL with images that were captured using UWP MediaCapture. On the device I am testing/playing…
Medkn
  • 1
  • 1
0
votes
0 answers

Ionic Cordova Camera Image Upload Issue

I am using MediaCapture library but getting 403. Below is my code: MediaCapture.captureImage(options).then( async (data: any) => { const contents: any = await Filesystem.readFile({ path: data[0].fullPath, …
0
votes
0 answers

Activating MediaFrameReader severly lowers Unity's framerate on Hololens2

I am developing a CV app for Hololens with Unity and I require capturing video frames using mediacapture. I followed a bunch of examples and tutorials online and started receiving video frames. Then, I noticed Unity's MRTK profiler showing a drop in…
0
votes
0 answers

UWP C# How to use ChromaKeyEffect on a video stream from MediaCapture and overlay the result on another MediaCapture webcam video stream?

I'm trying to get one video stream (like webcam) with MediaCapture and apply a Chromakey effect on it and overlay the result on another video stream (like another webcam) with MediaCapture too and record the result in a mp4 file during "live". I've…
VacH
  • 43
  • 5
0
votes
1 answer

How to capture image from both front and rear camera using JavaScript?

I am trying to build an application that can capture an image from the front and rear camera simultaneously (on a mobile device). I have experience with the library p5.js, which will allow me to take a picture from either the front or rear camera. …
0
votes
0 answers

C# UWP Capture Video/Audio from DirectShow source filters dll(s)

I am trying to capture audio by using C# Windows.Media.Capture which is for UWP (I assume). I tried listing all devices with DeviceInformation.FindAllAsync(DeviceClass.All);, to use the device ID in MediaCaptureInitializationSettings, but I am…
Vaibbs
  • 11
  • 3
0
votes
1 answer

Capture webcamera and save into azure blob storage using UWP C# (mediaCapture)

I have UWP C# app which should record video from webcamera. Once user hits 'Start Record' I should capture video and save into azure blob storage. So for capturing the webcamera I use mediaCapture. At this moment I can save into local storage using…
ggdev
  • 29
  • 1
  • 7
0
votes
1 answer

MediaFrameReader throws ArgementException when setting MJPG format?

I'm trying to get each frame's bitmap from the webcam. I followed this Microsoft tutorial Process media frames with MediaFrameReader. Some other video formats (YUY2, NV12...) are working fine, but selecting and setting MJPG format will cause…
Dia
  • 851
  • 1
  • 15
  • 35
0
votes
1 answer

Play input microphone audio to ausio output

I have a capture card and I ant to display the Video and play the input Sound. I got the video input by using the CaptureElement and MediaCapture Capturemanager = new MediaCapture(); DeviceInformationCollection devices = await…
Agredo
  • 131
  • 1
  • 10
0
votes
1 answer

Cordova Media-Capture plugin is not working

i have made a simple cordova test app to test run the media-capture plugin, nothing happens on the button click of either record audio, capture image or record video Following are the plugins i have installed in cordova project directory: Following…
0
votes
1 answer

Video Streaming from HoloLens2 to PC via Network

I am using Unity 2019.4 to develop an AR-Application with HoloLens2. Now I need to get the raw pixel data of the camera of HoloLens2 as well as the redered 3d content from the Unity-Project. I would like to send this pixel data as a live video…
SilverLife
  • 21
  • 4