1AdvanceCOMP MNG Compression UGteinleirtayl(1C)ommaAnddvsanMcaenCuOaMlP MNG Compression Utility(1)
2
3
4

NAME

6       advmng - AdvanceCOMP MNG Compression Utility
7

SYNOPSIS

9       advmng [-l, --list] [-z, --recompress]
10            [-x, --extract] [-a, --add RATE MNG_FILE PNG_FILES...]
11            [-0, --shrink-store] [-1, --shrink-fast] [-2, --shrink-normal]
12            [-3, --shrink-extra] [-4, --shrink-insane] [-i, --iter N]
13            [-s, --scroll HxV] [-S, --scroll-square]
14            [-e, --expand] [-r, --reduce]
15            [-c, --lc] [-C, --vlc] [-f, --force] [-q, --quiet] [-v, --verbose]
16            [-h, --help] [-V, --version] FILES...

DESCRIPTION

18       The  main purpose of this utility is to recompress MNG files to get the
19       smallest possible size.
20
21       Please note that this utility is not able to read a generic file.  It´s
22       granted  to be able to read only the files generated by the AdvanceMAME
23       emulator.
24
25       To compress the files this utility uses the following strategies:
26       ·      Remove all ancillary chunks.
27       ·      Use the MNG Delta feature to  compress  video  clips  with  only
28              small changes between frames.
29       ·      Use  the  MNG  Move  feature  to  compress  video  clips  with a
30              scrolling background (option -s).
31       ·      Reduce the color depth to 8 bit (option -r).
32       ·      Use the 7zip Deflate implementation.
33

COMMANDS

35       -l, --list FILES...
36              List the content of the specified files.
37
38       -z, --recompress FILES...
39              Recompress the specified files. If the -1, -2,  -3  options  are
40              specified,  it´s used the smallest file choice from the previous
41              compressed data and the new compression. If  the  -0  option  is
42              specified the file is always rewritten without any compression.
43
44       -x, --extract FILES...
45              Extract  all the .png frames in the .mng clips.  You can use the
46              --shrink options to control the compression ratio  of  the  .png
47              files.  The extracted images are always 24 bit images with alpha
48              channel.  You can remove the alpha channel with the -n option.
49
50       -a, --add RATE MNG_FILE PNG_FILES...
51              Compress all the .png files on the command line as a .mng  file.
52              All  the  .png  files  must  have the same size and the same bit
53              depth. You must also specify an integer frame rate to use in the
54

OPTIONS

56       -0, --shrink-store
57              Disable the compression. The file is only stored  and  not  com‐
58              pressed. The file is always rewritten also if it´s bigger.
59
60       -1, --shrink-fast
61              Set the compression level to "fast" using the zlib compressor.
62
63       -2, --shrink-normal
64              Set  the compression level to "normal" using the libdeflate com‐
65              pressor.  This is the default level of compression.
66
67       -3, --shrink-extra
68              Set the compression level to "extra" using  the  7z  compressor.
69              You  can  define  the  compressor iterations with the -i, --iter
70              option.
71
72       -4, --shrink-insane
73              Set the compression level to "insane" using the zopfli  compres‐
74              sor.   You  can  define  the  compressor iterations with the -i,
75              --iter option.
76
77       -i, --iter N
78              Define an additional numer of iterations for the 7z  and  zopfli
79              compressors for modes -3 and -4.  More iterations usually give a
80              better compression, but may require a lot more  time.   Try  for
81              example with 10, 15, 20, and so on.
82
83       -s, --scroll HxV
84              The "-s HxV" option specifies the size of the pattern (H width x
85              V height) used to check for a scrolling background. The size  is
86              expressed  in  pixels  and  it  must be bigger or equal than the
87              scrolling speed of the background. For  example  take  the  game
88              1942  that  scrolls  vertically  by  1 pixel every frame. If you
89              recorded with an interleave factor of 2 the  vertical  scrolling
90              speed  is 1*2 = 2. In this case the minimum pattern is "-s 0x2".
91              Generally you can use "-s 8x8" and use bigger  values  only  for
92              games scrolling faster. If the game scrolls only horizontally or
93              vertically you can speed up a lot the compression  with  monodi‐
94              rectional patterns like "-s 16x0" or "-s 0x16".
95
96       -S, --scroll-square N
97              This  option  is like the option "-s NxN" but excludes big move‐
98              ment on both directions reducing the computation time.  Specifi‐
99              cally the check done is X+Y<=N.
100
101       -r, --reduce
102              Force the color reduction to 8 bit. The reduction is really done
103              only if any frame have less than 256  colors  and  if  no  alpha
104              channel  is  present.  To  force  the reduction also if an alpha
105              channel is present use the -n option.
106
107       -e, --expand
108              Force the color expansion to 24 bit.
109
110       -n, --noalpha
111              Remove the alpha channel if present.
112
113       -c, --lc
114              Force the use of the MNG LC (Low Complexity) specifications.  It
115              disables  the  delta  compression.  The file is always rewritten
116              also if it´s bigger.
117
118       -C, --vlc
119              Force the use of the MNG VLC (Very  Low  Complexity)  specifica‐
120              tions. It disables the delta compression and the precise timing.
121              Warning! you may lose the correct timing information because the
122              VLC  format  only supports integer frequency. The file is always
123              rewritten also if it´s bigger.
124
125       -f, --force
126              Force the use of the new file also if it´s bigger.
127
128       -q, --quiet
129              Don´t print the filenames.
130
131       -v, --verbose
132              Print more information on the compression process.
133

EXAMPLES

135       A good tradeoff of recompression and time is the command :
136
137           advmng -z -r -S 16 *.mng
138
139       To create a .mng file from a series of .png files use the command :
140
141           advmng -a 30 video.mng video*.png
142
143       To extract all the images in a .mng file use the command :
144
145           advmng -x video.mng
146
148       This file is Copyright (C) 2003 Andrea Mazzoleni, Filipe Estima
149

SEE ALSO

151       advzip(1), advpng(1), advdef(1)
152
153
154
155                                        AdvanceCOMP MNG Compression Utility(1)
Impressum