extract strips too
This commit is contained in:
parent
8947e51243
commit
38395eeed9
2 changed files with 4 additions and 1 deletions
|
@ -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']
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue