DeckLink and AVFoundation

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Joe Bay

  • Posts: 2
  • Joined: Mon Nov 17, 2014 12:01 am

DeckLink and AVFoundation

PostMon Nov 17, 2014 12:04 am

I'm looking to get the live video from a DeckLink into Xcode / AVFoundation as a AVCaptureInput. Is this possible?


I can see 'Blackmagic' as a device, but I get a black screen when viewing it. Is this more complicated then I think? Also, am I going to have to be using the API to write a custom plug-in for it to work?


Thanks for the help,
Joe
Offline

Bruce Payan

  • Posts: 23
  • Joined: Wed Mar 27, 2013 11:39 am

Re: DeckLink and AVFoundation

PostTue Nov 18, 2014 8:11 pm

I have been on these forums for a number of months asking for some manner of an AVFoundation-based solution from BM -- or, at the very least, some sample code for capture and output.

So far, no dice.

A heads up... there is an AVFoundation thread in here stating that 720p is the maximum capture resolution.
viewtopic.php?f=3&t=21483&p=134391&hilit=AVFoundation#p134391

Bruce.
Offline

Andrzej Hijewski

  • Posts: 6
  • Joined: Fri Dec 28, 2012 4:30 pm

Re: DeckLink and AVFoundation

PostThu Nov 20, 2014 4:59 pm

Hi Joe,

If you use UltraStudio Mini Recorder you can use avfoundation and avsession to capture and record movie clip. But if you have to use another ultrastudio or decklink you have to use decklink SDK.

You can record 1080p and 720p na avfoundation and decklink SDK.
Offline

deOmair

  • Posts: 2
  • Joined: Wed Dec 03, 2014 11:38 am

Re: DeckLink and AVFoundation

PostWed Dec 03, 2014 11:41 am

Thanks for the help
Omair
Offline

deOmair

  • Posts: 2
  • Joined: Wed Dec 03, 2014 11:38 am

Re: DeckLink and AVFoundation

PostThu Dec 04, 2014 4:32 am

Is this more complicated then I think?
Omair
Offline

Joe Bay

  • Posts: 2
  • Joined: Mon Nov 17, 2014 12:01 am

Re: DeckLink and AVFoundation

PostSun Dec 07, 2014 8:44 pm

I see. I got the SDK and am using the demo app "CapturePreview" to view my source (DeckLink Studio 2). What I really need is to get it into Core Animation. I want a CALayer of the Blackmagic source. Is this possible?

As of now, it's drawing a view with:

CreateCocoaScreenPreview(previewView);

I'm guessing I don't want to be using a preview but an actual output. Any ideas?
Offline

thomasgodon

  • Posts: 14
  • Joined: Tue Mar 19, 2013 3:22 pm

Re: DeckLink and AVFoundation

PostTue Jan 27, 2015 8:12 pm

give the capture example a look. if you get an incoming frame get the pixel data and pass it trough the CALayer.
Offline

Sami Dalati

  • Posts: 3
  • Joined: Sat Dec 13, 2014 11:40 pm

Re: DeckLink and AVFoundation

PostWed Feb 18, 2015 1:01 am

Hi
I m trying to run the sample code CapturePreview on MacPro. The code runs but the video window does not show anything. When the start button is clicked i get an error message "this application was unable to select the video mode, perhaps the selected device is currently in use".

Note that the video preview works fine on BM media studio. So far I m using the sdk to grab the frames and convert them to openCV Mat and then do some processing. The extracted images work fine but the video preview does not even in openCV! Am i missing a driver?

The sample code works fine on Windows.

Your help is muchooo appreciated
Sami Dalati

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 1 guest