Accessing rdf:description with the SDK

Hi,
In the Adobe Audition schema, markers are stored in a schema that has three properties embedded in the rdf:description field, but it's not clear in the SDK documentation how to read this information or write to it.  Most importantly, I need to be able to create a property that is able to write those attributes to the description.  Adding the individual markers in the sequence I believe will be easy.
Any information is most appreciated.
-Brent

For anyone in the future who's interested in the answer to this...its actual implementation as I noted isn't clear
in the documentation so here's a bried summary of it.  This is what I was trying to emulate:
   <xmpDM:Tracks>
    <rdf:Bag>
     <rdf:li>
      <rdf:Description xmpDM:trackName="CuePoint Markers" xmpDM:trackType="Cue" xmpDM:frameRate="f254016000000">
       <xmpDM:markers>
        <rdf:Seq>
         <rdf:li xmpDM:startTime="43973f44100" xmpDM:name="Marker 01"/>
        </rdf:Seq>
       </xmpDM:markers>
      </rdf:Description>
     </rdf:li>
    </rdf:Bag>
   </xmpDM:Tracks>
The first item is easily added with meta.SetProperty(kXMP_NS_DM, "Tracks", NULL, kXMP_PropValueIsArray);
But the real catch for me was the items in the bag, which had the rdf:description field I didn't know how to create or access.  The short answer is that the XMP code will add it on its own, but only under specific conditions.  But to start, the items in the bag need to be added as structures:
meta.AppendArrayItem(kXMP_NS_DM, "Tracks", kXMP_PropArrayIsOrdered, 0, kXMP_PropValueIsStruct);
Then, we need a path to the structure we just added to the bag:
SXMPUtils::ComposeArrayItemPath(kXMP_NS_DM, "Tracks", kXMP_ArrayLastItem, &path);
Now that we have that path, we add the three fields that appear in the rdf:description part:
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "trackName", "CuePoint Markers", NULL);
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "trackType", "Cue", NULL);
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "frameRate", "f254016000000", NULL);
But this as of yet won't add an rdf:description field to our structure.  Rather, it just puts the properties in the <rdf:li> tag directly.  However, once we add the ordered array to the structure with the following statement, the rdf:description field gets added and the three simple properties become part of it:
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "markers", 0, kXMP_PropArrayIsOrdered);
Now the marker entries are structures themselves, so we need a path to the "markers" array:
SXMPUtils::ComposeStructFieldPath(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "markers", &markerPath);
Then we add a structure to the "markers" array:
meta.AppendArrayItem(kXMP_NS_DM, markerPath.c_str(), kXMP_PropArrayIsOrdered, 0, kXMP_PropValueIsStruct);
Then we need a path to the newly created structure in the "markers" array:SXMPUtils::ComposeArrayItemPath(kXMP_NS_DM, markerPath.c_str(), kXMP_ArrayLastItem, &path);
And finally we add the two marker fields:
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "startTime", "43973f44100", NULL);
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "name", "Marker 1", NULL);
Hope this helps someone out.
-Brent

Similar Messages

  • I'm not able to access goolge docs with the blackberry browser (it worked fine till a few weeks ago)

    I'm not able to access google docs with the blackberry browser (it worked fine till a few weeks ago)
    seems that this issue happens to a lot of people
    is google going head to head with Blackberry ? or is this just a bug ? 
    Message Edited by avolcoff on 08-27-2009 01:06 AM

    Welcme to the cmmunity supprt frums
    Nurse-Berry
    Follow NurseBerry08 on Twitter

  • In Indesign CS6 I export an artboard to  TIFF with the sdk's funtion SnapshotUtilsEx- ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

    In Indesign CS6 I export an artboard to  TIFF with the sdk's funtion SnapshotUtilsEx->ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

    An easy example to prove this bug of Indesing CS6:  I create a psd with Photoshop CS6, with width 505 pixels, height 317 pixels and a resolution of 300 pixels per inch. This psd is placed on a page in InDesign CS6. Then I try to export it as a tiff with the functions:
    fSnapshotUtilsEx->Draw(flags,fullResolutionGraphics,greekBelowPtSize,enableAntiAliasing,tr ansparencyQuality,abortCheck,pVPAttrMap,bDrawNonPrintingObjects);
    and
    SnapshotUtilsEx-> ExportImageToTIFF (iStream)
    The resulting tiff has a width of 506 pixels (one pixel more in width). It will happen the same if we start with a width of 507 pixels, etc.
    This error does not occur with Indesign CS5, nor Indesing CC.

  • Is there a way I can access my iMac with the keyboard only from home screen?

    I accidentally turned off my Bluetooth and I tried to reboot my computer.  I'm now in kind of a hopeless situation. Is there a way I can access my iMac with the keyboard only from the home screen?

    Allow me to rephrase that question. Is there anyway I can I access my iMac from the login screen with the keyboard only?

  • I have recently changed my Apple ID password, but i now cant access my icloud with the new password, i thought the 2 were linked?

    i have recently changed my Apple ID password, but i now cant access my icloud with the new password, i thought the 2 were linked?

    Hi helenbeach,
    If you've recently made changes to your Apple ID, you may need to update or log out/log back in to some of the related services for those changes to take effect. You may find the following article helpful:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Regards,
    - Brenden

  • Trouble accessing my email with the latest update

    Anyone else having trouble accessing their email with the latest update?  I am not able to get my Yahoo mail.  I am constantly being asked for my password and then get an error - no access to network.

    Hey there shawq!
    I have an article here for you that can walk you through some troubleshooting steps for this issue:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Description with the IP Address

    Hi Budies
    let me know is there any comand by which i can specify description with the Secondary IP addresses assigned on an interface ?
    i know i can describe an interface but how to describe an ip address is my problem.I've already unsuccessfully tried it with CiscoIOS 12.3(12)

    Hi chetri,
    As far as i know, there can be only one description for an interface. its interface based and not ip address based. You can keep adding the descriptions on the same line , if you want ..
    description "primary - LAN , Secondary1 - Internet"
    hope this helps.. all the best..
    Raj

  • Administering with the SDK

    Hi all,
    Do you know if it is possible to program with the SDK a basic webpage for administering users and folders? Any documentation?
    Regards,
    Bea

    Hi Bea,
    Yes you can do those things.
    documentation
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    goto
    BusinessObjects Enterprise SDK
       Java developer guide (if java)
           Tutorials    
               Client and Admin Desktop Tutorials
                   - How to manage user accounts
                   - How to manage user groups
                   - How to create a new folder in BusinessObjects Enterprise
             etc.....
    Above link is open of the best documentations.
    Thanks,
    Praveen.

  • I can't access my camera with the camera button.  Only able to make videos.

    I can't access my camera with the camera button.  Only able to make videos.

    Could you have accidentally toggled the photo to video? In the lower right (usually) corner there's a little icon that has both film and video camera and a tiny slider between them. That's how you switch from one to the other.

  • To anyone with the SDK and the skills required

    Now that we have the App Store, how long until someone makes an "Adblock" for iPod Safari, or even a version of Firefox (with extension computability) for iPod Touch?

    how long until someone makes an "Adblock" for iPod Safari
    Never. Because you can't make Safari Plugins with the SDK
    or even a version of Firefox (with extension computability)
    Why? Safari is a better browser, and Firefox would become unstable, bloated and a memory-hog with extensions.

  • How to access .dmp data with the Instant Client?

    I'm a total beginner, and am trying to access a .Dmp database. I have installed (on Linux i386):
    Instant Client Basic 11.2 + SDK + SQLPlus
    I'm aware that I have to further set the environment variables ORACLE_HOME and LD_LIBRARY_PATH, and think I know how it should be done.
    The files installed in the oracle directory are as follows:
    $ ls /usr/lib/oracle/11.2/client/lib
    glogin.sql libocci.so libsqlplusic.so ottclasses.zip
    libclntsh.so libocci.so.11.1 libsqlplus.so xstreams.jar
    libclntsh.so.11.1 libociei.so ojdbc5.jar
    libnnz11.so libocijdbc11.so ojdbc6.jar
    $ ls /usr/lib/oracle/11.2/client/bin
    adrci genezi sqlplus
    But this is where I hit the wall. Just a couple of questions:
    How do I make the Client to access the data? I've read a bit about name resolution such as tnsnames.ora and EZConnect, but have no idea what these are, even conceptually.
    How do I actually start/configure the Oracle client? Is there an executable somewhere?
    Can the .dmp file be even read by the client or do I have to use the SQLPlus to make queries (as I've read somewhere)?
    As you see I'm clueless. What are the next steps, or could you point me to a practical tutorial that would show what I need to do.
    Thanks a lot for any help..

    user9020180 wrote:
    Right,
    I browsed the manual, but I didn't understand whether the import utility part of the oracle database software?
    Are there any freely downloadable tools by which I can import the data (and then read with a client?).Everything in the Utilities manual is part of the database software set. If you have a database, you have all of those utilities. If you don't have a database, no third party equivalent to those utilities (if such existed) would be of any value.
    Depending on your database version, the .dmp file could have been created with either 'exp' (export) or 'expdp' (datapump). Unfortunately, by default both utilities produce a file with the .dmp extension, but they are different formats and not interchangeable. You will need to find out exactly how the .dmp file was created. Actually, you need to find out the entire command used to create it, not just which utility, because the options used at export time will affect what options are available and desirable at import time.

  • Can you do that with the SDK?

    I have a question concerning the SDK. In a project, we want to automate some Editing-Functions and the "Premiere_SDK_Guide.pdf" leaves some questions:
    1) Is it possible to write a plugin, that read pathes from ressources (for example Images and Audio from an XML-file) and put these at specific places on the timeline?
    2) With video- and audio-transitions?
    Even if the above is not possible, than can you automatically:
    3) Set Chapter-Markers?
    4) Export to Encore or directly as a DVD?
    Thanks in advance,
    Hans

    Hi Hans,
    1) For this I would recommend you generate an FCP XML, which can be imported into Premiere Pro.  The SDK doesn't provide control over project items.
    2) You can see supported transitions and effects here: http://help.adobe.com/en_US/premierepro/cs/using/WSd9957a95a81082eb28f05af5126718c47be-800 0.html#WSd9957a95a81082eb28f05af5126718c47be-7ffd
    3) Markers in the FCP XML can't currently be imported directly as Encore Chapter markers, but once the markers are brought in, it is fairly simply to switch them from regular markers to Encore Chapter markers.  Bringing them in directly as Encore Chapter markers could be a good feature request, if you decide to use the FCP XML route - http://www.adobe.com/go/wish
    4) Triggering an Export to Encore is not something a plug-in or external application can do.  But by generating the FCP XML in advance, that should save a ton of time with the editing up front.
    Regards,
    Zac

  • Problem accessing e.book with the adobe log in details

    Hi
    I bought an ebook. I downloaded it onto a laptop. I had access t
    o it no problems. I had a problem with the laptop and I had to change. I am having a problem opening the same book on the new one it is giving me the following error if I log in my Adobe details The vendor account you entered is not associated with the item you  are trying to open. Try again.

    Did you register ADE on the old laptop with an Abobe ID? 
    If so, you just need to register the new laptop with that same Adobe ID.
    ~~~
    If not, you may be a bit stuck.
    The Adobe DRM infrastructure has some very undesirable features, and you may have hit one.
    When you first run ADE it gives you the option to authorize with an AbodeID, or some other option ('Not Yet'?, I forget exactly how they put it).
    That second option effectively authorizes with an 'anonymous' ID which has some very undesirable properties.
    ADE does give a tiny bit of warning if you make that choice, but not nearly strong enough.
    Any DRM books you buy or borrow get associated with a particular ID when you first process the .acsm and download a DRM .epub file.
    After that point it is not possible to change the ID with which the book is associated.
    You can copy it between devices (up to 6) associated with the ID and all will go fine, but you can't use it on a device associated with a different ID.
    You can change the ID associated with a device (remove the old one, ctrl-shift-D for an ADE computer, ctrl-shift-E for a plugged in eReader device, and associate with a new ID),
    but you can't change the ID associated with a book.
    An implicit/anonymous ID cannot be associated with any other device, and once an anoymous ID is removed (or lost through loss of device), I do not believe that it is possible to recover that same ID.
    Therefore it is not possible to regain access ot the book.
    ~~~
    Your best bet may be to try a DRM stripper such as epubee (google it).  Do not then sell or give away the DRM stripped book to anyone else as that is not legal.
    I'm not sure if that will work except on a device which has authorization for the ID associated with the book; in which case you may still be stuck.

  • Is it possible with the SDK?

    Is it possible to use the Illustrator's tools while making an extension/plug-in? What I mean is: Can I "take" the Illustrator Scissors to cut a path at some point/anchor? Can I "ask" Simplify tool to simplify some path with some parameters? Can I use Pathfinder to crop some object? etc.
    I look at the SDK/Scripting manual and I see no way to use the tools. I see objects and their properties. It is possible to do only basic operations like "move, reflect, change color". How about using the tools?!
    In my imagination the scripting/plug-in development should be similar to Actions creation, but more advanced. Like:
    1. Create a rectangle.
    2. Apply "round corners" effect.
    3. Crop with another rectangle.
    4. Duplicate.
    5. Move.
    6. Unite.
    7. Apply ZigZag effect.
    8. Simplify, 80%, ...
    And I am surprised to see that SDK does not have/show the way to use the standard/built-in tools.
    Please point me in the right direction. How to use the tools? Any sample source code?

    The ActionManagerSuite contains lots of useful stuff you may be able to use. Look through the header files in Adobe Illustrator CS6 SDK / illustratorapi / illustrator / actions /
    Particularly "AIObjectAction.h"
    A properly set up AIActionParamValueRef will allow you to use a lot of Illustrator core functionality that may not be available through the other Suites. The name of the action you want can be found in the action palette by creating an action and adding the function you want to use.
    It's been a while since I used this, but I think I got the enumerated value by watching the returned integer "value" in:
    ASErr ASAPI(* AIActionManagerSuite::AIActionGetEnumerated)(AIActionParamValueRef param, ActionParamKeyID key, char *name, ai::int32 *value) while stepping through in the debugger.
    This did a merge of selected art, I think. It may help get you started.
    AIActionParamValueRef
    crop_VPB = NULL;
    char
    crop_name[] = "Crop";
    AIErr
    result = kNoErr;
    result = sAIActionManager->AINewActionParamValue(&crop_VPB);
    result = sAIActionManager->AIActionSetEnumerated (crop_VPB, 'name', crop_name, 9);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'objt', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'fill', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'strk', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'smth', true);
    result = sAIActionManager->AIActionSetInteger(crop_VPB, 'step', 256);
    result = sAIActionManager->AIActionSetUnitReal(crop_VPB, 'thck', unitPoints, (AIReal).0072);
    result = sAIActionManager->AIActionSetUnitReal(crop_VPB, 'prec', unitPoints, (AIReal).0072);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'remv', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'extr', true);
    result = sAIActionManager->PlayActionEvent( "ai_plugin_pathfinder", kDialogNone, crop_VPB);
    if(crop_VPB != NULL) result = sAIActionManager->AIDeleteActionParamValue(crop_VPB);

  • HT5934 IPad 2 cannot access wifi, even with the correct password.

    My iPad 2 does not accept the password it should when trying to access the wifi access available at my employer. Once my employer removed his password protection from his wifi router, my iPad accepted the wifi. An iPhone  accepted the  same password today... It hesitated a bit longer than we expected, however, it did access the wifi router. We've tried multiple times, my employer uses Macs, and he's tried accessing his wifi with my iPad... He's even changed the name on his wifi, checked all settings, crosschecked that the password is a valid password, still, my iPad gives me an error "incorrect password ".  It only makes sense if we were using an incorrect password, but we weren't! Help!

    Hello lillybgr8,
    The following article provides a few tips that may help get your iPad working with your employer's WiFi network.
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Cheers,
    Allen

Maybe you are looking for

  • Flash Embed in Dreamweaver and IE on PC

    Hi, I just completed my first flash page and everything looks good so far. But I'm having an issue when I look at the page on a PC using IE. When the page load's the flash movie needs to be clicked on before the buttons are allowed to roll over. This

  • Can't access a Bean from a JSP page !

    Hello everybody, I work with Oracle 8i 8.1.7, it means Oracle HTTP Server + Oracle JSP 1.1.0.0.0. But i don't use the Oracle Servlet Engine. In this context, i try to load ` JSP page, which instantiate a Bean. But it is impossible to access to this b

  • Photoshop Resolution for Retina Display

    Hi, I am a iPhone/iPad UI designer. I have a question that I wanted to solve for a long time. I have created a graphics for native apps,i.e. 300x180 px with 72 ppi resolutions. Also created the same graphics 300x180 px dimension with 326ppi. For reti

  • Problem with Variable Entry Screen

    Hello All, We upgraded our development systems to NW2004s and came across the following issue: All our Bex queries have restricted time characteristics with variables entries. When we execute a query it should pop-up the variable selection screen for

  • How to control print-out in GI Slip based on storage location

    Hi Experts, Presently my smartform - GI Slip is giving print out for each line item. But the requirement is: no. of print out will depend on no. of storage location, independent of line item. Since GI Slip is a collective slip hence its showing same