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