Hi,
We are trying to search masterclip with search function. For this tape, there are 5 masterclips. We would like to search a subclip with a start time. The web service search parameters I used to search list here:
param.SearchGroup = New SearchGroupType()
param.SearchGroup.[Operator] = "AND"
param.SearchGroup.AttributeCondition = New AttributeConditionType(3) {}
param.SearchGroup.AttributeCondition(0) = New AttributeConditionType()
param.SearchGroup.AttributeCondition(0).Condition = "EQUALS"
param.SearchGroup.AttributeCondition(0).Attribute = New AttributeType()
param.SearchGroup.AttributeCondition(0).Attribute.Name = "Tape"
param.SearchGroup.AttributeCondition(0).Attribute.Group = "SYSTEM"
param.SearchGroup.AttributeCondition(0).Attribute.Value = "234567"
param.SearchGroup.AttributeCondition(1) = New AttributeConditionType()
param.SearchGroup.AttributeCondition(1).Condition = "EQUALS"
param.SearchGroup.AttributeCondition(1).Attribute = New AttributeType()
param.SearchGroup.AttributeCondition(1).Attribute.Name = "Type"
param.SearchGroup.AttributeCondition(1).Attribute.Group = "SYSTEM"
param.SearchGroup.AttributeCondition(1).Attribute.Value = "masterclip"
param.SearchGroup.AttributeCondition(2) = New AttributeConditionType()
param.SearchGroup.AttributeCondition(2).Condition = "GREATER_THAN_OR_EQUAL_TO"
param.SearchGroup.AttributeCondition(2).Attribute = New AttributeType()
param.SearchGroup.AttributeCondition(2).Attribute.Name = "Start"
param.SearchGroup.AttributeCondition(2).Attribute.Group = "SYSTEM"
param.SearchGroup.AttributeCondition(2).Attribute.Value = "01:36:45:14"
param.SearchGroup.AttributeCondition(3) = New AttributeConditionType()
param.SearchGroup.AttributeCondition(3).Condition = "LESS_THAN_OR_EQUAL_TO"
param.SearchGroup.AttributeCondition(3).Attribute = New AttributeType()
param.SearchGroup.AttributeCondition(3).Attribute.Name = "End"
param.SearchGroup.AttributeCondition(3).Attribute.Group = "SYSTEM"
param.SearchGroup.AttributeCondition(3).Attribute.Value = "01:36:45:14"
But it always return all 5 masterclips. The condition GREATER_THAN_OR_EQUAL_TO and LESS_THAN_OR_EQUAL_TO are not bringing back the clip we wanted. If I used "EQUALS" with the masterclip start time. I could bring back just that masterclip. Is it because that we did something wrong here for the search.
Thank you very much for the help,
Don
I guess my question was: is there an operation (function) I could use to search a segment (based on start and end timecode) which is in a masterclip and bring this masterclip back as a result?
xudon,
Did you look at the FindRelatives call?
"The FindRelatives operation is used to get a list of the Avid assets (masterclip, sequence, subclip, effect, etc) related to a specific asset. For example, the relatives of a masterclip would be the sequences it is used in as well as the subclips created from it. The response also contains attributes for each of the related assets."
- Rob
We ran a test of this here and it works.
Here is the masterclip:
<Attribute Name="Display Name" Group="USER">Trans_20Secs</Attribute>
<Attribute Name="MOB ID" Group="SYSTEM">060a2b340101010101010f0013-000000-0000000b223714ee-060e2b347f7f-2a80</Attribute>
<Attribute Name="Type" Group="SYSTEM">masterclip</Attribute>
<Attribute Name="Start" Group="SYSTEM">01:00:51:06</Attribute>
<Attribute Name="End" Group="SYSTEM">01:01:11:11</Attribute>
Here is the subclip:
<Attribute Name="Display Name" Group="USER">Trans_20Secs_subclip</Attribute>
<Attribute Name="MOB ID" Group="SYSTEM">060a2b340101010101010f0013-000000-000a11d8fc07fbf2-060e2b347f7f-2a80</Attribute>
<Attribute Name="Type" Group="SYSTEM">subclip</Attribute>
<Attribute Name="Start" Group="SYSTEM">01:00:54:16</Attribute>
<Attribute Name="End" Group="SYSTEM">01:01:01:06</Attribute>
Here's the call to FindRelatives, passing in the sub clip:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://avid.com/interplay/ws/assets/types">
<soapenv:Header>
<typ:UserCredentials>
<typ:Username>user</typ:Username>
<typ:Password>pass</typ:Password>
</typ:UserCredentials>
</soapenv:Header>
<soapenv:Body>
<typ:FindRelatives>
<typ:InterplayURI>interplay://WGC?mobid=060a2b340101010101010f0013-000000-000a11d8fc07fbf2-060e2b347f7f-2a80</typ:InterplayURI>
</typ:FindRelatives>
</soapenv:Body>
</soapenv:Envelope>
Here's the result (it found the containing masterclip):
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<FindRelativesResponse xmlns="http://avid.com/interplay/ws/assets/types">
<Results>
<AssetDescription>
<InterplayURI>interplay://WGC?mobid=060a2b340101010101010f0013-000000-0000000b223714ee-060e2b347f7f-2a80</InterplayURI>
<Attributes>
<Attribute Name="Moniker" Group="SYSTEM">1|EF4A65FA-4B30-4319-808D-AE7D316F5DCB|*|17353|*</Attribute>
<Attribute Name="Created By" Group="SYSTEM">user14</Attribute>
<Attribute Name="Creation Date" Group="SYSTEM">2014-04-30T15:05:08.000-0400</Attribute>
<Attribute Name="Duration" Group="SYSTEM">00:00:20:05</Attribute>
<Attribute Name="Media Size" Group="SYSTEM">144456</Attribute>
<Attribute Name="Media Status" Group="SYSTEM">nearonline</Attribute>
<Attribute Name="Modified By" Group="SYSTEM">user14</Attribute>
<Attribute Name="Modified Date" Group="SYSTEM">2014-04-30T15:05:18.000-0400</Attribute>
<Attribute Name="Source ID" Group="SYSTEM">060a2b340101010101010f0013-000000-0000000b21c714ee-060e2b347f7f-2a80</Attribute>
<Attribute Name="Tape" Group="SYSTEM">Trans_20Secs</Attribute>
<Attribute Name="Tracks" Group="SYSTEM">V1 A1</Attribute>
</Attributes>
</AssetDescription>
</Results>
</FindRelativesResponse>
</soap:Body>
</soap:Envelope>
Thank you so much for the fast response. You guys are the best.
Since the timecode I'm searching is from aonther system. So it ends up I have to bring all the masterclips back for that tape (5 parts), then search the time range I need. But your solution does give me more options to work with.
© Copyright 2011 Avid Technology, Inc. Terms of Use | Privacy Policy | Site Map | Find a Reseller