Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to create a video file (playable in VLC) from a collection of pgm files. I would like to do this in Python.

share|improve this question
    
I assume you're referring to portable gray map files. Are you trying to make a slide show or is each image to be a frame in an animation? – Kenneth Cochran Feb 3 '10 at 14:58

The easiest way I've found to combine images into a movie is to use ffmpeg. Here's a page on how to do that: http://electron.mit.edu/~gsteele/ffmpeg/

There's a pyffmpeg project, I don't know if it supports this kind of frame sticking-together, but here's the URL: http://code.google.com/p/pyffmpeg/

share|improve this answer

You must log in to answer this question.