Mountain Lion Desktop capture

Discussion about developing custom effects and video sources for CamTwist with specific focus on QuartzComposer and the Obj-C API for CamTwist.

Mountain Lion Desktop capture

Postby zakk » Thu Aug 02, 2012 6:48 pm

https://github.com/v002/v002-Media-Tools


The source here contains a QC plugin that implements desktop capturing using the new 10.8 CGDisplayStream API, which is IOSurface based.

I threw it in a quick Composition and loaded it into CamTwist, performance is very good, probably just as good as the old OpenGL based desktop capture.

Now if only there were a similar API for capturing single window contents...
zakk
 
Posts: 24
Joined: Thu Aug 27, 2009 5:32 pm

Re: Mountain Lion Desktop capture

Postby SteveG » Fri Aug 03, 2012 7:34 am

Awesome.. I didn't even know that API existed. Funny thing.. I can't find any documentation for it.
SteveG
 
Posts: 1164
Joined: Fri Nov 23, 2007 6:05 pm

Re: Mountain Lion Desktop capture

Postby SteveG » Mon Dec 24, 2012 12:04 pm

I've implemented that in my latest dev build. It's here if you want to try it, but be warned.. it's not exactly finished.

http://camtwiststudio.com/beta/
SteveG
 
Posts: 1164
Joined: Fri Nov 23, 2007 6:05 pm

Re: Mountain Lion Desktop capture

Postby bifuteki » Thu Jan 10, 2013 10:42 am

Hey I tried to use the beta with this feature and it does not even open.
bifuteki
 
Posts: 19
Joined: Thu Jan 10, 2013 10:41 am

Re: Mountain Lion Desktop capture

Postby SteveG » Thu Jan 10, 2013 7:52 pm

Yeah.. sorry about that. Can you download it again? I think I've fixed that problem.
SteveG
 
Posts: 1164
Joined: Fri Nov 23, 2007 6:05 pm

Re: Mountain Lion Desktop capture

Postby bifuteki » Fri Jan 18, 2013 12:19 am

Sorry for the delay, wished I had seen this before I needed it for last weekends broadcast. I will be trying it out tonight.





Sooo I tried it and its not seeing my Black Magic Cards at all.
bifuteki
 
Posts: 19
Joined: Thu Jan 10, 2013 10:41 am

Re: Mountain Lion Desktop capture

Postby SteveG » Fri Jan 18, 2013 8:48 am

bifuteki wrote:Sooo I tried it and its not seeing my Black Magic Cards at all.


But how did the desktop capture work out?

I am aware that there are some issues with BM cards but not seeing any of them is a new one for me. Another testers reported to me that it only saw 1 of their cards. I send him an Apple sample app and it had the same results, leading me to believe that this is a BM problem. One theory I had/have is that since this beta of CT is 64 bit only, the BM drivers might be only compatible with 32 bit apps. Do you feel like trying to contact them on my behalf? The issue is with AVFoundation.
SteveG
 
Posts: 1164
Joined: Fri Nov 23, 2007 6:05 pm

Re: Mountain Lion Desktop capture

Postby zakk » Sat Jan 19, 2013 2:43 am

Blackmagic uses QT Components, so you won't see them from a 64 bit app at all.

It does expose a single device via AVFoundation, but I've never gotten that one to work.
zakk
 
Posts: 24
Joined: Thu Aug 27, 2009 5:32 pm

Re: Mountain Lion Desktop capture

Postby bifuteki » Sat Jan 19, 2013 5:59 am

I find that when I use Camtwist with Quicktime to record from Camtwist, it will work fine with my webcams, but as soon as I switch to the Black Magic card it will close immediately.
bifuteki
 
Posts: 19
Joined: Thu Jan 10, 2013 10:41 am

Re: Mountain Lion Desktop capture

Postby SteveG » Sat Jan 19, 2013 6:16 am

zakk wrote:Blackmagic uses QT Components, so you won't see them from a 64 bit app at all.

It does expose a single device via AVFoundation, but I've never gotten that one to work.


This guy (spacevidcast.com) had 5 Blackmagic cards. I sent him AVRecorder (an Apple sample) and what he said is:

The basic data is that it will only see 1 BMD device (Blackmagic) but it can select the resolution and frame rate from the device. However, the audio section will see all 5 of the Blackmagic Devices (4 Decklink Quads and 1 Intesity).


So if that's true, then there seems to be AVFoundation support for the cards, it's just that it doesn't work very well. He also points out that it works with both card types, just not at the same time.
SteveG
 
Posts: 1164
Joined: Fri Nov 23, 2007 6:05 pm

Next

Return to Effect Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron