Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

How to create videos automatically via perl?

by Anonymous Monk
on Feb 26, 2013 at 05:58 UTC ( #1020604=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Everyone, If somebody knows this then please let me know that how can I create videos automatically, the video will consist of 1 image and 1 text. But since there are billions of images so I can't do it manually. The images are on my website.
  • Comment on How to create videos automatically via perl?

Replies are listed 'Best First'.
Re: How to create videos automatically via perl?
by karlgoethebier (Parson) on Feb 26, 2013 at 11:05 UTC

    From IM and mpeg:

    "IM is not very efficient at creating movies. It will do the job though requires the external program "mpeg2encode" to do much of the dirty work. The problem is that IM is not designed to handle video, but static images or small sequences of images. That is not to say it can't do it, but that is not its goal. In particular it generally reads in all images into memory and process them from there. For a large or long video this is not very efficient. For processing on a small sequence of frames however it really can't be beat. In fact just about every Linux Video manipulation program uses ImageMagick to generate titles, fancy scene changes, and other effects to complete the post-processing development of a larger video development. The process however is kept to small video sequences."


    And perhaps Rendering files from the Cinelerra manual is worth to take a look at?

    "Programmers, please note: this is a powerful feature indeed. It means that if you can create valid Cinelerra project xml files and Cinelerra render list files from other programs (which requires just a small amount of skill with your favourite XML library), then you can gain full automated access to all of Cinelerra's functionality without needing to interact with the Cinelerra user interface. The possibilities for this are endless. You can leverage the power of Cinelerra and incorporate it into your own programs. It's a good idea if you can create simple Cinelerra project files and batch render files and study the XML format. By trial and error, you'll be able to generate valid Cinelerra xml files for projects and batch render lists, and thus create your own Cinelerra automation library in your favourite programming language."

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

Re: How to create videos automatically via perl?
by zentara (Archbishop) on Feb 26, 2013 at 12:36 UTC
Re: How to create videos automatically via perl?
by Corion (Pope) on Feb 26, 2013 at 11:07 UTC

    I use ffmpeg to create videos from a sequence of images. It's not hard to do that, if you have the image files already on disk.

Re: How to create videos automatically via perl?
by vinoth.ree (Monsignor) on Feb 26, 2013 at 06:11 UTC
      Googling outsourced.
Re: How to create videos automatically via perl?
by pvaldes (Chaplain) on Feb 26, 2013 at 09:22 UTC

    use Image::Magick # or perlmagick?

    here and here

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1020604]
Approved by Corion
[Corion]: Except that it doesn't work ...
[Lady_Aleena]: cPanel is a sponsor of meta::cpan?
[Lady_Aleena]: The default perl on the version of cPanel my web hosts uses is 5.8.8 which means I am dreadfully behind. I doubt perl 6 will hit my web host in my lifetime.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-05-29 09:41 GMT
Find Nodes?
    Voting Booth?