Record a video of the filtered camera source

The Featured Discussion Board Post this week is Record a video of the filtered camera source started by Reactor15.

Reactor15 wants to know how to record a video of a filtered camera source. Lee McPherson provides him with a code sample in which one can adjust the recording settings for the particular device.

Reactor15 adds that he wants to use the ChromaKeyFilter, but it seemed to have no effect on the video when enabled. He thinks the alpha channel is being ignored. Lee does not think that those video formats (NV12 and YU2) have alpha channels, and clarifies that they use a luminance byte and two or more color bytes to construct an image. He adds that they are neither RGB nor RGBA.

Lee suggests using Blend Filter in combination with ChromaKeyFilter by running the ChromaKeyFilter on the input video, then blending that layer on top of a custom background that can be provided as another IImageConsumer. Reactor15 was able to get it working with a test ColorImageSource for the background, but wants to know how to pass a StorageFileImageSource from C# to C++. Yan Verdavaine clarifies that StorageFileImageSource implements IImageProvider, and hence he could pass it like a property. Reactor15 confirms this to be an acceptable solution.

We featured this discussion to highlight how helpful members of the community sort out issues to their final conclusions.

See About Featured Discussion Board Posts for more information.

Keep those interesting questions coming!

Windows Phone 8.1 Windows.Media.Capture API and Preview Frames

The Featured Discussion Board Post this week is Windows Phone 8.1 Windows.Media.Capture API and Preview Frames started by Oliver Ulm

Oliver finds it quite easy to access preview frames from the camera using the APIs from Windows Phone 8.0. On Windows Phone 8.1, he observes that it cannot be done the same way as in the previous version. He wants to know if there is any way to do this other than the only reference that he has been able to find.

Lee McPherson shares his experience of how he has gone about this by modifying one of the Media Foundation Transforms that exists in the Media Extensions sample for Universal Apps. He reiterates that he wants to share it on the Wiki. Yan Verdavaine refers to the Real Time Filter Demo code sample, which Lee finds to be a good solution.

We featured this discussion because it highlights ways to preview frames in Windows Phone 8.1.

See About Featured Discussion Board Posts for more information.

Keep those interesting questions coming!