|number of essence containers
|Page 1 of 1|
|Author:||sjdalati [ Tue Mar 02, 2010 5:22 pm ]|
|Post subject:||number of essence containers|
how to retrieve the number of essence containers in an MXF file?
and how to select a specific one - do i use TestFile->Seek(Es) - then get the
elementary stream from that essence container.
|Author:||Matt Beard [ Wed Mar 03, 2010 12:08 am ]|
The number of essence containers is equal to the number of entries in the EssenceDataObjects array in the ContentStorage set. Each of these entries will be a reference to an EssenceContainerData set specifying the BodySID of the container (zero if the container is external).
If you are using the BodyReader class you will get callbacks to the handlers registered via MakeGCReader() for each BodySID. The normal way to use this would be to simply read the whole file and handle each stream as it produces data. If you want to go to a specific stream you can use the Seek(BodySID, Pos) method of BodyReader - where Pos is the offset with in that essence container, i.e. zero gives the first byte of that container
|Author:||sjdalati [ Wed Mar 03, 2010 11:05 pm ]|
Thank you for the quick reply
how do i access the ContentStorage set? also in the call back handler of the BodyReader::ReadFromFile() 'bool HandleData(GCReaderPtr Caller, KLVObjectPtr Object)' the KLVObject Data set is always empty, how do retrieve the Stream Data?
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group