You are on page 1of 7

Aspect Calculator Manual

User interface
1 Main window
Figure 1: Main window
1. Aspect ratio selector allows to choose between predened aspect ratio values and provides
access to advanced aspect ratio dialog.
2. Multipliers ensure that resulting frame width or height is divisible to some number. This may be
the requirement for specic codec or processing software or even hardware (some earlier nvidia
cards where not able to display video correctly if it was not divisible to 32 pixels, for example).
3. Resolution selector invokes resolution selection dialog.
4. Audio bit rate/size selector provides list of predened bit rates; it also allows to switch between
internal/external audio tracks.
5. Target size selector provides predened size list.
6. Frame rate selector allows to choose between standard frame rates
1
1
frame rate is detected automatically for VOB/MPEG2 les
created with L
A
T
E
X 1 Revision: 0.8
7. Video bit rate options selector. First, it allows to display result either as bits per second or
kilobytes. Second, it provides access to bit rate calculation options dialog.
8. Aspect error indicator provides color representation of aspect error (green - excellent/no error,
yellow - good enough, red - error is too big)
9. Bits per pixel indicator represents probable resultant video quality (green - very good, yellow -
good enough, red - poor)
10. Shortcut to auto-size function, attempting to calculate optimal target frame size
11. Shortcut to preview function, displaying target video frame
12. Shortcut to AVS save function
13. Shortcut to help function, displaying this help
2 Options dialog
Figure 2: Options dialog
Video type option allows to select between standard/OpenDML AVIs. Note, that OpenDML
option will be automatically disabled if destination AVI size is less than 2 GB
Audio type option. Note, that if You use audio source other than VBR MP3, You will have to
specify interleave options manually
Interleave overhead calculation option enables or disables interleave overhead calculation
2
Figure 3: Cropping dialog
3 Advanced aspect ratio and cropping dialog
1. Frame preview area
2. Popup dialog, invoked by right-clicking on frame preview
3. Window title showing some stats: current frame/playback time for MPEG2/VOB les or le
name for screenshot images
4. Resolution entry. It is set to auto when any supported le is opened
5. Aspect ratio entry. It is determined automatically for VOB/MPEG2 les
6. Aspect ratio selector allows either to pick one of the standard ratios or enable auto mode
7. Target aspect ratio indicator displays calculated destination aspect ratio
8. Left cropping value entry
9. Right cropping value entry
10. Top cropping value entry
11. Bottom cropping value entry
12. File open button invokes le open dialog. Following le types are supported: VOB, MPEG2,
D2V, PNG and BMP
3
13. Close le button closes any opened le and resets preview window image, resolution and aspect
ratio to defaults
14. Zoom in button. Note, that zoom is disabled for small resolutions
15. Zoom out button
16. Frame number entry
17. Frame navigation button navigates to frame entered in frame number entry
18. Forward button forwards video one frame
19. Fast forward button forwards video about 5 seconds
Calculating aspect ratios
1 Manual calculation
1. Activate advanced aspect ratio dialog
2. Enter frame width and height
3. Select Auto for aspect ratio, unless source video has non-square pixels
2 Automatic (source video is VOB/MPEG2)
1. Open source le (Ctrl + O)
2. Adjust cropping values to eliminate black bars from frame sides if needed
3 Semi-automatic (You have a reference screenshot of the movie)
1. Open screenshot (Ctrl + O)
2. If original movie has square pixels (e.g. is AVI) select Auto for aspect ratio, else enter a/r
manually
3. Adjust cropping values if needed
Calculating frame size
If You know target aspect ratio, just press R and select most suitable resolution from the list
2
. Alter-
natively, You may use built-in Auto function which will try to nd optimal resolution concerning
several criteria such as bit per pixel value and source frame size (if any specied). You can also specify
following lters for available resolutions list:
2
You may also switch between possible resolutions with help of Ctrl + + and Ctrl + - key combinations
4
extreme values lter will eliminate all resolutions with 300<X<700, where X is frame width
sake values lter will eliminate all resolutions with too big aspect errors
perfect ratios lter. When enabled, only resolutions with zero aspect errors will be displayed
double values lter will leave only value with less aspect error from available pairs
Calculating bit rate
Generally, it should be enough to specify all the input values: movie duration, audio bit rate (or, al-
ternatively, size
3
), frame rate and destination size. However, if You either use VBR MP3 as audio
source, or wish to produce very large (over 2 GB) AVI, or multiplex audio and video in a special way,
You could adjust bit rate calculation options accordingly. For accurate bit rate calculations You should
specify correct audio/video interleave options (by correct I mean same options that will be used for
encoding).
If You would like to get video size value rather than bit rate, press V and check Show size.
It is also a good idea to keep track of bit per pixel (bpp) value, which is indirect indicator of video
quality. Though actual value depends on particular movie compressibility, common practice is to keep
bit per pixel value between 0.15 and 0.25. In case You get too low bpp, consider either decreasing
frame size or increasing target movie size. Going above 0.25 is impractical due to negligible video
quality gains.
Generating AviSynth scripts
Introduction
AviSynth is a frameserver application allowing access VOB/MPEG les as an ordinary AVI le. This
is done via a special script having AVS extension which can be opened in Your favorite AVI editor or
played back by AVI player.
Pre-requisites
Except Avisynth itself, You will need to download and install DGIndex. Then copy DGDecode.dll
from DGIndex root directory to AviSynths plugins directory. Note, that Aspect was tested with
AviSynth 2.5.5 and DGIndex 1.4.4.
Generating scripts
Currently, AVS scripts can be generated only from DGIndex project (d2v) les, so create one: start
DGIndex, open desired MPEG/VOB collection, make sure that audio track is decoded to WAV (go to
3
If You would like to specify audio size rather than bit rate, press U and check External audio
5
Audio - Output Method and select Decode AC3 Track to WAV) and save project. Then open
it in Aspect, adjust cropping values, set target resolution and click Save button. In the appeared
dialog, You may select alternative audio track (leave audio eld blank if You dont want any) and
choose between resize algorithms. When done, click Save; thats it.
Key bindings
Main window key bindings
F1 display this help le (requires pdf viewer installed)
A select predened aspect ratio
C activate cropping dialog
R activate resolution selection dialog
Ctrl + + increase resolution
Ctrl + - decrease resolution
Ctrl + * autosize
U select predened audio bitrate/size
S select predened target size
F select frame rate
O activate options dialog
Ctrl + O will bring le open and cropping dialogs consequently
Ctrl + S if resolution is set, it will bring AviSynth save dialog
Key bindings in cropping dialog
A select aspect ratio
Ctrl + O open VOB le
Ctrl + K clear grabbed image
+ zoom in
- zoom out
Ctrl + / forward (one frame)
Ctrl + * fast forward (about 5 seconds)
G set focus to frame eld
Common key bindings
Esc closes dialog window (in fact, any window except main)
6
Tips
You may change default resolution in cropping dialog: just create bitmap image of desired
dimensions, name it preview.bmp and place in Aspect root directory.
You may imitate VOB/MPEG2 playback by pressing and holding Ctrl + / keys in cropping
dialog.
Duration retrieval from VOBs is disabled by default. However, You can re-enable it by adding
the following lines to aspect2.ini:
[Misc]
retrieve vob duration=1
7

You might also like