views:

30

answers:

1

Hi,

I need to write a Ruby script that can take a collection of jpeg files and creat a slideshow of them in .flv format. the .flv file then needs to be stored into a database.

Does anyone know what libraries/gems/I'm going to need to get this started?

+1  A: 

FFmpeg is capable of converting single images to a .flv movie. This is how it's done.

FFmpeg is a command line tool which is very powerful and widely accepted. (Even video professionals like putpat.tv use that.) The documentation can be found here.

There is also a ffmpeg gem for Ruby. This is a DSL that should make your life easier.

But:

It is no slideshow library. You don't have a slideshow user interface, you can just create a movie out of it.

For slideshows, the best available solution (imho) is Scribd.com. It can convert slideshows from various formats and provides a nice user interface. You probably would have to join the jpegs in another format first. (PDF?) Then, there is also a plugin available for Ruby (scribd-fu). However, it is not intended to be stored in a database.

Thus, I cannot provide the perfect solution to you. And I would be curious about better recommendations...

duddle
yeah, i was looking at an open source for ffmpeg but had no idea they had a ruby gem for it! thanks a lot. I'll let you know how that solution goes.
dpigera
ok, cool. In case that you don't know: it is possible to accept an answer. this means that your problem as marked as "solved". You could wait for more answers but should accept an answer at some time. Otherwise, your "accept rate" goes down and people don't answer your questions anymore as they don't get reputation points for it. ;)
duddle