On Sun, Nov 03, 2002 at 11:01:09AM +0000, alex wrote:
> 
> Hi,
> 
> I'm working on a photo / movie library thing:
> 
>   http://slab.org/yami/
> 
> (sourcecode is here: http://slab.org/yami_source/ , mail privately for
> info)
> 
> I'd like to support avi files nicely, namely by automatically generating
> a thumbnail image that represents the avi file.  Simply showing a frame
> from the movie as a .png or .jpeg would do, although it might be fun
> playing with taking a few frames from the movie, and making an animated
> gif.

I think the ffmpeg library should be your choice - I'm porting things
from avifile there anyway - and one thay avifile might become just
on OO wrapper over this library with slightly different API 
(which is designed to support also some archaick win32 codecs and
has few other magic tricks inside)

But for your work I would have recommend ffmpeg library - it's in C
it's ultimately fast - it's portable and many many more...


> So I'm wondering if anyone has done this already?  Or have some code
> that does something similar that I could adapt.  Or have any advice in
> general :)

Yep - I guess ffmpeg already could do a slide show from movie
(and I just think that actually mplayerxp already does what you
are probably trying to build)

> I'm basically just wanting a commandline tool that will save the 'nth'
> frame of a movie to an image file such as pnm.  

The only problem I could see here with ffmpeg is that there is generaly
bad support for seeking at this moment (this will change - but right now
it's not very good)


> It would be nice to be able to express the frame number as a percentage,
> ie 0.5 to get the frame half way through the avi.  But I would be happy
> adding that functionality myself.

Well you know - such arithmetic could be simply done in your code if you
know the movie length - I never understant xine developers that they
have put such API call into their library - it's IMHO useless.

Again - there will arise problem with ffmpeg - it currently doens't know
the correct length of the movie in case the movie (or just header)
is broken - yet these are minor details I think.

-- 
  .''`.    Zdenek Kabelac  kabi@{debian.org, users.sf.net, fi.muni.cz}
 : :' :          Debian GNU/Linux maintainer - www.debian.{org,cz}
 `. `'                          Overclocker's house :)
   `-              http://www.bbspot.com/News/2002/08/house.html        

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to