On Wed, Jun 9, 2010 at 1:43 PM, Baurzhan Ismagulov <i...@radix50.net> wrote:
> On Wed, Jun 09, 2010 at 05:20:07PM +0530, Venkatraman S wrote:
>> Say, a user uploads a video in my website, then how can i generate a
>> thumbnail version of the video on the go?
>
> Executing "mplayer -vo jpeg -frames 1 -ao null FILE" and using
> 00000001.jpg is one way; I'm not aware of a python-only solution of
> comparable simplicity.
>

I would recommend using ffmpeg over mplayer for this purpose. ffmpeg
actually has releases, where as there hasn't been a release of mplayer
for over 3 years - the mplayer devs got frustrated at packaging it,
and now recommend users to use tip of svn.

Also, mplayer is based on the same libraries as ffmpeg, so you get the
same end results.

Oooh, theres also a python wrapper around ffmpeg, and their example on
their frontpage does precisely what you asked for:

http://code.google.com/p/pyffmpeg/

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to