Tronic
10th April 2004, 22:41
It's often quite painful to find proper image dimensions so that both are mod16 and the aspect ratio is still not off by too much. So, instead of trying to guess proper resolution, I wrote a program that calculates some useful resolutions automatically, for any source material.
Fetch the source (any platform) or binary (Linux and Windows) from http://delenn.tky.hut.fi/aarc/
[tronic@Delenn, 0:05;5] ~ -> ./aarc
AARC 1.1 (AVI AR Calculator) <trn(at)iki.fi> GNU GPL
----------------------------------------------------
Material aspect ratio (x:1.00): 1.78
Preferred image width (pixels): 950
Testing widths 816..1088, accepted aspect ratio margin +-1.00 %
832 x 464 actual aspect: 1.79:1.00 error: 0.74 % mod32: yes / no
848 x 480 actual aspect: 1.77:1.00 error: -0.75 % mod32: no / yes
880 x 496 actual aspect: 1.77:1.00 error: -0.33 % mod32: no / no
912 x 512 actual aspect: 1.78:1.00 error: 0.07 % mod32: no / yes
944 x 528 actual aspect: 1.79:1.00 error: 0.44 % mod32: no / no
960 x 544 actual aspect: 1.76:1.00 error: -0.86 % mod32: yes / yes
976 x 544 actual aspect: 1.79:1.00 error: 0.79 % mod32: no / yes
992 x 560 actual aspect: 1.77:1.00 error: -0.48 % mod32: yes / no
1024 x 576 actual aspect: 1.78:1.00 error: -0.12 % mod32: yes / yes
1056 x 592 actual aspect: 1.78:1.00 error: 0.21 % mod32: yes / no
1072 x 608 actual aspect: 1.76:1.00 error: -0.95 % mod32: no / yes
1088 x 608 actual aspect: 1.79:1.00 error: 0.53 % mod32: yes / yes
[tronic@Delenn, 0:06;5] ~ -> ./aarc -h
AARC 1.1 (AVI AR Calculator) <trn(at)iki.fi> GNU GPL
----------------------------------------------------
Usage: aarc [-d [pal] [ntsc] [lb] [full]]
-d instead of image aspect ratio, ask for frame size; takes attributes:
Pixel shape: (default: not DVD, square pixels)
'pal' PAL DVD, 'ntsc' NTSC DVD
Anamorphic frame: (default: anamorphic; only valid for DVD)
'lb' letterboxed or full with 4:3 frame (not anamorphic letterbox)
Black borders: (default: ask for frame dimensions; only valid for DVD)
'full' for full uncropped frame (assumes 720x576 or 720x480 dimensions)
[tronic@Delenn, 0:06;5] ~ -> ./aarc -d pal
AARC 1.1 (AVI AR Calculator) <trn(at)iki.fi> GNU GPL
----------------------------------------------------
Cropped input frame size (xxx yyy): 716 430
Material aspect ratio: 2.37:1.00
Preferred image width (pixels): 870
Testing widths 736..992, accepted aspect ratio margin +-1.00 %
752 x 320 actual aspect: 2.35:1.00 error: -0.77 % mod32: no / yes
800 x 336 actual aspect: 2.38:1.00 error: 0.54 % mod32: yes / no
832 x 352 actual aspect: 2.36:1.00 error: -0.19 % mod32: yes / yes
864 x 368 actual aspect: 2.35:1.00 error: -0.86 % mod32: yes / no
880 x 368 actual aspect: 2.39:1.00 error: 0.98 % mod32: no / no
912 x 384 actual aspect: 2.38:1.00 error: 0.29 % mod32: no / yes
944 x 400 actual aspect: 2.36:1.00 error: -0.34 % mod32: no / no
976 x 416 actual aspect: 2.35:1.00 error: -0.93 % mod32: no / yes
992 x 416 actual aspect: 2.38:1.00 error: 0.69 % mod32: yes / yes
Fetch the source (any platform) or binary (Linux and Windows) from http://delenn.tky.hut.fi/aarc/
[tronic@Delenn, 0:05;5] ~ -> ./aarc
AARC 1.1 (AVI AR Calculator) <trn(at)iki.fi> GNU GPL
----------------------------------------------------
Material aspect ratio (x:1.00): 1.78
Preferred image width (pixels): 950
Testing widths 816..1088, accepted aspect ratio margin +-1.00 %
832 x 464 actual aspect: 1.79:1.00 error: 0.74 % mod32: yes / no
848 x 480 actual aspect: 1.77:1.00 error: -0.75 % mod32: no / yes
880 x 496 actual aspect: 1.77:1.00 error: -0.33 % mod32: no / no
912 x 512 actual aspect: 1.78:1.00 error: 0.07 % mod32: no / yes
944 x 528 actual aspect: 1.79:1.00 error: 0.44 % mod32: no / no
960 x 544 actual aspect: 1.76:1.00 error: -0.86 % mod32: yes / yes
976 x 544 actual aspect: 1.79:1.00 error: 0.79 % mod32: no / yes
992 x 560 actual aspect: 1.77:1.00 error: -0.48 % mod32: yes / no
1024 x 576 actual aspect: 1.78:1.00 error: -0.12 % mod32: yes / yes
1056 x 592 actual aspect: 1.78:1.00 error: 0.21 % mod32: yes / no
1072 x 608 actual aspect: 1.76:1.00 error: -0.95 % mod32: no / yes
1088 x 608 actual aspect: 1.79:1.00 error: 0.53 % mod32: yes / yes
[tronic@Delenn, 0:06;5] ~ -> ./aarc -h
AARC 1.1 (AVI AR Calculator) <trn(at)iki.fi> GNU GPL
----------------------------------------------------
Usage: aarc [-d [pal] [ntsc] [lb] [full]]
-d instead of image aspect ratio, ask for frame size; takes attributes:
Pixel shape: (default: not DVD, square pixels)
'pal' PAL DVD, 'ntsc' NTSC DVD
Anamorphic frame: (default: anamorphic; only valid for DVD)
'lb' letterboxed or full with 4:3 frame (not anamorphic letterbox)
Black borders: (default: ask for frame dimensions; only valid for DVD)
'full' for full uncropped frame (assumes 720x576 or 720x480 dimensions)
[tronic@Delenn, 0:06;5] ~ -> ./aarc -d pal
AARC 1.1 (AVI AR Calculator) <trn(at)iki.fi> GNU GPL
----------------------------------------------------
Cropped input frame size (xxx yyy): 716 430
Material aspect ratio: 2.37:1.00
Preferred image width (pixels): 870
Testing widths 736..992, accepted aspect ratio margin +-1.00 %
752 x 320 actual aspect: 2.35:1.00 error: -0.77 % mod32: no / yes
800 x 336 actual aspect: 2.38:1.00 error: 0.54 % mod32: yes / no
832 x 352 actual aspect: 2.36:1.00 error: -0.19 % mod32: yes / yes
864 x 368 actual aspect: 2.35:1.00 error: -0.86 % mod32: yes / no
880 x 368 actual aspect: 2.39:1.00 error: 0.98 % mod32: no / no
912 x 384 actual aspect: 2.38:1.00 error: 0.29 % mod32: no / yes
944 x 400 actual aspect: 2.36:1.00 error: -0.34 % mod32: no / no
976 x 416 actual aspect: 2.35:1.00 error: -0.93 % mod32: no / yes
992 x 416 actual aspect: 2.38:1.00 error: 0.69 % mod32: yes / yes