assemble many images files into one .mpeg or .mov

A

Andrew Arrow

I'm looking to use something like:

http://gd2.rubyforge.org/

to generate several 100 images, and then run some other ruby program to
combine the images into a video file (mpeg or mov or any standard
format.)

Is there a ruby library for this?

Thanks.
 
T

Tim Hunter

Andrew said:
I'm looking to use something like:

http://gd2.rubyforge.org/

to generate several 100 images, and then run some other ruby program to
combine the images into a video file (mpeg or mov or any standard
format.)

Is there a ruby library for this?

Thanks.

Check out RMagick for generating the images. You can also RMagick to
assemble short sequences into a video (AVI or MPEG) but for longer
sequences you'll probably be better off using another program such as
ffmpeg, mpeg2enc, or mmencode to assemble the individual images into
video format.

Here's the word on ImageMagick's support for movies:
http://www.imagemagick.org/Usage/formats/#mpeg.
 
A

Andrew Arrow

Thanks, I started using ffmpeg and it couldn't have been easier.

if you have seq1.png, seq2.png, seq3.png, etc. run

ffmpeg -i seq%d.png test.mov

and it works perfectly.
 
T

Tim Hunter

Andrew said:
Thanks, I started using ffmpeg and it couldn't have been easier.

if you have seq1.png, seq2.png, seq3.png, etc. run

ffmpeg -i seq%d.png test.mov

and it works perfectly.

Wonderful! The right tool for the job.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top