예제 #1
0
def get_duration(filename):
    debug("Getting duration of %s" % filename)
    length = ffprobe.duration(filename)
    if length == None:
        length = 0
    return length
예제 #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
예제 #3
0
파일: schedule.py 프로젝트: wxs/bumptv
 def duration(self):
     if self._duration is None:
         self._duration = ffprobe.duration(self.filename)
     return self._duration