freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Fri Oct 18, 2019 3:27 pm
Board index » MXF Categories » MXF Clarifications



Post new topic Reply to topic  [ 1 post ] 
Author
Search for:
Message

Offline
Site Admin

Joined: Thu Apr 15, 2004 10:28 am
Posts: 17

Post Posted: Sun Apr 18, 2004 3:04 pm 
Top  
Finding the footer of an MXF file is not always easy, the general algorithm to use is as follows:
  • Check the FooterPosition property in the header partition pack
  • Next, check for a Random Index Pack at the end of the file (read the last 4 bytes of the file which should be the size of the RIP, seek back this many bytes and see if you find a RIP key) the last entry will be for the footer
  • Next, scan backwards through the file, byte-by-byte looking for the footer key, if you find it validate that it is a footer not just the bytes that make up the footer key as part of some other data field.
  • If all else fails you may have to scan every KLV from the start of the file - this is not likely to be quick!
As you can see it is much easier to find the footer if either the FooterPosition property in the header is used or the file contains a Random Index Pack. So, if it is not possible to complete FooterPosition when encoding an MXF file add a RIP.

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

Jump to:  


Who is online

Users browsing this forum: No registered users and 1 guest

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