in reply to 2d animation
or with ffmpeg#create a small speed adjusted file mencoder "mf://*.jpg" -mf fps=60 -o output.avi -ovc lavc -lavcopts vco +dec=mpeg4
You can google for assemble images to avi ffmpegffmpeg -f image2 -i image%d.jpg video.mpg # This command will transform all the images from the current direct +ory # (named image1.jpg, image2.jpg, etc...) to a video file named video. +mp
Also see z-charcoal-video-converter for how to use these programs from Perl. In this one, I rip the movie to jpgs and audio, process each frame to a charcoal effect, then recombine them. It does audio too, but you don't need that. It does show how to run the commands thru Perl's system, and handling of the jpg filenames. It's preferrable to put the jpgs in a separate sub directory, since there can be so many of them.
Oops, I just read that you can't save the images to disk first, so that kind of blows my method above away; but if you could somehow feed the frames to ffmpeg in a realtime stream, you may have some luck. Google for ffmpeg capture streaming frames . In that train of thought, see Webcam Streaming to Perl/Tk with ffmpeg
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
|
---|