written 8.5 years ago by | modified 2.9 years ago by |
Mumbai University > EXTC > Sem 7 > Data Compression and Encryption
Marks: 10 M
Year: Dec 2014
written 8.5 years ago by | modified 2.9 years ago by |
Mumbai University > EXTC > Sem 7 > Data Compression and Encryption
Marks: 10 M
Year: Dec 2014
written 8.5 years ago by |
Conventional compression methods, such as RLE, statistical, and dictionary-based, can be used to losslessly compress sound files, but the results depend heavily on the how sounds respond to each of the three classes of compression methods.
Run length encoding:
a) RLE may work well when the sound contains long runs of identical samples. With 8-bit samples, long runs of identical samples occurs easily.
b) With 16-bit samples, long runs in sound may be rare. Therefore RLE consequently becomes ineffective.
Statistical methods:
a) They assign variable-size codes to the samples according to their frequency of occurrence.
b) With 8-bit samples, there are only 256 different samples, so in a large audio file, the samples may sometimes have a flat distribution. Such a file will therefore not respond well to Huffman coding.
c) With 16-bit samples there are more than 65,000 possible samples, so some samples may occur very often, while others may be rare. Such a file may therefore compress better with arithmetic coding.
Dictionary-based methods:
a) Dictionary-based methods expect to find the same phrases again and again in the data. This happens with text, where certain strings may repeat often.
b) Sound, however, is an analog signal and the particular samples generated depend on the precise way the ADC works. With 8-bit samples, for example, a wave of 8 mv becomes a sample of size 2, but waves very close to that, say, 7.6 mv or 8.5 mv, may become samples of different sizes.
c) This is why parts of speech that sound the same to us, and should therefore have become identical phrases, end up being digitized slightly differently, and go into the dictionary as different phrases, thereby reducing compression. Dictionary-based methods are not well suited for sound compression.