Question of mp3 Being a Lossy Format

  • Thread starter Raj Ganatra
  • Start date
  • Tags
    Format
In summary, Lossy just means that if you convert to mp3 to wave, and then back to mp3, then the quality goes down.
  • #1
Raj Ganatra
2
0
Question of mp3 Being a "Lossy" Format

Hi,

How is mp3 "lossy"? For example, would I lose quality in an mp3 file if I move the file around: say that the mp3 is stored on my c drive, but then I burn it in the same format to a disk, then I copy it from the disk back to my c drive, then I again burn it to another disk, and then from there I re-copy it back to my c drive. Does this process cause the file to lower in quality each time I do this? Or does lossy just mean that if I convert to mp3 to wave, and then back to mp3, then the quality goes down?

Second question: on all those music editing software, can it only edit the song in .wav format? For example, let's say I open an mp3 file in one of those software, does the software first convert it to .wav, edits it, and then re-encode it back to mp3, thus causing a "lossy" effect? Or does the software directly edit the file in mp3 format so that there is no "lossy" effect?

Thanks!
 
Computer science news on Phys.org
  • #2
Another question please: CD quality is said to sample sound at 41100 values per second. What is this "value"? Are they referring to 41,000 individual frequencies of sound per second? So if a sound is producing 100,000 frequencies for a certain second, does the recorder take a statistically accurate sampling of this (adequately randomized) with the sample size being 41,000?

Thanks again!
 
  • #3
No the file will stay the same unless you are burning those files as CD-Audio because it will have to be encoded into a format stereos and radios and anything that accepts cd's can read. Every other step does not change the file quality however, it is a perfect copy.
 
  • #4
Raj Ganatra said:
Another question please: CD quality is said to sample sound at 41100 values per second.
It's 44100 i think, and measured in Hz. Typically 1 Herz = 1 cycle per second. When talking about sound files 1 Hertz = 1 frame per second.
So a sound file, such as WAV, with "Sample Rate" of 44100Hz means it has 44100 sample frames per second.
A sample frame may be divided into a number of sample points,1 if Mono, 2 if Stereo ...etc. When playing a sound file, a program reads the sample frames and plays them back.
The difference between MP3 and WAV is in the size of the sample frames and the sample rate. The reason is that there is information in a WAV file that can be thrown away without the user noticing significantly. This is what we mean by losing quality, the WAV playback is much more faithful to what was recorded than the MP3, which throws small chunks away because they won't be very noticeable.
You can think about this in the following manner. When recording, a sound recorder needs to read in a sample every so often. If you read a sample 100,000 times per second, you will have a very high quality sound file, but most of the time you don't need that much. Compare this to a video. A video is also composed of frames. When creating an animation, if you use 2 frames per second, then the animation isn't smooth. As you go up in the frame rate the differences between each frame become smaller and the animation becomes smoother and smoother. It reaches a point at about 30 frames per second where you can't tell the difference between the animation and the real thing. This means that if you go up to 60 you won't see any improvement and you will only get a much bigger file size.
So the WAV is like the 60 frame per second animation, and the MP3 the 30 frames per second animation. Of course there's other things an MP3 encoder does to throw away useless information. For example, in your animation, instead of storing every frame, you might just store the first frame and the differences between each frame. You can do similar things to audio.
For my senior design project I'm doing an Audio Mixer so I've had to learn a lot about this stuff, and it's pretty interesting stuff, for example, did you know that in order to mix two sounds together all you need to do add the values in each frame together? And that to increase the volume by a factor X all you need to do is multiple the value of each frame by the value X?
 

Related to Question of mp3 Being a Lossy Format

What is a lossy format?

A lossy format is a type of digital data compression that sacrifices some of the original data in order to reduce the file size. This results in a decrease in the overall quality of the data, but allows for more efficient storage and transmission.

How does the mp3 format achieve lossy compression?

The mp3 format achieves lossy compression by analyzing and discarding parts of the original audio signal that are deemed to be less important or less audible to the human ear. This includes high frequency sounds and subtle details, resulting in a smaller file size.

What are the potential drawbacks of using a lossy format like mp3?

The main drawback of using a lossy format like mp3 is a decrease in audio quality. This can result in a loss of clarity and detail in the sound, especially for music with a wide dynamic range. Additionally, repeated compressions can further degrade the audio quality.

Are there any benefits to using a lossy format like mp3?

Yes, there are several benefits to using a lossy format like mp3. The most significant benefit is the reduced file size, allowing for more efficient storage and transmission of audio files. This makes it easier to share and access music, especially in a time when streaming is becoming increasingly popular.

Can the lossy compression in mp3 be reversed?

No, the lossy compression in mp3 cannot be reversed. Once the original data has been discarded, it cannot be recovered. This is why it is important to carefully consider the use of a lossy format for important or high-quality audio recordings.

Similar threads

  • Computing and Technology
Replies
1
Views
1K
  • Computing and Technology
Replies
7
Views
6K
  • Computing and Technology
Replies
30
Views
2K
  • Computing and Technology
2
Replies
37
Views
5K
Replies
14
Views
2K
  • Computing and Technology
Replies
3
Views
4K
  • Computing and Technology
Replies
8
Views
2K
  • Computing and Technology
Replies
24
Views
7K
Replies
11
Views
2K
  • Computing and Technology
Replies
16
Views
2K
Back
Top