extract strips too

This commit is contained in:
j 2010-09-08 16:42:07 +02:00
parent 8947e51243
commit 38395eeed9
2 changed files with 4 additions and 1 deletions

View file

@ -302,7 +302,7 @@ def divide(num, by):
arr.append(div + (i > by - 1 - mod))
return arr
def strip_timeline(movie, cuts, info, prefix):
def timeline_strip(movie, cuts, info, prefix):
_debug = False
duration = info['duration']
video_height = info['video'][0]['height']

View file

@ -441,6 +441,9 @@ class Movie(models.Model):
stream.save()
extract.timeline(stream.video.path, self.timeline_prefix)
extract.timeline_strip(self, self.metadata['cuts'], stream.info, self.timeline_prefix[:-8])
stream.extract_derivatives()
self.metadata['cuts'] = extract.cuts(self.timeline_prefix)
self.metadata['average_color'] = extract.average_color(self.timeline_prefix)