Example project for capture and preview with BlackMagic Design card with WinUI3. I used this to learn DeckLinkSDK and DirectX basics. Now I am working on full product and I decided to share this example.
- .NET 6
- BlackMagic Design SDK
Select correct mode and device and hit start.
- memory leaks
- stop not working
- not checking input validity
- not rendering full size of video
- many more including code issues
- resizing
To compile project, you might need BlackMagic SDK / Library. You can get it from here. Easiest way to obtain DeckLinkAPI is to install Desktop Video. I used version 12.3.
This project is just SHOWCASE and has many issues. If you would like to try this project I encourage you to learn something about DirectX 11 rendering and how you should handle COM pointers. Otherwise you can run into big problems with memory leaks etc. So it is wise to understand every line of code before using on production environment.
Big thanks to: DirectN KlearTouch.MediaPlayer C++ DirectX 11 Engine Tutorials by Jpres
Feel free to create pull requests and issues. I welcome any kind of contribution.