9 Replies Latest reply: Jan 27, 2013 8:18 AM by GioCo86
Miss.Hollywood Level 1 Level 1 (0 points)

Has anyone had any success getting the CoreMediaIO DAL plug-in sample camera driver to work on 10.7.4?

 

I have the following results:

 

1.  Installed the prebuilt "Debug" components.

 

2. Photo Booth opens normally and Console shows that the DAL plug-in was loaded and is working correctly.

 

3. iMovie '11 opens normally, but no longer can detect the built-in FaceTime camera or the camera exposed by the DAL plug-in.

 

4. Quartz Composer sees only the Built-In camera.

 

5. Flash Media Live Encoder sees only the built-in camera and older VDIG components.

 

I'll take any tips here:  if I can find one client application that can access the sample DAL driver I should be good to go.  Help me Obi-wan, you're my only hope.

 

 

REFERENCED:

http://developer.apple.com/library/mac/#samplecode/CoreMediaIO/Introduction/Intr o.html


MacBook Pro, Mac OS X (10.7.5)
  • 1. Re: CoreMediaIO DAL Plug-In Sample
    Miss.Hollywood Level 1 Level 1 (0 points)

    I believe I have answered my own question inadvertently while randomly looking at sample code:

     

    http://developer.apple.com/library/mac/#samplecode/AVRecorder/Introduction/Intro .html

     

    AVRecorder which utilizes the new AVFoundation apis for recording video (rather than QTKit) appears to properly recognize the CoreMediaIO DAL sample camera.

     

    Thanks Apple!

  • 2. Re: CoreMediaIO DAL Plug-In Sample
    Miss.Hollywood Level 1 Level 1 (0 points)

    Also, Skype 6.0.59.2968 correctly detects and utilizes the CoreMediaIO DAL Sample driver.

  • 3. Re: CoreMediaIO DAL Plug-In Sample
    GioCo86 Level 1 Level 1 (0 points)

    Can you explain me how did you run the DAL plug-in? I Installed the prebuilt "Debug" components, but I can't find one client application that can access the sample DAL driver. What should I do? I need to change the source code?

     

    Please help me!! I need it for a university exam

  • 4. Re: CoreMediaIO DAL Plug-In Sample
    Miss.Hollywood Level 1 Level 1 (0 points)

    Also, I discovered today that the kext and DAL plug-ins had the quaratine bit set when I installed them. 

     

    In Terminal:

     

    xattr -d com.apple.quarantine Sample-Debug.tar.gz

    xattr -d com.apple.quarantine Sample-Release.tar.gz

     

    Before installing!  I'm guessing that may clear up some problems.

  • 5. Re: CoreMediaIO DAL Plug-In Sample
    GioCo86 Level 1 Level 1 (0 points)

    I set the quarantine bit with this commands,

    In Terminal:

     

    xattr -d com.apple.quarantine Sample-Debug.tar.gz

    xattr -d com.apple.quarantine Sample-Release.tar.gz

     

     

    but I still can't access DAL plugin-is with any client application, even with AVRecorder. I work with Mac OS 10.8.2, could this be a problem? Can you access DAL plug-in now?

    Thanks for your support.

  • 6. Re: CoreMediaIO DAL Plug-In Sample
    Miss.Hollywood Level 1 Level 1 (0 points)

    I haven't tried on Mountain Lion.

     

    However, unless you sandboxed AVRecorder, it should be fine.

     

    If there is a concern with sandboxing (look for errors from sandboxd in console), try codesigning & adding plist keys like CoreAudio plugins designed for sandboxed applications.

  • 7. Re: CoreMediaIO DAL Plug-In Sample
    Miss.Hollywood Level 1 Level 1 (0 points)

    Just discovered: after fixing the permissions on the Prebuilt components, Photo Booth (10.7.5) now recognizes the Sample DAL driver.

     

    However, PhotoBooth may only open the Sample DAL driver if the USB bus has too much traffic to open the Built-in iSight.  I achieved this by plugging in two small Logitech USB cameras and opening them both in CamCamX.  For some reason AVRecorder will not open both Logitech cameras at the same time.

  • 8. Re: CoreMediaIO DAL Plug-In Sample
    GioCo86 Level 1 Level 1 (0 points)

    I did the following steps:

     

    • I downloaded the example;
    • I set quarantine bit for Sample-Debug and Sample-Release archives;
    • I installed Sample-Debug.tar.gz with the command sudo darwinup install {path to CoreMediaIO folder}/Prebuilts/Sample-Debug.tar.gz;
    • I fixed the kext's permissions with commands

                                  sudo chmod -R 755 name.kext

                                  sudo chown -R root:wheel name.kext

    • I rebooted the system.

     

    Did I forget some steps? I tried with Skype 6.0.59.2968, AVRecorder, IMovie, PhotoBoot but I can't access the DAL-Plugin :'(

  • 9. Re: CoreMediaIO DAL Plug-In Sample
    GioCo86 Level 1 Level 1 (0 points)

    I discovered that, after I installed DAL-plugin, I can access it only if I started AVRecorder and select DAL-Plugin as an input device. After i did this, I can access it with Skype or PhotoBoot, too.

    But, after a reboot, the system starts only after 3-4 attempts and I can not access the plugin, even with AVRecorder.

    Do you have any idea what could be the solution to these problems?

     

    Thanks!