Page 1 of 1

Code examples

PostPosted: Wed Aug 22, 2012 11:41 am
by movie-apps
Hi to everybody

I appreciate very much to participate in this new forum.
It would be great to get some answer or help from BM if there is now other available
So I am exited to see whats coming up …

We are coding with XCODE 4.3 in Objective-C for 64 Bit apps on Mac.
Thoug it is possible to access BM devices (Ultrastudio 3D) with AVFoundation classes we would like to dive more deep into those devices with the BM SDK.

Are there code examples around which might help to setup a working XCODE Project, grab frames, evaluate, manipulate them and so forth ?

Would be great to get some response

Heinz Hommel

Re: Code examples

PostPosted: Thu Aug 23, 2012 12:58 pm
by mh87
Hi Heinz,
check out the examples provided by the Decklink SDK

Unfortunately there is no example on how to Playout videofiles. I'm working on an application on my own and still trying to figure out what is the best way to do so.

I've managed to playout a h264-File using code from the SignalGenerator-Example for initialisation and DecklinkKeyer for getting Frames out of a movie-file using GworldPointers. Nowadays you should check out the AVFoundation-Framework because GWorldPointers are depreceated with MacOSX 10.6 (Lion and above).

Re: Code examples

PostPosted: Thu Aug 23, 2012 1:34 pm
by mh87
The Decklink Signal-Generator is the best example to learn how a videooutput is setup in Xcode. Since the SDK is written in C++ you have to switch to Objective C++ which allows mixing C++ with Objective-C-Code.

Re: Code examples

PostPosted: Fri Aug 24, 2012 7:45 am
by movie-apps
hi mh87

thanks for replay. Found the code examples. Great … Now I can save the world :D

thanks Blackmagic, you do a great job, keep on … 

regards Heinz

Re: Code examples

PostPosted: Tue Aug 28, 2012 2:29 pm
by mirandaleandro
Hello, everyone! Here is a new developer aboard the forum.

I have a similar question to this one asked by the first. However, I'm not sure about which device he is using.

My main intention is to grab video from a camera and show it in my application real time. I'm not sure if this device ( allows me to do that.

Have some of you guys used this product before? May I use this product for the described purpose? Are there any sample codes?

Thanks in advance.

Re: Code examples

PostPosted: Thu Aug 30, 2012 11:39 am
by movie-apps
Now that I found the SDK examples I was happy to save the world :D
But I can't because I do not find an example to choose decklink video input :(
Do I have to do that it in the decklink settings or can I trigger it programmatically through my app too ?
Does anyone have experiences on this issue ?

regards Heinz

Re: Code examples

PostPosted: Thu Aug 30, 2012 5:23 pm
by Joshua Helling
Hey all,

Development related questions should be directed towards our Developer List.

You can sign up here: ... -developer