[AG-TECH] Osprey Cards....... Desperation

A Quay andy at arts.ufl.edu
Thu Jul 22 07:42:45 CDT 2004


Stuart,
This hack from Darran worked for me and saved my life!
-andy


Problem:

For nodes with multiple Osprey cards running AGTk-2.2 under Windows XP,
multiple instances of vic contend for the same capture card.  The
workaround is to manually resolve the vic contentions after changing
venues.  This is a pain.  Pending a proper fix, you might wish to try
the following.  It works for us - your mileage may vary.

Hack:

1) On your video machine, open the file
      c:\Python23\Lib\site-packages\AccessGrid\Platform\win32\Config.py
    Save a copy of this file so you can undo the following if
    necessary.


2) Line 985 should be the definition of the SystemConfig class
    method GetResources:

     def GetResources(self):
         """
         Return a list of the resources available on the system
         """
     ...


3) This method builds a list of AGVideoResource entries (one
    for each capture device) by scanning your Windows registry.
    Our registry did not contain entries for both Osprey cards.
    Rather than change the registry, the following hack sets
    the list of "found" resources explicitly.

    Around line 1020, a return statement sends back the list
    of discovered resources.  Insert the following code indented
    the same amount as the final return statement.

         # hack to hardcode known resources
         resourceList = list()
         resourceList.append( AGVideoResource(
             'video', 'o100vc.dll - Osprey Capture Card 1','producer',
             ['external-in']))
         resourceList.append( AGVideoResource(
             'video', 'o100vc.dll - Osprey Capture Card 2','producer',
             ['external-in']))
         resourceList.append( AGVideoResource(
             'video', 'o100vc.dll - Osprey Capture Card 3','producer',
             ['external-in']))
         print "hack to hardcode known video resources ..."
         return resourceList


4) Save and restart your video machine AGServiceManager.  You
    should see the "hack to hardcode .." print statement output.

5) "Manage my node" and remove and re-add the VideoProducer services.
    You should be prompted for the desired resource.

6) Let me know if it works ...

Cheers,
Darran.

-- 
Darran Edmundson (darran.edmundson at anu.edu.au)
ANU Supercomputer Facility Vizlab
Australian National University, Canberra, ACT 2600
tel: +61 2 6125-0517  fax: +61 2 6125-5088


-----Original Message-----
From: Stuart Poulton [mailto:stuart.poulton at astro.le.ac.uk] 
Sent: Thursday, July 22, 2004 7:08 AM
To: Randy Groves; ag-tech at mcs.anl.gov
Subject: Re: [AG-TECH] Osprey Cards....... Desperation

Hi All,

I've still not been able to get all 4 of my osprey cards working under
windows XP.

Does anyone have 4 osprey cards working with either AG1 or 2 within
windows ? I can use all 4 cards with the vidcap software supplied by
viewcast so it's down to some software configuration.

Regards

Stuart





More information about the ag-tech mailing list