freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Sun Mar 29, 2020 5:36 pm
Board index » MXF Categories » General MXF



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

Offline
Board User

Joined: Fri Sep 28, 2007 7:03 pm
Posts: 11

Post Posted: Thu May 29, 2008 4:56 pm 
Top  
Hi again,

We'd like to use the random index pack at the end of our mxf files,
and then also, if possible, end the file on a 512 byte boundary.

This, however, does not seem to be easy to do, given that the footer partition pack precedes it, and ends with padding on a 512 byte mark
(our KAG size).

Our random index is only 60 bytes (points to header, 1 body, and footer),
but I get the impression one can not pad the random index at the end,
nor can padding be placed within the random index (you can't have
the filler KLV within another KLV, can you? ).
And then you can't pad before the random index, because it butts
up against the filler for the footer partition pack, and you're not
supposed to place 2 filler KLV's back to back, right?

Is there a way around this?

Thanks, Tommy Schell

:roll:

 Profile  

Offline
Board User

Joined: Fri Jul 28, 2006 2:58 am
Posts: 10

Post Posted: Tue Sep 09, 2008 7:36 am 
Top  
just an idea.

Insert 37 dummy empty body paritions before footer partition,
and use BER of RIP 12byte length form.
8b 00 00 00 00 00 00 00 00 00 02 00
Then, 512 byte = 16(key) + 12(ber) + 12 * 40(number of paritions) + 4(length)

But many implementation maybe ignore 12byte length BER form.

 Profile  

Offline
Insider

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

Post Posted: Tue Sep 09, 2008 10:17 am 
Top  
It would not be valid to use a 12-byte length!

At the moment WriteFooter() always adds a RIP that is aligned to the current KAG.

If you need the RIP to end on a KAG boundary I suggest that after calling WriteFooter() you move back to the location of the KLVFill following the footer and re-write that KLVFill to be larger by (KAGSize - Size of RIP) then add a new RIP.

 Profile WWW  

Offline
Board User

Joined: Fri Sep 28, 2007 7:03 pm
Posts: 11

Post Posted: Tue Sep 09, 2008 3:07 pm 
Top  
I did something similar: I found in the SMPTE docs (S377M) that each partition can have its own unique KAG size.

So I simply changed my KAG size in my footer to accomodate this:

KAG = 512 - sizeof (RIP)

Footer Partition pack is padded to the KAG, followed by RIP.
Then the RIP ends on a 512 byte boundary.

Thanks
Tommy


:lol:

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

Jump to:  


Who is online

Users browsing this forum: No registered users and 0 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