Ejemplo n.º 1
0
 def useFileProp(self, prop, is_vbr):
     self.creation_date = prop["creation_date"].value
     self.duration = durationWin64(prop["play_duration"].value)
     if prop["seekable"].value:
         self.comment = u"Is seekable"
     value = prop["max_bitrate"].value
     text = prop["max_bitrate"].display
     if is_vbr is True:
         text = "VBR (%s max)" % text
     elif is_vbr is False:
         text = "%s (CBR)" % text
     else:
         text = "%s (max)" % text
     self.bit_rate = (value, text)
Ejemplo n.º 2
0
 def createValue(self):
     value = Bits.createValue(self)
     return durationWin64(value)