freeMXF.org http://freemxf.org/forum/ |
|
add a Multiple descriptor in the metadata http://freemxf.org/forum/viewtopic.php?f=2&t=128 |
Page 1 of 1 |
Author: | MarcoBiagi [ Thu Jan 03, 2008 3:35 pm ] |
Post subject: | add a Multiple descriptor in the metadata |
I need to add a multiple descriptor to a file package. If i want to add a normal descriptor i do this: FilePackage->AddChild(Descriptor_UL)->MakeLink (WrapConfig->EssenceDescriptor); So if i want to add a multiple descriptor i think that i should do this: MDObjectPtr multipleDescriptor=new MDObject(MultipleDescriptor_UL); multipleDescriptor->addChild(SubDescriptor_UL)->MakeLink(WrapConfigA->EssenceDescriptor); multipleDescriptor->addChild(SubDescriptor_UL)->MakeLink(WrapConfigB->EssenceDescriptor); FilePackage->AddChild(multipleDescriptor); is this the right way?thx |
Author: | MarcoBiagi [ Sun Jan 13, 2008 12:30 pm ] |
Post subject: | |
ok. This code is wrong and i found the right code in the mxfwrap application. it is something like this: mxflib::MDObjectPtr multipleDescriptor=new mxflib::MDObject(mxflib::MultipleDescriptor_UL); multipleDescriptor->AddChild(mxflib::SubDescriptorUIDs_UL); mxflib::MDObjectPtr subDescriptorA=WrapConfigA->EssenceDescriptor; multipleDescriptor[mxflib::SubDescriptorUIDs_UL]->AddChild()->MakeRef(subDescriptorA); mxflib::MDObjectPtr subDescriptorB=WrapConfigB->EssenceDescriptor; multipleDescriptor[mxflib::SubDescriptorUIDs_UL]->AddChild()->MakeRef(subDescriptorB); sourcePackage->AddChild(mxflib::Descriptor_UL)->MakeRef(multipleDescriptor); |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |