freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Mon Dec 30, 2024 2:27 pm
Board index » MXF Categories » freeMXF.org Tools



Post new topic Reply to topic  [ 3 posts ] 
Author
Search for:
Message

Offline
Rookie

Joined: Tue Mar 02, 2010 5:11 pm
Posts: 3

Post Posted: Tue Mar 02, 2010 5:22 pm 
Top  
Hi,

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.

Best Regards

 Profile  

Offline
Insider

Joined: Thu Apr 15, 2004 10:39 am
Posts: 198
Location: Scotland

Post Posted: Wed Mar 03, 2010 12:08 am 
Top  
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

 Profile WWW  

Offline
Rookie

Joined: Tue Mar 02, 2010 5:11 pm
Posts: 3

Post Posted: Wed Mar 03, 2010 11:05 pm 
Top  
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?

 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Jump to:  


Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group :: Style based on FI Subice by phpBBservice.nl :: All times are UTC