Forum: Ruby on Rails dealing with media file formats and RMagick.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sam Donaldson (Guest)
on 2006-05-16 04:00
(Received via mailing list)

I basically have the following problem - I have a site that will allow
people to upload videos.  The video may be in any format - .mov, .avi,
etc.. I can either use embedded Windows Media Player, or embedded
to play the files but the problem is, how do I create stills from the
to display them as .jpg's on my site so when somebody clicks on them,
video starts playing?  RMagick only supports .avi files.  Are there any
other packages out there for Rails?

443581d837fba2f40b2dbedd337f0cc5?d=identicon&s=25 Dorian M. (tachekent)
on 2006-05-16 19:35
(Received via mailing list)
what platform are you on?
you may have some luck with the ffmpeg project which supports many video

and then read these:

I'm sure within all that there is an answer to your question.
also, makes me wonder if I should be doing that for something...

Sam Donaldson (Guest)
on 2006-05-16 21:19
(Received via mailing list)
I'm on Windows.  So I guess these may not help unless they have a
version.  Bummer, do you have anything else?  A lot of the Macromedia
stuff could possibly help here.  They have a way of doing the encoding
converting into .flv.  Although, still trying to figure out how to do it
automatically.  Anything else on the Windows side would be helpful.

Thanks a bunch.
Rick Olson (Guest)
on 2006-05-21 20:25
(Received via mailing list)
> > >
> > > Thanks.

+1 for ffmpeg.  I'm using mencoder/mplayer in a project (which uses
ffmpeg) and it handles anything I throw at it.  It creates stills and
can even convert to flv.  I would really love a ruby friendly module

As for windows, I've seen folks use Sorensen Squeeze for this sort of
thing.  I believe it can watch a directory and convert videos as
they're dropped in.  Be prepared to pay some $$$ for anything on
Windows though.
Sam Donaldson (Guest)
on 2006-05-22 10:35
(Received via mailing list)
One of the blog posts listed by Dorian shows how to fork off an ffmpeg
process to do the conversion on-demand.  Is there a way to use IO.popen
collect some kind of status after the conversion has completed to know
the conversion is done?  There seems to be a ffmpeg for Windows too.

This topic is locked and can not be replied to.