Re: Creating a movie file from a set of postscript files.
From: Roy Stogner (roystgnrNO_at_SPAMices.utexas.edu)
Date: 10/07/05
- Next message: Fletcher Glenn: "Re: Communication problems between c server and java client."
- Previous message: Henry Townsend: "Re: Porting to Solaris"
- In reply to: Gordon: "Re: Creating a movie file from a set of postscript files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Fletcher Glenn: "Re: Communication problems between c server and java client."
- Previous message: Henry Townsend: "Re: Porting to Solaris"
- In reply to: Gordon: "Re: Creating a movie file from a set of postscript files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|