Autosave: 2024-12-27 14:21:56
|
@ -0,0 +1,98 @@
|
|||
---
|
||||
tags: [sound, binary]
|
||||
created: Friday, December 27, 2024
|
||||
---
|
||||
|
||||
# Audio file formats
|
||||
|
||||
## CD
|
||||
|
||||
- CDs store audio in uncompressed PCM (Pulse Code Modulation) format
|
||||
- They have a sampling rate of 44.1kHz
|
||||
- In two channels for stereo
|
||||
|
||||
## WAV: Waveform Audio File Format
|
||||
|
||||
- CD-quality encoding with no compression
|
||||
- Bit-for-bit identical to the CD source
|
||||
- Historically developed for Windows machines but can play on all operating
|
||||
systems
|
||||
|
||||
## FLAC: Free Lossless Audio Codec
|
||||
|
||||
- Basically the same as WAV but in a (losslessly) compressed format
|
||||
- The difference between a novel in a text file (WAV) and as a zipped file
|
||||
|
||||
## MP3: MPEG-1 Audio Layer MP3
|
||||
|
||||
- Lossy format.
|
||||
- When a WAV file (or other lossless format) is converted to MP3 a Fast Fourier
|
||||
Transform analysis is performed to determine the frequency of certain sounds.
|
||||
- This is used by the encoder to decide which parts of the sound are
|
||||
imperceptible and thus which can be discarded to reduce the file size. This is
|
||||
done through the application of psycho-acoustic models.
|
||||
- The remaining data is then compressed
|
||||
- Examples of the data reduction applied:
|
||||
- Removing frequencies that humans cannot hear
|
||||
- Removing quieter sounds that are masked by louder sounds
|
||||
- Combining similar frequencies
|
||||
- Reducing stero information where it is less noticable
|
||||
- A conversion to MP3 from, for example, a CD source is always a one-way process
|
||||
and is not reversible. Once information is discarded in the compression
|
||||
process it cannot be retrieved. This is obviously in contrast to lossless
|
||||
methods like FLAC where the original CD audio can always be reconstructed.
|
||||
- It follows from the above that if you repeatedly encode a CD source to MP3, it
|
||||
will deteriorate in quality since more data is being removed each time.
|
||||
|
||||
## OGG: Ogg Vorbis
|
||||
|
||||
- An open-source alternative to MP3
|
||||
- Typically achieves better quality than MP3 at the same bit rate, especially at
|
||||
very high/ low frequencies
|
||||
- Also better stereo handling at low frequencies
|
||||
- Uses a more modern psycho-acoustic model
|
||||
|
||||
## Variable and constant bit rates
|
||||
|
||||
For lossy formats like MP3, the amount of data that is being encoded from the
|
||||
uncompressed source is expressed via the unit of "bit rate": **how many
|
||||
thousands of bits are being used to represent each second of audio**.
|
||||
|
||||
There are two methods of encoding that impact on the bit rate.
|
||||
|
||||
With _variable bit rate_ encoding, the encoder dynamically adjusts the bit rate
|
||||
depending on what is happening in the music. During complex passages (e.g. a
|
||||
full orchestra) it uses a higher bit rate to capture the detail. During simpler
|
||||
passages (like a single instrument) it uses lower bit rates since less data is
|
||||
needed and during silence it can drop to very low bit rates.
|
||||
|
||||
_Constant bit rate encoding_ uses the same bit rate throughout, it is
|
||||
consequently less efficient.
|
||||
|
||||
When talking about the quality of MP3s there are generally two bit rates cited:
|
||||
|
||||
- ~128kbps: acceptable but significantly reduced
|
||||
- 320kbps: the highest quality you can get whilst still using a lossy method
|
||||
like MP3
|
||||
|
||||
With VBR, these are sometimes expressed as an average.
|
||||
|
||||
Subjectively, A 128kbps MP3 might sound "underwater" or "swishy", while a
|
||||
320kbps version would preserve much more detail.
|
||||
|
||||
Still, the bitrate of a CD is 1411kbps! A 128kbs MP3 is therefore only capturing
|
||||
about 9% of CD quality and a 320kbps MP3 is capturing about 23% of CD quality.
|
||||
|
||||
## Streaming services
|
||||
|
||||
Spotify uses Ogg Vorbis throughout but uses different bit rates for its diferent
|
||||
tiers. The free tier has a range from 24-160kbs at VBR with the option of 320kbs
|
||||
on the premium tier.
|
||||
|
||||
Other services offer FLAC or FLAC-equivalent quality at their most expensive
|
||||
tiers (Apple Music, Amazon Music, Tidal).
|
||||
|
||||
Og Vorbis is particularly well-suited to streaming. It can seamlessly switch bit
|
||||
rates during the stream which is beneficial with changeable network conditions.
|
||||
Plus data is organised into independent packets so if a packet is lost there is
|
||||
no perceptible difference.
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
tags: []
|
||||
created: Friday, December 27, 2024
|
||||
---
|
||||
# Binary_encoding_of_sound
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [cryptography]
|
||||
tags: [cryptography, encryption]
|
||||
created: Friday, December 20, 2024
|
||||
---
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [encryption]
|
||||
tags: [encryption, cryptography]
|
||||
created: Friday, December 20, 2024
|
||||
---
|
||||
|
Before Width: | Height: | Size: 664 B After Width: | Height: | Size: 664 B |
Before Width: | Height: | Size: 622 B After Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
@ -13,12 +13,14 @@ computer science.
|
|||
|
||||

