Ruby, Cocoa, Mac OS X and things of my not so exciting life.
RTranscoder: Jpeg to Mpeg
Some days ago I made some tests using mencoder to create a mpeg4 video with some jpeg images.
Then I tried to use RTranscoder to achieve the same result with ruby but it’s kind of tricky to get it running correctly, because you can get an “error parsing command line” error if you don’t give RTranscoder the correct information.
After a lot of attempts, my code got like this:
As you can see, instead of doing something like mencoder.mf = “fps=25:type=jpg” (my error) you have to do it with mencoder.mf.fps and mencoder.mf.type respectively, the same with lavc and everytime you need to pass an argument with suboptions separated by “:”.
Here is the page of Rtranscoder.