Re: Creating a movie file from a set of postscript files.

From: Roy Stogner (roystgnrNO_at_SPAMices.utexas.edu)
Date: 10/07/05


Date: Fri, 07 Oct 2005 21:19:44 GMT

On Fri, 07 Oct 2005 15:11:31 -0400, Gordon wrote:

> Peter Salzman wrote:
>> I have a bunch of eps files that represent the time evolution of a
>> solution to the diffusion PDE. I can show them in rapid succession,
>> which makes it look like a movie, but I'd like to be able to turn
>> them into a native movie format. So, the problem statement is:
>> Suppose I have a bunch of eps / ps files. Is there any way to string
>> the files together to create a movie file of some sort (like an mpg
>> or avi)?
>
> One possibility is to use GSView to convert to jpg (which may have to be
> cropped), and then use Windows Movie Maker (part of Windows XP) to import
> the picture files.

Based on the "comp.unix.*" crossposting and Peter's Linux newsreader, that
may not be an option.

Here's the quick-and-dirty script I use; it requires ImageMagick and
mplayer installed and it assumes there's no .jpg files already in your
picture directory.

for file in $*; do
  echo "Converting $file";
  convert -quality 100 $file $file.jpg;
done
mencoder "mf://*.jpg" -mf fps=1 -o adapt.avi -ovc lavc -lavcopts \
vcodec=mpeg4:vqscale=4

I'm starting with RGB files, though; for vector graphics like eps
files you'll want to add an option like "-scale 640x480" to the convert
command. This will rasterize all your images, of course, but I don't know
of any standard movie codecs that keep vector data as vector data.

I'm also rendering implicit calculations with relatively large timesteps;
change the "fps=" option if one frame per second is a bit slower than
you'd like. ;-)

---
Roy Stogner


Relevant Pages

  • Re: Creating a movie file from a set of postscript files.
    ... >> I have a bunch of eps files that represent the time evolution of a ... >> the files together to create a movie file of some sort (like an mpg ... > the picture files. ... of any standard movie codecs that keep vector data as vector data. ...
    (comp.unix.programmer)
  • Re: Creating a movie file from a set of postscript files.
    ... >>> I have a bunch of eps files that represent the time evolution of a ... >>> the files together to create a movie file of some sort (like an mpg ... and then use Windows Movie Maker to import ... > of any standard movie codecs that keep vector data as vector data. ...
    (sci.math.num-analysis)
  • Re: Creating a movie file from a set of postscript files.
    ... > I have a bunch of eps files that represent the time evolution of a ... > them into a native movie format. ... > Suppose I have a bunch of eps / ps files. ... and then use Windows Movie Maker to import ...
    (comp.unix.questions)
  • Re: Creating a movie file from a set of postscript files.
    ... > I have a bunch of eps files that represent the time evolution of a ... > them into a native movie format. ... > Suppose I have a bunch of eps / ps files. ... and then use Windows Movie Maker to import ...
    (comp.unix.programmer)