Code Monkey home page Code Monkey logo

bm-capture's Introduction

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.

Application preview

Requirements

  • .NET 6
  • BlackMagic Design SDK

Usage

Select correct mode and device and hit start.

Issues

  • 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.

Caution

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.

Credits

Big thanks to: DirectN KlearTouch.MediaPlayer C++ DirectX 11 Engine Tutorials by Jpres

Contribution

Feel free to create pull requests and issues. I welcome any kind of contribution.

bm-capture's People

Contributors

nono3551 avatar

Stargazers

ejihuang avatar 李贯通 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.