Code examples

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline

movie-apps

  • Posts: 25
  • Joined: Wed Aug 22, 2012 11:27 am
  • Location: Munich Germany

Code examples

PostWed Aug 22, 2012 11:41 am

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
www.movie-apps.de
info@movie-apps.d
Offline

mh87

  • Posts: 4
  • Joined: Wed Aug 22, 2012 7:05 pm

Re: Code examples

PostThu Aug 23, 2012 12:58 pm

Hi Heinz,
check out the examples provided by the Decklink SDK
http://www.blackmagicdesign.com/support/sdks/

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).
Offline

mh87

  • Posts: 4
  • Joined: Wed Aug 22, 2012 7:05 pm

Re: Code examples

PostThu Aug 23, 2012 1:34 pm

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

movie-apps

  • Posts: 25
  • Joined: Wed Aug 22, 2012 11:27 am
  • Location: Munich Germany

Re: Code examples

PostFri Aug 24, 2012 7:45 am

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
Offline

mirandaleandro

  • Posts: 1
  • Joined: Tue Aug 28, 2012 2:18 pm

Re: Code examples

PostTue Aug 28, 2012 2:29 pm

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 (http://blackmagicdesign.com/products/videorecorder/) 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.
Offline

movie-apps

  • Posts: 25
  • Joined: Wed Aug 22, 2012 11:27 am
  • Location: Munich Germany

Re: Code examples

PostThu Aug 30, 2012 11:39 am

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
Offline
User avatar

Joshua Helling

Blackmagic Design

  • Posts: 853
  • Joined: Wed Aug 22, 2012 4:58 pm

Re: Code examples

PostThu Aug 30, 2012 5:23 pm

Hey all,

Development related questions should be directed towards our Developer List.

You can sign up here:
http://lists.blackmagicdesign.com/mailm ... -developer
Joshua Helling

Director of World Wide Support
Blackmagic Design Inc.

Return to Post Production

Who is online

Users browsing this forum: Peter Chamberlain and 6 guests