add optoin to use melt(MLT) to extract frames from H264

This commit is contained in:
j 2014-09-25 15:28:08 +02:00
commit ada3bbe346
5 changed files with 44 additions and 13 deletions

View file

@ -1084,7 +1084,7 @@ class Item(models.Model):
path = os.path.join(settings.MEDIA_ROOT, stream.path(),
'frames', "%dp"%height, "%s.jpg"%position)
if not os.path.exists(path) and stream.media:
extract.frame(stream.media.path, path, position, height)
extract.frame(stream.media.path, path, position, height, info=stream.info)
if not os.path.exists(path):
return None
return path