Content-type: text/html
avicalc is a small script to calculate some values which are very important for encoding videos: bitrate and resolution.
avicalc [-Hh] [-c] [-m mode] [-s size -d duration] [-b bitrate [-f fps] [-a aspectration] [-r resolution]]
bitrate - calculates the needed
br for a wanted endsize of
an avi of a given length/duration
bpp - calculates the bits per
pixel-rate for a given resolution,
bitrate and frames per second.
bpb - calculates bits per block (16x16)
for a given resolution, bitrate
and frames per second.
lr - display a lot of resolutions
and the responding bpp's. enable
colormode to see what would look
ok.
lb - display a lot of resolutions and
the responding bpps/bpb for a list of
bitrates
calculate br for 5 minutes of the movie that will result in a 10mb - file:
$> avicalc -m bitrate -s 10mb -d 300 -> 279kbit/s
calculate the bpp for this movie:
$> avicalc -c -m bpp -r 512x244 -c -b 279 -> 0.8 bpp
last output should be displayed red for showing it
wont look good for sure. so, display some more
resolutions to getting near the final resolution:
$> avicalc -c -m lr -b 279 -a 16/9
now choose one of the cyan or (better) green marked
resolutions for encoding the avi.
the main-source for this script:
http://www.mplayerhq.hu/DOCS/tech/encoding-tips.txt
mathias gumz <gumz at cs.uni-magdeburg.de>
not yet known