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.
···
--
Posted via http://www.ruby-forum.com/.
Andrew Arrow wrote:
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: Common Formats -- IM v6 Examples.
···
--
RMagick: http://rmagick.rubyforge.org/
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.
···
--
Posted via http://www.ruby-forum.com/.
Andrew Arrow wrote:
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.
···
--
RMagick: http://rmagick.rubyforge.org/