|
||||
|
||||
**Build ID:** dc239556-fd21-4147-b56e-3d8b474984ad
|
||||
**Build ID:** 3cd71ed3-2c64-460c-92b8-94889befa1fe
|
||||
|
||||
**Published:** Fri 20 Dec 2024 13:12:09
|
||||
**Published:** Fri 27 Dec 2024 14:21:54
|
||||
|
||||
### Recent edits
|
||||
|
||||
- [[Audio_file_formats]]
|
||||
- [[Binary_encoding_of_sound]]
|
||||
- [[a4601796_trapdoor_functions]]
|
||||
- [[bbdcb54f_public_key_cryptography]]
|
||||
- [[Dynamic_and_static_websites]]
|
||||
|
@ -29,11 +31,9 @@ computer science.
|
|||
- [[HTTPS]]
|
||||
- [[Bauman_quote]]
|
||||
- [[fbbfbc32-political-accommodation-inveigelment-surveillance-capitalism]]
|
||||
- [[a247fa9b_surveillance_capitalism_not_necessary]]
|
||||
- [[AWS_SNS]]
|
||||
|
||||
|
||||
### All notes (509)
|
||||
### All notes (511)
|
||||
|
||||
- [[0716531c_rewilding_the_internet]]
|
||||
- [[241fe1a3_the_Web_versus_modem_BBSs]]
|
||||
|
@ -74,6 +74,7 @@ computer science.
|
|||
- [[Assembly]]
|
||||
- [[Associative_Property_of_Addition_and_Multiplication]]
|
||||
- [[Atomic_and_molecular_propositions]]
|
||||
- [[Audio_file_formats]]
|
||||
- [[Awk]]
|
||||
- [[Axioms_of_set_theory]]
|
||||
- [[Bash_colour_output]]
|
||||
|
@ -91,6 +92,7 @@ computer science.
|
|||
- [[Binary_arithmetic]]
|
||||
- [[Binary_colour_encoding]]
|
||||
- [[Binary_encoding]]
|
||||
- [[Binary_encoding_of_sound]]
|
||||
- [[Binary_encoding_of_text]]
|
||||
- [[Binary_number_system]]
|
||||
- [[Binary_units_of_measurement]]
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 295 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 289 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 224 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 312 KiB After Width: | Height: | Size: 312 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 724 KiB After Width: | Height: | Size: 724 KiB |
Before Width: | Height: | Size: 198 KiB After Width: | Height: | Size: 198 KiB |
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 232 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 3.6 MiB After Width: | Height: | Size: 3.6 MiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 808 KiB After Width: | Height: | Size: 808 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 470 KiB After Width: | Height: | Size: 470 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 201 KiB |
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 175 KiB |
Before Width: | Height: | Size: 299 KiB After Width: | Height: | Size: 299 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 213 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 848 KiB After Width: | Height: | Size: 848 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 171 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 157 KiB |
Before Width: | Height: | Size: 226 KiB After Width: | Height: | Size: 226 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 414 KiB After Width: | Height: | Size: 414 KiB |
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 314 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 174 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 167 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 374 KiB After Width: | Height: | Size: 374 KiB |
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 448 KiB After Width: | Height: | Size: 448 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 668 KiB After Width: | Height: | Size: 668 KiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 249 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 160 KiB |
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 425 KiB After Width: | Height: | Size: 425 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 164 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
98
zk/Audio_file_formats.md
Normal file
|
@ -0,0 +1,98 @@
|
|||
---
|
||||
tags: [sound, binary]
|
||||
created: Friday, December 27, 2024
|
||||
---
|
||||
|
||||
# Audio file formats
|
||||
|
||||
## CD
|
||||
|
||||
- CDs store audio in uncompressed PCM (Pulse Code Modulation) format
|
||||
- They have a sampling rate of 44.1kHz
|
||||
- In two channels for stereo
|
||||
|
||||
## WAV: Waveform Audio File Format
|
||||
|
||||
- CD-quality encoding with no compression
|
||||
- Bit-for-bit identical to the CD source
|
||||
- Historically developed for Windows machines but can play on all operating
|
||||
systems
|
||||
|
||||
## FLAC: Free Lossless Audio Codec
|
||||
|
||||
- Basically the same as WAV but in a (losslessly) compressed format
|
||||
- The difference between a novel in a text file (WAV) and as a zipped file
|
||||
|
||||
## MP3: MPEG-1 Audio Layer MP3
|
||||
|
||||
- Lossy format.
|
||||
- When a WAV file (or other lossless format) is converted to MP3 a Fast Fourier
|
||||
Transform analysis is performed to determine the frequency of certain sounds.
|
||||
- This is used by the encoder to decide which parts of the sound are
|
||||
imperceptible and thus which can be discarded to reduce the file size. This is
|
||||
done through the application of psycho-acoustic models.
|
||||
- The remaining data is then compressed
|
||||
- Examples of the data reduction applied:
|
||||
- Removing frequencies that humans cannot hear
|
||||
- Removing quieter sounds that are masked by louder sounds
|
||||
- Combining similar frequencies
|
||||
- Reducing stero information where it is less noticable
|
||||
- A conversion to MP3 from, for example, a CD source is always a one-way process
|
||||
and is not reversible. Once information is discarded in the compression
|
||||
process it cannot be retrieved. This is obviously in contrast to lossless
|
||||
methods like FLAC where the original CD audio can always be reconstructed.
|
||||
- It follows from the above that if you repeatedly encode a CD source to MP3, it
|
||||
will deteriorate in quality since more data is being removed each time.
|
||||
|
||||
## OGG: Ogg Vorbis
|
||||
|
||||
- An open-source alternative to MP3
|
||||
- Typically achieves better quality than MP3 at the same bit rate, especially at
|
||||
very high/ low frequencies
|
||||
- Also better stereo handling at low frequencies
|
||||
- Uses a more modern psycho-acoustic model
|
||||
|
||||
## Variable and constant bit rates
|
||||
|
||||
For lossy formats like MP3, the amount of data that is being encoded from the
|
||||
uncompressed source is expressed via the unit of "bit rate": **how many
|
||||
thousands of bits are being used to represent each second of audio**.
|
||||
|
||||
There are two methods of encoding that impact on the bit rate.
|
||||
|
||||
With _variable bit rate_ encoding, the encoder dynamically adjusts the bit rate
|
||||
depending on what is happening in the music. During complex passages (e.g. a
|
||||
full orchestra) it uses a higher bit rate to capture the detail. During simpler
|
||||
passages (like a single instrument) it uses lower bit rates since less data is
|
||||
needed and during silence it can drop to very low bit rates.
|
||||
|
||||
_Constant bit rate encoding_ uses the same bit rate throughout, it is
|
||||
consequently less efficient.
|
||||
|
||||
When talking about the quality of MP3s there are generally two bit rates cited:
|
||||
|
||||
- ~128kbps: acceptable but significantly reduced
|
||||
- 320kbps: the highest quality you can get whilst still using a lossy method
|
||||
like MP3
|
||||
|
||||
With VBR, these are sometimes expressed as an average.
|
||||
|
||||
Subjectively, A 128kbps MP3 might sound "underwater" or "swishy", while a
|
||||
320kbps version would preserve much more detail.
|
||||
|
||||
Still, the bitrate of a CD is 1411kbps! A 128kbs MP3 is therefore only capturing
|
||||
about 9% of CD quality and a 320kbps MP3 is capturing about 23% of CD quality.
|
||||
|
||||
## Streaming services
|
||||
|
||||
Spotify uses Ogg Vorbis throughout but uses different bit rates for its diferent
|
||||
tiers. The free tier has a range from 24-160kbs at VBR with the option of 320kbs
|
||||
on the premium tier.
|
||||
|
||||
Other services offer FLAC or FLAC-equivalent quality at their most expensive
|
||||
tiers (Apple Music, Amazon Music, Tidal).
|
||||
|
||||
Og Vorbis is particularly well-suited to streaming. It can seamlessly switch bit
|
||||
rates during the stream which is beneficial with changeable network conditions.
|
||||
Plus data is organised into independent packets so if a packet is lost there is
|
||||
no perceptible difference.
|
9
zk/Binary_encoding_of_sound.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
tags: []
|
||||
created: Friday, December 27, 2024
|
||||
---
|
||||
# Binary_encoding_of_sound
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [cryptography]
|
||||
tags: [cryptography, encryption]
|
||||
created: Friday, December 20, 2024
|
||||
---
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
tags: [encryption]
|
||||
tags: [encryption, cryptography]
|
||||
created: Friday, December 20, 2024
|
||||
---
|
||||
|
||||
|
|