Saturday, August 4

WAV to JPG to WAV

Lisp person Lemon Odor, apropos his interesting experiment to see how MP3 compression would affect images, threw the gauntlet: how would JPEG compression affect audio?

The answer is slightly interesting.

Sound was turned into a grayscale image that was 16 pixels tall to minimize discontinuities at the edges. An excerpt from the 19778x16 image:



You can get the resulting audio files here (850 KB). "q99" contains the lowest quality compression, which unsurprisingly is a bunch of noise with the original sound faintly audible. "q01" is the highest possible quality of JPEG compression; interestingly, it comes off as sounding pretty close to the original. The distortion seems to mess slightly with the harmonics, and that's about most of the difference I can make out.

A side-by-side graphic spectrum analysis of the high-quality JPEG and the original source reveals how poor my ears are at detecting background noise:



I know I'm getting a digital camera that can save to raw RGB.

Labels: ,

0 Comments:

Post a Comment

<< Home