wABC2  build 33
windows Advanced Bitrate Calculator || Help file

Features
Bitrate calculator
Proprtions
Frame size multiples
Quality Index
Container overhead support (AVI and OGM)
Multiple streams
Bitrate percentual distribution
Multilanguage: English and Italian

Basic operations
When you click a field (let's say Diskspace), the fields needing to be filled with data will be highlighted in red (in this case: Lenght, FPS, Container and the Stream list). When all those fields are filled, if you doubleclick on the field (Diskspace) it will be filled with the computed data.
To add a stream to the Stream list, click the Add button. A window will pop-up: first of all select the stream type (please note that only one video stream can be added), then choose the dimension type (either bit/s, bytes or percentual) and type in the dimension. For more information about percentual distribution, see the "Percentual Bitrate Distribution" chapter. Then click Add: the new stream should appear in the stream list.
To remove a stream, select it and then click Remove.
If necessary now fill the Proprtions (either by inserting the original frame size or the proportion, e.g. 16 and 9 for 16:9) and Size multiples fields (those values depends on the codec you'll use: e.g. for XviD are 4 and 4).
You are now ready to move the frame size slides. You'll notice that when you move one of the twos, the other one reacts to the changes: if you drag the width slide, the height one will be placed accordingly to the proprtions and the size multiples set.

Example
We have a 700MB CD we want to fill with a 4000 seconds AVI file containing one video (we need to calculate the bitrate of this one), one audio (128Kb/s) and one subtitles (12MB) streams.
First of all write in the Diskspace field 724003200 (700*1024^2), then in the the Lenght field 4000, and let's select AVI in the Container drop down menu (if the menu is unavailable, click Option > Calculate Overhead).
Now click Add > Video > % > Add, Add > Audio > Bitrate > 128000 > Add, Add > Subtitle > Dimension > 12582912 > Add: you should now have filled the Stream list with all the desired streams. If you doubleclick now the Video voice in the Stream list the computed bitrate will appear on that row.
You can now proceed in choosing the frame size. Let's say the frame should have 16:9 proprtions and the dimensions have to be multiples of 4 both in horizontal and vertical. Fill the Proprtion fields with 16 and 9 and the Size multiples with 4 and 4. Now drag one of the Width or of the Height slides until you think the dimensions are ok. You'll see the Proprtion error field change when moving the slides: the nearer to 0, the less proportions distortion (yes, that's better).

Advanced operations
Percentual Bitrate Distribution
You can insert more than one stream with the percentual dimension: the available bitrate will be distributed proportionally. Please note that the sum of the percentual dimensions doesn't have to be 100, but it will be scaled to 100 whenever the bitrate has to be computed (e.g. if you set a stream to 30% and another stream to 20%, and you request the bitrate to be computed, the first one will become 60% and the second 40%)
Video Quality
In order to better choose the frame size, you can use the Video Quality slide. Video Quality is an indirect index of the video quality, since it's computed as:
Video Quality = Int ( Bitrate / ( FPS * Width * Height) * 10000 )
You can directly set the video quality value, and the Width and Height slides will be moved to meet the Proportions, Size multiples, Bitrate and Video Quality requested.

Comments, bugs and suggestions
Please mail me at wabc@cafxx.cjb.net. If you find a bug please send a detailed description of what you were doing, not just the error number.

About
wABC by CAFxX, 2001-2005.
www.cafxx.cjb.net for more informations.
wABC2 is writtten in Microsoft VisualBasic 6. To run the VB6 Runtime libraries have to be installed on the system.

Thanks to
Ghigo (www.ghigoweb.com)
Chris Smith (microsoft.public.vb.general.discussion) for the slides code.

Changelog
2.00.0018
Bug corrected in the videoquality slide and field.
Videoquality now automatically computed as soon as required datas are filled.
Windows are now centered.
2.00.0021
The slides changes are now immediate.
2.00.0023
Protected calcualtions routines from overflows.
Better roundings.

Some internal cleanup.

Caratteristiche
Calcolatore di bitrate
Proporzioni
Dimensioni dei fotogrammi multiple
Quality Index
Supporto dell'overhead dei container (AVI e OGM)
Stream multipli
Distribuzione percentuale del bitrate
Multilingue: Italiano ed Inglese

Operazioni di base
Quando si clicca su di uno dei campi (per esempio Spazio su disco), i campi che devono essere riempiti per poter portare a termine i calcoli sono evidenziati in rosso (in questo caso: Lunghezza, FPS, Container e Stream List). Quando tutti i campi necessari sono riempiti, se si fa doppio-click sul campo in questione (Spazio su disco), questo verrà riempito con i dati richiesti.
Per aggiungere uno stream alla Stream list, fare click sul tasto Aggiungi. Compare una finestra: in essa va selezionato prima di tutto il tipo di stream da aggiungere (nota: è ammesso un solo stream video), quindi il tipo di dimensione (bit/s, bytes o percentuale) e la dimensione. Per maggiori informazioni sulla distribuzione percentuale, vedi il capitolo "Distribuzione Percentuale del Bitrate". Una volta cliccato Aggiungi, il nuovo stream dovrebbe comparire nella Stream list.
Per eliminare uno stream, cliccare Rimuovi dopo averlo selezionato.
Se necessario, riempire anche i campi Proporzioni (inserendo o le dimensioni originali o le proporzioni: per 16:9 inserire 16 e 9) e quelli Multipli di (questi valori dipendono dal codec in uso: per XviD, per esempio, sono 4 e 4).
Ora è possibile muovere gli slide delle dimensioni del frame. Quando uno dei due viene mosso, l'altro reagisce di conseguenza per rispettare le proprzioni ed i multipli impostati.

Esempio
Abbiamo un CD da 700MB che vogliamo riempire con un file AVI della durata di 4000 secondi contenente uno stream video (di cui vogliamo calcolare il bitrate), uno audio (128Kb/s) ed uno di sottotitoli (12MB).
Prima di tutto scriviamo 724003200 (700*1024^2) nel campo Spazio su disco, quindi 4000 in Lunghezza e scegliamo AVI nel menù a discesa Container (se non è disponibile, Opzioni > Calcola overhead).
Quindi fare Aggiungi > Video > % > Aggiungi, Aggiungi > Audio > Bitrate > 128000 > Aggiungi, Aggiungi > Sottotitoli > Dimensioni > 12582912 > Aggiungi: la Stream list dovrebbe ora essere riempita con tutti gli stream necessari. Se ora facciamo doppioclick sulla voce Video nella Stream list, il bitrate del video verrà calcolato in base agli altri dati.
Possiamo ora procedere nello scegliere le dimensioni del video. Diciamo che esso deve avere proporzioni 16:9 e che le dimensioni devono essere multiple di 4 sia in orizzontale che in verticale. Dopo aver riempito i campi Proporzioni e Multipli di, spostiamo uno degli slide fin quando non pensi di aver trovato delle dimensioni accettabili. Il campo Errore proporzioni cambia man mano che si spostano gli slide delle dimensioni: più è vicino a 0, meno è presente distorsione delle proporzioni.

Operazioni Avanzate
Distribuzione Percentuale del Bitrate
Si possono inserire più di uno stream con dimensione percentuale: il bitrate disponibile verrà distribuito proporzionalmente. La somma delle percentuali non necessariamente deve essere uguale a 100: ma sarà automaticamente normalizzata a 100 nonappena il bitrate dovrà essere calcolato (ovvero se si inseriscono due stream da 20% e 30%, quando verranno calcolati i bitrate saranno automaticamente trasformati in 40% e 60%).
Video Quality
Per poter meglio scegliere la dimensione del fotogramma, si può usare lo slide Video Quality. Video Quality è un indice indiretto della qualità del video, ed è calcolato come:
Video Quality = Int ( Bitrate / ( FPS * Larghezza * Altezza) * 10000 )
Si può direttamente scegliere il valore di Video Quality, e gli slide Larghezza ed Altezza saranno spostati automaticamente in base ai valori di Proporzioni, Multipli di, Bitrate e Video Quality richiesti.

Commenti, errori e suggerimenti
Inviate una mail a wabc@cafxx.cjb.net. Se volete segnalare un errore, mandate una descrizione dettagliata di cosa stavate facendo, non solo il numero di errore.

Informazioni
wABC by CAFxX, 2001-2004.
Per maggiori informazioni www.cafxx.cjb.net.
wABC è scritto in Microsoft Visual Basic 6. Per funzionare richiede che le librerie di Runtime di VB6 siano installate nel sistema.

Ringraziamenti
Ghigo (www.ghigoweb.com)
Chris Smith (microsoft.public.vb.general.discussion) per il codice degli slide.

Cambiamenti
2.00.0018
Corretto bug nello slide e nel textbox VideoQuality.
Inserito calcolo automatico VideoQuality non appena fattibile.
Centramento finestre.
2.00.0021
Gli spostamenti dei vari slide sono ora immediati.
2.00.0023
Aggiunti controlli per gli overflow.
Migliori arrotondamenti.
Pulizia interna del codice.