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