Code Monkey home page Code Monkey logo

ofxblackmagic's Introduction

ofxBlackMagic is an addon for openFrameworks

updated to support 3840x2160 @ 29.97 input from the ULTRASTUDIO 4K

This addon is derived from studying an older addon, ofxBlackMagicGrabber, and the DeckLink SDK sample code.

The goal is to provide a simple and highly optimized interface with no extraneous methods that makes it clear what a Black Magic device can offer.

Some advantages of this addon:

  • All DeckLink specific functionality is placed in DeckLinkController.h, which can be extended if you're interested in getting minimum latency by overloading the VideoInputFrameArrived() callback.
  • Raw data is triple buffered to provide minimum delay to the DeckLink device and no tearing on the display side.
  • YUV to RGB conversion is only done when the user requests to use or display RGB data.
  • YUV to RGB conversion algorithm is optimized to increase memory locality.
  • YUV to Grayscale conversion is provided for situations where color conversion is unnecessary.
  • Raw YUV data is provided as a texture for decoding or processing with a shader.

Supported System

This addon has been checked with OS X 10.8 on Mac Mini, openFrameworks 0.8.0 and an UltraStudio Mini Recorder with a single 1080p30 camera.

This addon has been checked with a OS X 10.9 on a MacPro trashcan with openFrameworks 0.8.3 and an UltraStudio 4k Thunderbolt 2 device.

Installation

First, install the Black Magic software. If you are using an UltraStudio Mini Recorder, you should download "Desktop Video 10.8.1 for Macintosh". After installation, go to System Preferences, click "Black Magic Desktop Video", click on your device, and make sure "1080PsF" is un-checked (this option is only available when the capture card is plugged in). If you don't un-check this option, nothing will work.

Then go to the support page and download the DeckLink SDK (currently at version 10.8). After unzipping the SDK open the app Mac/Samples/bin/CapturePreview and hit "Start". The app should automatically detect the mode of your camera.

One you see the demo app working, try building and running the example/ that comes with ofxBlackMagic.

ofxblackmagic's People

Contributors

danzeeeman avatar halfdanj avatar kylemcdonald avatar laserpilot avatar smallfly 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.