Beispiel #1
0
    def __init__(self, fdesc, primer, debug=False, dark=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.primer = primer
        self.dark = dark
        self.data = OrderedDict()
        self.set_type = 'DataSet'
        self.element_mapping = {}

        if self.key.encode('hex_codec') not in MXFDataSet.dataset_names.keys():
            #print "MXFDataSet is dark", self.key.encode('hex_codec')
            self.dark = True
            self.set_type = 'Dark' + self.set_type
        else:
            self.set_type = MXFDataSet.dataset_names[self.key.encode(
                'hex_codec')]

        if not self.dark:
            if not self.key.encode('hex_codec').startswith('060e2b34'):
                raise S377MException('Not a SMPTE administrated label')

            if self.key[4] != '\x02':
                raise S377MException('Not an MXF Set/Pack')

            if self.key[5] != '\x53':
                raise S377MException(
                    'Non-Local set syntax not supported yet (0x%x)' %
                    ord(self.key[5]))
Beispiel #2
0
    def __init__(self, fdesc, debug=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.data = OrderedDict()

        if not re.search('060e2b34020501010d01020101(0[2-4])(0[0-4])00',
                         self.key.encode('hex_codec')):
            raise S377MException('Not a valid Partition Pack key: %s' %
                                 self.key.encode('hex_codec'))
Beispiel #3
0
    def __init__(self, fdesc, rp210=None, debug=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.data = OrderedDict()

        if rp210:
            self.rp210 = rp210
        else:
            self.rp210 = Singleton(RP210)

        if self.key and not re.search('060e2b34020501..0d01020101050100', self.key.encode('hex_codec')):
            raise S377MException('Not a valid Primer Pack key: %s' % self.key.encode('hex_codec'))
Beispiel #4
0
    def __init__(self, fdesc, rp210=None, debug=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.data = OrderedDict()

        if rp210:
            self.rp210 = rp210
        else:
            self.rp210 = Singleton(RP210)

        if self.key and not re.search('060e2b34020501..0d01020101050100',
                                      self.key.encode('hex_codec')):
            raise S377MException('Not a valid Primer Pack key: %s' %
                                 self.key.encode('hex_codec'))
Beispiel #5
0
    def __init__(self, fdesc, primer, debug=False, dark=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.primer = primer
        self.dark = dark
        self.data = OrderedDict()
        self.set_type = 'DataSet'
        self.element_mapping = {}

        if self.key.encode('hex_codec') not in MXFDataSet.dataset_names.keys():
            #print "MXFDataSet is dark", self.key.encode('hex_codec')
            self.dark = True
            self.set_type = 'Dark' + self.set_type
        else:
            self.set_type = MXFDataSet.dataset_names[self.key.encode('hex_codec')]

        if not self.dark:
            if not self.key.encode('hex_codec').startswith('060e2b34'):
                raise S377MException('Not a SMPTE administrated label')

            if self.key[4] != '\x02':
                raise S377MException('Not an MXF Set/Pack')

            if self.key[5] != '\x53':
                raise S377MException('Non-Local set syntax not supported yet (0x%x)' % ord(self.key[5]))
Beispiel #6
0
    def __init__(self, fdesc, debug=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.data = []

        if self.key.encode('hex_codec') != '9613b38a87348746f10296f056e04d2a':
            raise Exception('Not a valid Avid ObjectDirectory key')
Beispiel #7
0
    def __init__(self, fdesc, debug=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.data = OrderedDict()

        if not re.search('060e2b34020501010d01020101(0[2-4])(0[0-4])00', self.key.encode('hex_codec')):
            raise S377MException('Not a valid Partition Pack key: %s' % self.key.encode('hex_codec'))
Beispiel #8
0
 def __init__(self, fdesc, debug=False):
     InterchangeObject.__init__(self, fdesc, debug)
     self.data = {'partition': []}
Beispiel #9
0
 def __init__(self, fdesc, debug=False):
     InterchangeObject.__init__(self, fdesc, debug)
Beispiel #10
0
 def __init__(self, fdesc, debug=False):
     InterchangeObject.__init__(self, fdesc, debug)
     self.data = {'partition': []}
Beispiel #11
0
 def __init__(self, fdesc, debug=False):
     InterchangeObject.__init__(self, fdesc, debug)
Beispiel #12
0
    def __init__(self, fdesc, debug=False):
        InterchangeObject.__init__(self, fdesc, debug)
        self.data = []

        if self.key.encode("hex_codec") != "9613b38a87348746f10296f056e04d2a":
            raise Exception("Not a valid Avid ObjectDirectory key")