Video processing consists of many parts. AFAIK there's no complete video framework for perl (there's no complete audio framework either, but I'm still slowly working on that)
If you want to generate 3d video, OpenGL is quite good and pretty portable but quite low level.
For other uses, take a search for "video" on cpan.
| [reply] |
More specifically, I'm looking for something like SDL, where you can add objects and render them on a surface. I've searched for "generating video", "video generation", "video generator", but the social networking craze clogged out anything that might be of use, and most of CPAN's video modules are poorly documented.
OpenGL might be of use, but I'm not quite sure whether I need 3D capabilities just to write some text to a screen and render it.
If All Else Fails, there might be a C/C++ library that I could use.
| [reply] |
| [reply] |
You might also want to read a bit about PDL - the Perl Data Language, as it is used often to perform efficient 3d graphics computations. There is also a OpenGL interface for PDL called PDL::Graphics::OpenGL.
What exactly are you trying to do? How complex are you wanting this to be? Do you want something simple -- similar to a GIF or Flash animation? Or do you want high-resolution, fancy 3D letters with dynamic lighting effects, performing complex acrobatics? How is it going to be viewed? On a web page -- through a browser? Is it encoded as a video file? Or are you writing an application to render and display the video?
Perl OpenGL (POGL) would be a good choice for complex 3D graphics. SDL::OpenGL is another option, however POGL tends to perform better in benchmark tests. Here is an excellent series of articles on 3D graphics programming in Perl:
Building a 3D Engine
If you just want simple animations check out some of the SVG modules for Perl. And there is a book on this by the way -- "Graphics Programming For Perl" from Manning Publications, which I have not read, but which has decent reviews. Here are some links for SVG:
Introduction To Scalable Vector Graphics
Creating Scalable Vector Graphics With Perl
---mmmmtmmmm | [reply] |
If you want to record (or create from individual frames) use mencoder ( part of the mplayer package). You can see how it can be controlled from Perl in ztk-v4l-video-bloger/recorder and a rip-process-reassemble can be seen in z-charcoal-video-converterAlso you can search google and groups.google for mencoder, to find the difficult syntax strings to do what you want. Mencoder can be VERY FINICKY about syntax. I'm not sure what you mean by create video from text commands.
| [reply] |
The frozen bubble code might possibly help you as an example working Perl code that drives SDL. I really haven't studied it, though. Just played it a lot =). Cheers.
| [reply] |