Example #1
0
    def header_partition_parse(self):
        """ Parse MXF header partition. """

        # SMTPE 377M: Header Partition Pack, first thing in a MXF file
        header_partition_pack = MXFPartition(self.fd)
        try:
            header_partition_pack.read()
        except S377MException, error:
            print error
Example #2
0
def mxf_kind(filename):
    """ Lookup the MXF data start position and returns appropriate parser. """

    mxf = MXFParser(filename)
    mxf.open()

    # SMTPE 377M: Header Partition Pack, first thing in a MXF file
    header_partition_pack = MXFPartition(mxf.fd)
    try:
        header_partition_pack.read()
    except S377MException, error:
        print error
Example #3
0
    def footer_partition_parse(self):
        """ Parse MXF footer partition. """

        # SMTPE 377M: Footer Partition Pack
        footer_partition_pack = MXFPartition(self.fd)
        footer_partition_pack.read()
        self.data['footer']['partition'] = footer_partition_pack

        key = InterchangeObject.get_key(self.fd)
        if key in ('060e2b34010101010201021001000000',
            '060e2b34010101010301021001000000'):
            # KLV Fill item
            klv = KLVFill(self.fd)
            klv.read()
            self.data['footer']['klvs'].append(klv)