Difference between revisions of "Bitrate Calculator"

From SDA Knowledge Base

Jump to: navigation, search
m
m (Autoselect (I think it'll work))
Line 11: Line 11:
 
<option value="576">MQ</option>
 
<option value="576">MQ</option>
 
<option value="192">LQ</option>
 
<option value="192">LQ</option>
</select><span id="bitrateinput"><input type="text" id="customquality" onchange="javascript:bitCalc()" value="enter kilobits per second here" onclick="this.value = ''" /></span> kilobits per second
+
</select><span id="bitrateinput"><input type="text" id="customquality" onClick="javascript:getElementById('customquality').focus();getElementById('customquality').select();" onchange="javascript:bitCalc()" value="enter kilobits per second here" /></span> kilobits per second
 
<br /><br />
 
<br /><br />
 
<input type="text" id="hoursinput" onkeyup="javascript:bitCalc()" value="" /> hour(s)<br />
 
<input type="text" id="hoursinput" onkeyup="javascript:bitCalc()" value="" /> hour(s)<br />

Revision as of 08:44, 20 April 2009

<addscript src='bitrate_calculator' /> This bitrate calculator uses JavaScript.
There are 8 bits in a byte, 1024 bytes in a kilobyte, 1024 kilobytes in a megabyte, and 1024 megabytes in a gigabyte.

Quality: <select id="quality" onchange="javascript:bitCalc()"> <option value="enter bitrate here" selected>custom:</option> <option value="10320">XQ</option> <option value="5320">IQ</option> <option value="2176">HQ</option> <option value="576">MQ</option> <option value="192">LQ</option> </select><input type="text" id="customquality" onClick="javascript:getElementById('customquality').focus();getElementById('customquality').select();" onchange="javascript:bitCalc()" value="enter kilobits per second here" /> kilobits per second

<input type="text" id="hoursinput" onkeyup="javascript:bitCalc()" value="" /> hour(s)
<input type="text" id="minutesinput" onkeyup="javascript:bitCalc()" value="" /> minute(s)
<input type="text" id="secondsinput" onkeyup="javascript:bitCalc()" value="" /> second(s)

Personal tools