TheNone
TheNone

Reputation: 5802

Upload video and create thumbnail from video in django

Is there any model field for video in django? Any suggestion for plugin or snippets will be appreciated.

Upvotes: 9

Views: 6612

Answers (2)

Jeremiah Rose
Jeremiah Rose

Reputation: 4122

MoviePy doesn't handle uploading in Django, but it can do thumbnail generation very easily:

from moviepy.editor import *
clip = VideoFileClip("example.mp4")
clip.save_frame("thumbnail.jpg",t=1.00)

http://zulko.github.io/moviepy/index.html

Upvotes: 13

thedjpetersen
thedjpetersen

Reputation: 29224

You may want to look at the django-video app. It supports thumbnail generation.

Upvotes: 3

Related Questions