logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git

magnitudes.xhtml (2495B)


  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <!--#include file="/templates/head.shtml" -->
  5. <title>Orders of Magnitudes — lanodan’s cyber-home</title>
  6. </head>
  7. <body>
  8. <!--#include file="/templates/en/nav.shtml" -->
  9. <main>
  10. <h1>Orders of Magnitudes</h1>
  11. <p>All of them based on reviewable math, no averages based on sample data where a bias could be introduced or the worst case scenario forgotten.</p>
  12. <h2 id="notations">notations</h2>
  13. <dl>
  14. <dt>kb/Mb/Gb/Tb/…</dt><dd>SI prefixes (per-1000) for bits</dd>
  15. <dt>kib/Mib/Gib/Tib/…</dt><dd>IEC prefixes (per-1024) for bits</dd>
  16. <dt>kB/MB/GB/TB/…</dt><dd>SI prefixes (per-1000) for 8-bit bytes aka. octets</dd>
  17. <dt>kiB/MiB/GiB/TiB/…</dt><dd>IEC prefixes (per-1024) for 8-bit bytes aka. octets</dd>
  18. </dl>
  19. <h2 id="audio">Audio bandwith</h2>
  20. <dl>
  21. <dt>PCM, mono, CD Quality (16-bit @ 44.1 kHz), no compression</dt>
  22. <dd><code>
  23. 16 bit × 44100 Hz = 705600 bps = <strong>705.6 kbps</strong>;<br />
  24. 705600 bps × 60 seconds = 42336000 bits-per-minute = <strong>42.336 Mb/minute</strong>
  25. </code></dd>
  26. <dt>PCM, stereo, CD Quality (16-bit @ 44.1 kHz), no compression, 80 minutes (CD typical max duration)</dt>
  27. <dd><code>
  28. 16 bit × 44100 Hz × 80 minutes × 2 ch<br />
  29. = 705600 bits/second × 4800 seconds × 2ch<br />
  30. = 6773760000 bits/80-minutes = 6.77376 Gb/80-minutes<br />
  31. = 846720000 octets/80-minutes = <strong>846.72 MB/80-minutes</strong>
  32. </code></dd>
  33. </dl>
  34. <h2 id="image">Image filesizes</h2>
  35. <dl>
  36. <dt>FullHD, True Color (24-bit), no compression, no color-indexing</dt>
  37. <dd><code>(1920 × 1080 × 24 bit)/8 = 6220800 octets = <strong>6.2208 MB</strong></code>. A file header of say 16 octets (4 octets each for: magic/signature, codec, height, width) being negligible at this magnitude.</dd>
  38. </dl>
  39. <h2 id="video">Video</h2>
  40. <dl>
  41. <dt>FullHD @ 60 Hz, True Color (24-bit), no compression, no color-indexing</dt>
  42. <dd><code>(1920 × 1080 × 24 bit × 60 Hz)/8 = 373248000 bps = <strong>373.248 Mbps</strong></code></dd>
  43. </dl>
  44. <h2 id="power_2">Power of 2</h2>
  45. <!-- seq 10 10 60 | sed 's;^;2^;' | \bc | xargs humanize -b -->
  46. <pre>2<sup>10</sup> = 1024 B
  47. 2<sup>20</sup> = 1024 KiB
  48. 2<sup>30</sup> = 1024 MiB
  49. 2<sup>40</sup> = 1024 GiB
  50. 2<sup>50</sup> = 1024 TiB
  51. 2<sup>60</sup> = 1024 PiB</pre>
  52. </main>
  53. <!--#include file="/templates/en/footer.shtml" -->
  54. </body>
  55. </html>