Sunday 14 January 2018

mp3 - In what format is Audacity processing compressed audio files?


What is Audacity doing with a compressed format when importing an mp3 or flac into it?


It looks like it is extracting it


enter image description here


When I open a wav file, it looks different - it just processes for a second and it's there:


enter image description here


What happens? What is the difference? Is Audacity processing the mp3 or wma after having converted (extracted?) them as wav?



Answer



When you feed it MP3-encoded files, it will decode the files into an uncompressed format that is used for internal representation.


Working on encoded files directly is not easy since audio samples may be interleaved or dependent on others. An audio sample is represented in the percetpual hearing domain – so, what you see in the file is not actual audio: you have to decode it again, using psychoacoustic methods. If you decode the file, you will get an easy to work with waveform with Pulse Code Modulation.


In fact, Audacity will create chunks of 1 MB files as temporary files, and they seem to be just regular PCM-encoded WAV, meaning raw audio. That's also why importing WAVs is so fast – they do not have to be transcoded, they can just be used as-is.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...