Ruby screen capture movies via ImageMagick

B

Bil Kleb

Inspired by the videos available on http://www.rubyonrails.org but
disappointed when trying to render the .mov format on my linux box,
I was looking at the instructions at

http://www.linuxdevcenter.com/pub/a/linux/2004/03/04/screen_capture_movies.html

for doing a screen capture with ImageMagick and converting the stills
to mpeg.

Their 6 line bash script to create the initial series of stills became
3 lines of Ruby.

However, I'd like to automate the whole process of capturing, converting
to mpeg, and so forth. I started thinking that I should be using the Ruby's
ImageMagick binding, RMagick, etc.

Then I thought: I should just ask here because someone has probably
figured all this out already...

Regards,
 
V

vruz

Then I thought: I should just ask here because someone has probably
figured all this out already...

Not exactly what you're asking for, but maybe it serves your purposes.

VNC2SWF uses the VNC protocol to capture the screen image and records
it to a Macromedia Flash-compatible SWF file.

The project website:
http://www.unixuser.org/~euske/vnc2swf/

I have used VNC2SWF, with minor tweaking of configuration parameters
seems to do a good job.

It only runs on unices/Linux but since it works over the VNC protocol,
you can capture a remote Windows screen without any problem.
This is a screen capture I made in Linux, taking it from a Windows machine:
http://vworkers.com/vruz/mov1.swf

hope this helps,
vruz
 
T

Tim Hunter

Bil said:
However, I'd like to automate the whole process of capturing, converting
to mpeg, and so forth. I started thinking that I should be using the
Ruby's ImageMagick binding, RMagick, etc.

Then I thought: I should just ask here because someone has probably
figured all this out already...

Very nice hack! I put a Ruby script that does this with RMagick on
codepaste.org: http://www.codepaste.org/view/paste/232?show_comments=1
I used RMagick 1.6.0 with ImageMagick 6.1.0. I don't have the MPEG encoder
installed but I tried both MIFF and GIF formats. The resulting GIF file is
much smaller but takes a long time to write.

I could only get about 1 frame/sec (measuring with "1 Mississippi, 2
Mississippi...") and you're limited to the number of frames you can fit in
memory. That could be alleviated by capturing a relatively small window.
 
G

gabriele renzi

Bil Kleb ha scritto:
Inspired by the videos available on http://www.rubyonrails.org but
disappointed when trying to render the .mov format on my linux box,
I was looking at the instructions at

http://www.linuxdevcenter.com/pub/a/linux/2004/03/04/screen_capture_movies.html


for doing a screen capture with ImageMagick and converting the stills
to mpeg.


dunno if it helps, but mauricio fernandez has a script to build the
animated gif on the rpa-base wiki that IIRC is done with RMagick, maybe
you can ask him.
 
C

Carl Youngblood

All of these technologies are really cool, but they are lacking
simultaneous audio capture. That would be really cool. I guess a
decent alternative would be to take the movie and dub a narrative
track in afterwards. Any suggestions for freeware video editing tools
that can do this?
 

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
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top