I'm trying to use BackgrounDRb to take care of video encoding using
ffmpeg. I would love it if this tutorial (http://escapegoat.org/
2007/8/26/video-conversion) was more complete, however the code links
are all broken.
I have run the following commands:
$ script/plugin install svn://rubyforge.org//var/svn/backgroundrb
$ rake backgroundrb:setup
$ script/generate worker transcode_video
Then in lib/workers/transcode_video_worker.rb I've added my code to
call ffmpeg in do_work(args).
Ultimately, I'm having trouble calling MiddleMan... where can I call
it from? What includes do I need? Must I use MiddleMan? Basically:
How to I execute do_work? I'd prefer to call it from the video model
(app/models/video.rb) in the after_save callback. Can I do that?
Basically I need a quick little how-to because the README for
BackgrounDRb is confusing and frustrating with it's lack of details in
some places, and too many in others. Not to mention my generated code
doesn't look like the files they show... *sigh* I've spent most of my
work day trying to understand this: http://backgroundrb.rubyforge.org/
and it's not helping.
Thank you in advance for your help in getting me squared away with
this popular plugin.