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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
036be8d5d83a98e546b98d64e3fd6c20?d=identicon&s=25 Sam Donaldson (Guest)
on 2006-05-16 04:00
(Received via mailing list)
Hello,

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,
.wmv
etc.. I can either use embedded Windows Media Player, or embedded
Quicktime
to play the files but the problem is, how do I create stills from the
movies
to display them as .jpg's on my site so when somebody clicks on them,
the
video starts playing?  RMagick only supports .avi files.  Are there any
other packages out there for Rails?

Thanks.
F719c6cb34bd5b691c12b373b7244b4d?d=identicon&s=25 Dorian Mcfarland (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
formats:
http://ffmpeg.sourceforge.net/index.php

and then read these:
http://www.db75.com/new_blog/?p=130
http://www.db75.com/new_blog/?p=211

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...

dorian
036be8d5d83a98e546b98d64e3fd6c20?d=identicon&s=25 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
windows
version.  Bummer, do you have anything else?  A lot of the Macromedia
Flash
stuff could possibly help here.  They have a way of doing the encoding
and
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.
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 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
though.

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.
036be8d5d83a98e546b98d64e3fd6c20?d=identicon&s=25 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
to
collect some kind of status after the conversion has completed to know
when
the conversion is done?  There seems to be a ffmpeg for Windows too.

Thanks.
This topic is locked and can not be replied to.