Difference between revisions of "Bitrate Calculator"
From SDA Knowledge Base
(27 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<addscript src='bitrate_calculator' /> | <addscript src='bitrate_calculator' /> | ||
− | + | This bitrate calculator uses JavaScript.<br /> | |
− | <span id=" | + | There are 8 bits in a byte, 1024 bytes in a kilobyte, 1024 kilobytes in a megabyte, and 1024 megabytes in a gigabyte.<br /> |
− | + | <br /> | |
− | <input type="text" id=" | + | 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> <span id="bitrateinput"><input type="text" size="10" id="customquality" onclick="this.value=''" onchange="bitCalc()" value="enter value" /></span> kilobits per second | ||
+ | <br /><br /> | ||
+ | <input type="text" size="5" id="hoursinput" onkeyup="javascript:bitCalc()" value="" /> hour(s)<br /> | ||
+ | <input type="text" size="5" id="minutesinput" onkeyup="javascript:bitCalc()" value="" /> minute(s)<br /> | ||
+ | <input type="text" size="5" id="secondsinput" onkeyup="javascript:bitCalc()" value="" /> second(s)<br /> | ||
+ | <br /> | ||
+ | <span id="result"></span> |
Latest revision as of 16:12, 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" size="10" id="customquality" onclick="this.value=" onchange="bitCalc()" value="enter value" /> kilobits per second
<input type="text" size="5" id="hoursinput" onkeyup="javascript:bitCalc()" value="" /> hour(s)
<input type="text" size="5" id="minutesinput" onkeyup="javascript:bitCalc()" value="" /> minute(s)
<input type="text" size="5" id="secondsinput" onkeyup="javascript:bitCalc()" value="" /> second(s)