Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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?
Re: How to create videos automatically via perl?
by vinoth.ree (Parson) 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

Re: How to create videos automatically via perl?
by karlgoethebier (Curate) 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."

    Update:

    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 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 zentara (Archbishop) on Feb 26, 2013 at 12:36 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1020604]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2014-09-18 19:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (121 votes), past polls