Matthieu Maitre

Results 34 comments of Matthieu Maitre

Handling that at the App Service level might work. I haven't tried but I heard something like that could be done via ARM template: ``` "keyVaultId": { "value": "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.KeyVault/vaults/xxx" },...

A couple of ways that should address that: - Have `MediaReader` get frames from `MediaCapture`'s record stream (instead of preview stream) by initializing `MediaReader` with `MediaReaderCaptureInitializationSettings.CaptureStreamType = CaptureStreamType.Record` - Have...

Thanks! I am not aware of a good way to block on the UI thread (baring a while(true){...} loop). Is there a reason you would prefer blocking instead of using...

There are a couple of ways to resize: - on the camera via [VideoDeviceController](https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.devices.videodevicecontroller.aspx)'s GetAvailableMediaStreamProperties()/SetMediaStreamPropertiesAsync(). This is the most efficient. - in the capture pipeline via the [Video Processor MFT](https://msdn.microsoft.com/en-us/library/windows/desktop/hh162913%28v=vs.85%29.aspx)....

Re: it's damn slow - you bet it is :-) It is most likely copying the whole frame from GPU memory to CPU memory and back to GPU memory. Re:...

You should be able to copy the DX texture between the two DX devices using resource sharing: https://msdn.microsoft.com/en-us/library/windows/desktop/ff476531(v=vs.85).aspx Basically, create a shareable texture with your display DX device, get a...

I found some code sample here (toward the bottom of the file): https://github.com/mmaitre314/MediaCaptureWPF/blob/5e46dbc0700e06425363fd0db2bbd01fc59ae34e/MediaCaptureWPF.Native/CapturePreviewNative.cpp It uses DX texture sharing to go from a DX11 device (MediaCapture) to a DX9 device (WPF)....

That goes beyond my knowledge of DX... Glad it's working now.

That should be easy to add. Would you be able to share an input video and an extracted frame with artifacts so I can verify that the issue is actually...

At least part of the issue lies in MediaReader as it ignores the extended color info carried by MF_MT_VIDEO_NOMINAL_RANGE / MF_MT_VIDEO_PRIMARIES / MF_MT_TRANSFER_FUNCTION / MF_MT_YUV_MATRIX / MF_MT_VIDEO_CHROMA_SITING. I can look...