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 (
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
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
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!