Exemplo n.º 1
0
def get_duration(filename):
    debug("Getting duration of %s" % filename)
    length = ffprobe.duration(filename)
    if length == None:
        length = 0
    return length
Exemplo n.º 2
0
 def _get_length(self, filename):
     self._debug("Getting duration of %s" % filename)
     length = ffprobe.duration(filename)
     if length == None:
         length = 0
     return length
Exemplo n.º 3
0
 def duration(self):
     if self._duration is None:
         self._duration = ffprobe.duration(self.filename)
     return self._duration