Someone please explain the following to me. From
http://search.cpan.org/~chm/PDL-2.4.7/IO/Pnm/Pic.pm#wmpeg
"wmpeg
Write an image sequence ((3,x,y,n) piddle) as an MPEG animation.
$anim->wmpeg("GreatAnimation.mpg");
Writes a stack of rgb images as an mpeg movie. Expects a 4-D pdl of
type byte as input. First dim has to be 3 since it is interpreted as
interlaced RGB. Some of the input data restrictions will have to be
relaxed in the future but routine serves as a proof of principle at
the moment. It uses the program ffmpeg to encode the frames into
video. The arguments and parameters used for ffmpeg have not been
tuned. This is a first implementation replacing mpeg_encode by ffmpeg.
Currently, wmpeg doesn't allow modification of the parameters written
through its calling interface. This will change in the future as
needed."
I have the following
Info: PDL: Float D [252,189,100]
I want to write out 100 images 252x189 pixels wide, both as 100
separate images as well as a movie of 100 frames. Can I use wmpeg for
the movie part? How?
Reading on...
"In the future it might be much nicer to implement a movie perl object
that supplies methods for manipulating the image stack (insert, cut,
append commands) and a final movie->make() call would invoke ffmpeg on
the picture stack (which will only be held on disk). This should get
around the problem of having to hold a huge amount of data in memory
to be passed into wmpeg (when you are, e.g. writing a large animation
from PDL3D rendered fly-throughs). Having said that, the actual
storage requirements might not be so big in the future any more if you
could pass 'virtual' transform pdls into wmpeg that will only be
actually calculated when accessed by the wpic routines, you know what
I mean..."
Has the future arrived yet?
--
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl