[GRASS-user] Re: [GRASSLIST:1184] how to keep same color table
for a bunch of rasters?
Māris Nartišs
maris.gis at gmail.com
Thu Sep 7 02:18:07 EDT 2006
Hi,
You mean like this?:
## Encode all .png files in directory to out.avi with 15 frames per second.
mencoder "mf://*.png" -mf fps=15 -o out.avi #-ovc here
## DivX - libavcodec MPEG 4 (DivX5)
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=1800
## XviD
-ovc xvid -xvidencopts bitrate=1024
## DivX4
-ovc divx4 -divx4opts q=5
Uses mplayer's encoder. Choose one of encoding formats and append to end
of "mencoder" line. Unfortunately only way to know quality settings is by
encoding, watching result and reendocing with different params.
Example (it's quite old and I don't remeber encoding params):
http://www.aiknc.lv/1_sm_65_ledus.avi
(Location: North Vidzeme, Latvia. Content: r.lake mapcalc version in action -
filling Smiltene ice damed lake from seed point) You can see how changes lake
color as it get's deeper.
Vishal Mehta - You could try out to define map's colors using explict category
values (will this work with FP maps?) - just create file containing color
rules with full range of data values (min, max for all maps), assign colors
to values and apply color table with r.colors to all maps (sorry, no time to
test).
Maris.
On Thursday 07 September 2006 04:00, Hamish wrote:
> for MAP in `g.mlist type=rast pat=rain*` ; do
> r.info -r $MAP
> done
>
> If anyone has tips on constructing high-quality MPEG-4 movies from a
> series of still frames, I'd be interested in hearing them.
>
>
>
> Hamish
More information about the grass-user
mailing list