Save WriteableBitmap C# WPF video stream to file

539 Views Asked by At

I have a intel realsense camera that is showing video "streams" on WPF Image based on https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/cs-tutorial-2-capture/Window.xaml.cs

I want to write a video every-time there is a new image.

imgDepth.Source = new WriteableBitmap(p.Width, p.Height, 96d, 96d, PixelFormats.Rgb24, null);

When I close the program, I will have a video (.avi, mp4..). How can I achieve this. I was thinking of using VideoWriter Class of EMGUCV library. Or is there some easier way? thanks

0

There are 0 best solutions below