Hi Dan, Dan Holmes <Daniel.Holmes@cern.ch> wrote concerning [ROOT] animation? [Tue, 26 Aug 2003 11:34:03 +0200 (CEST)] ---------------------------------------------------------------------- > > Hello, > > any ideas? ..i would like to have a TH2 rotate while i give a > presentation.. the best idea i have so far is to manually save off > consecutive images of it while i rotate it and then put them in a .gif > but maybe there is a cleverer way? I haven't tried this myself, but there's a program called `mpeg_encode' that'll take a bunch of image files, and make an MPEG movie out of them. I'm attaching an example from a GNUPlot talk [1] given at SSLUG [2]. The complete stuff can be found at [3]. mpeg_encode can be found at [4]. There's probably also some RPMs and DEBs out there. Yours, ___ | Christian Holm Christensen |_| | ------------------------------------------------------------- | | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91 _| Denmark Office: (+45) 353 25 305 ____| Email: cholm@nbi.dk Web: www.nbi.dk/~cholm | | [1] http://www.sslug.dk/emailarkiv/moede/2001_10/msg00026.html [2] http://www.sslug.dk [3] http://kenneth.geisshirt.dk/talks/GNUplot.tar.gz [4] http://bmrc.berkeley.edu/frame/research/mpeg/index.html #!/bin/bash # MDmovie.sh - make a movie of configurations # (C) Copyright 2001 by Kenneth Geisshirt <kenneth@geisshirt.dk> # Released under GNU General Public License PATH=/bin:/usr/bin FILES=`ls mdreac*000 | tr " " "_"` n=0 for FILE in $FILES do n=`echo 1+$n | bc -l` NAME=`echo $FILE | tr "_" " "` TIMESTEP=`echo $NAME | cut -f2 -d"."` POSTFIX=`echo $FILE | cut -f1 -d"."` OUTPUT=out.$n.png PNM=out.$n.pnm PLOTFILE=`mktemp $0.XXXXXX` echo "set terminal png" > $PLOTFILE echo "set output '$OUTPUT'" >> $PLOTFILE DATAFILE=`mktemp $0.XXXXXX` awk '{if ($3==0) print $1 " " $2}' "$NAME" > $DATAFILE echo "plot '$DATAFILE' title '$TIMESTEP'" >> $PLOTFILE gnuplot $PLOTFILE rm -f $PLOTFILE pngtopnm $OUTPUT > $PNM rm -f $OUTPUT $DATAFILE PNMS="$PNMS $PNM" done CONFFILE=`mktemp $0.XXXXXX` echo "OUTPUT mdreac.mpeg" > $CONFFILE echo "PATTERN IBBPBBPBBPBBPBB" >> $CONFFILE echo "BASE_FILE_FORMAT PNM" >> $CONFFILE echo "GOP_SIZE `echo $PNMS | wc -l`" >> $CONFFILE echo "SLICES_PER_FRAME 1" >> $CONFFILE echo "PIXEL HALF" >> $CONFFILE echo "RANGE 10" >> $CONFFILE echo "PSEARCH_ALG LOGARITHMIC" >> $CONFFILE echo "BSEARCH_ALG CROSS2" >> $CONFFILE echo "IQSCALE 8" >> $CONFFILE echo "PQSCALE 10" >> $CONFFILE echo "BQSCALE 25" >> $CONFFILE echo "REFERENCE_FRAME ORIGINAL" >> $CONFFILE echo "INPUT_CONVERT *" >> $CONFFILE echo "INPUT_DIR `pwd`" >> $CONFFILE echo "INPUT" >> $CONFFILE echo "out.*.pnm [1-$n]" >> $CONFFILE echo "END_INPUT" >> $CONFFILE mpeg_encode $CONFFILE rm -f $CONFFILE rm -f $PNMS
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET