Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 June 9, 2010 12:50:15

Venkatraman S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


Hi,

Say, a user uploads a video in my website, then how can i generate a
thumbnail version of the video on the go?

-V-http://twitter.com/venkasub--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 June 9, 2010 13:13:59

Tom E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


On Wed, Jun 9, 2010 at 12:50 PM, Venkatraman S <venka...@gmail.com> wrote:
> Hi,
>
> Say, a user uploads a video in my website, then how can i generate a
> thumbnail version of the video on the go?
>
> -V-
>http://twitter.com/venkasub>

ffmpeg would be the best way. Use python subprocess module to call to
the command line version.http://www.ffmpeg.org/ffmpeg-doc.htmlCheers

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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 June 9, 2010 13:22:29

Dmitry D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


Hi!

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?

In addition to ffmpeg I would give user an option to provide a thumbnail.
The reason is simple: you cannot automatically choose the best frame where
to take the thumbnail...

--
Dmitry Dulepov
Twitter:http://twitter.com/dmitryd/Web:http://dmitry-dulepov.com/--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 June 9, 2010 13:43:30

Baurzhan I.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


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.

With kind regards,
--
Baurzhan Ismagulovhttp://www.kz-easy.com/--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 June 9, 2010 14:03:49

Tom E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#6 June 9, 2010 17:45:06

Venkatraman S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


On Wed, Jun 9, 2010 at 6:33 PM, Tom Evans <tevans...@googlemail.com> wrote:

> 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/>
>
Perfect. Wish they had Windows installs for python 2.6 :(

-V-http://twitter.com/venkasub--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#7 June 9, 2010 23:44:54

Joe G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


You could also check into MTN - Movie Thumbnailer;http://moviethumbnail.sourceforge.net/_____

From: django-users@googlegroups.com
On Behalf Of Venkatraman S
Sent: Wednesday, June 09, 2010 4:50 AM
To: django-users@googlegroups.com
Subject: Generate thumbnails from videos



Hi,

Say, a user uploads a video in my website, then how can i generate a
thumbnail version of the video on the go?

-V-http://twitter.com/venkasub--
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 athttp://groups.google.com/group/django-users?hl=en.

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#8 June 14, 2010 14:29:38

Venkatraman S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Generate thumbnails from videos


Was just wondering whether there is any video player which would give me the
frame number when i stop it? I mean, probably at the click of a button when
the movie is playing i need the frame number.

The idea is , i am working on a component which i want to release in open
source by which online video management becomes 'slightly' easy. I just want
to provide basic video administration.

-V


On Thu, Jun 10, 2010 at 4:14 AM, Joe Goldthwaite <j...@goldthwaites.com>wrote:

> You could also check into MTN – Movie Thumbnailer;
>http://moviethumbnail.sourceforge.net/>
>
> ------------------------------
>
> *From:* django-users@googlegroups.com *On Behalf Of *Venkatraman S
> *Sent:* Wednesday, June 09, 2010 4:50 AM
> *To:* django-users@googlegroups.com
> *Subject:* Generate thumbnails from videos
>
>
>
> Hi,
>
> Say, a user uploads a video in my website, then how can i generate a
> thumbnail version of the video on the go?
>
> -V-
>http://twitter.com/venkasub>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 20th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support