forked from 0x2620/pandora
add optoin to use melt(MLT) to extract frames from H264
This commit is contained in:
parent
1efd49e19a
commit
ada3bbe346
5 changed files with 44 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue