kbps ratios for saving files

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Xerlome
Posts: 276
Joined: Thu Mar 13, 2014 6:52 pm
Operating System: Windows 7

kbps ratios for saving files

Post by Xerlome » Thu Mar 13, 2014 7:25 pm

I use audacity version 2.0.3 on Windows 7 Professional.

I prepare audio for radio broadcast.

If I am starting with a downloaded file made at 128 kbps, is there any resulting quality advantage or disadvantage to exporting it at a higher rate such as 256?

Does the fact that 256 is exactly divisible by 128 have any significance with regard to quality of a conversion?

If I were to use Audacity to record audio that is higher quality than the above numbers, how does this relate to kbps in terms best export level?
Last edited by Xerlome on Fri Apr 24, 2015 4:31 pm, edited 2 times in total.
Reason: Fixed typos in topic title

steve
Site Admin
Posts: 80697
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: kbps ratios for saving fils

Post by steve » Thu Mar 13, 2014 8:11 pm

Encoding to a "lossy" format such as MP3 ALWAYS reduces the sound quality irreversibly.

Re-encoding an MP3 file will reduce the quality further. It's like photocopying - each "generation" is a bit worse than the previous one until it eventually becomes a blurry mess.

Higher bit rates will cause less loss of sound quality than low bit rates, but all will reduce the quality to some extent.
Converting to a "lossless" format such as WAV will preserve the same quality as the original file.
Xerlome wrote:Does the fact that 256 is exactly divisible by 128 have any significance with regard to quality of a conversion?
No.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Xerlome
Posts: 276
Joined: Thu Mar 13, 2014 6:52 pm
Operating System: Windows 7

Re: kbps ratios for saving fils

Post by Xerlome » Thu Mar 13, 2014 9:12 pm

Thank you for this answer. I also looked at the FAQ but didn't find answers to some of my specific questions.

I understand about mp3 being lossy. The radio station equipment will not play WAV. For now, let's assume I must use mp3, and I want to know the best way to use it, so I need to understand certain principles involved.

If I download a file that is 128, and open it in Audacity, what is the best rate to export the edited file? Is it better to export it at 128, or would exporting at 320 distort it more, being a different rate?

If I instead use Audacity to record the same item playing at 320, and after editing I export it at 320, would that be better than the downloaded 128, or does going the record route lower the quality more?

The station's internet stream is only 128, in case that matters.

DVDdoug
Forum Crew
Posts: 9278
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: kbps ratios for saving fils

Post by DVDdoug » Thu Mar 13, 2014 9:42 pm

With lossy compression (MP3, AAC, OGG, etc.), the general rule is:

Higher bitrate = less compression = bigger files* = better quality.

Lower bitrate = more compression = smaller files = worse quality.


With the LAME MP3 encoder, you can use variable bitrate and then you choose the quality (i.e. V0 = best quality) and LAME determines the required bitrate for the particular material... Some material is easy to compress, and other material is harder.

It gets a little tricky... You cannot say that 320kbps is "better" than 128 or 192kbps if they all sound identical, or if they all sound identical to the uncompressed original (which is possible, depending on the program material and the listener's ability to hear compression artifacts).



With lossless compression (FLAC or ALAC, etc.) quality is always identical to the original. The bitrate depends on the original-uncompressed bitrate, how "smart" the compression algorithm is, and how hard it "works". i.e. FLAC has several settings that determine how much processing it does and how much time it takes to compress.



With uncompressed formats (WAV, etc.) the bitrate (bitrate kilobits per second) is simply determined by the number of samples per second (kHz), the number of bits per sample, and the number of channels. i.e. An audio CD is 44.1kHz x 16 bits x 2 channels = 1411kbps.


* As long as you know that there are 8 bits in a byte, you can calculate file size (of any audio or video file) from the bitrate & playing time. (With a little uncertainty due to tags/metadata, the file header, and other "overhead".)

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: kbps ratios for saving fils

Post by kozikowski » Fri Mar 14, 2014 5:39 am

You can minimize the additional damage by saving at the highest bitrate you can. If you just make another 128 clip, it will have sound damage similar to 64. If you export 384 or higher, many people won't be able to hear the damage increase, but, of course, the size will go way up.

If you're doing very simple editing, you might be able to use one of the native MP3 editors and not use Audacity at all. There will be no increase in damage because those editors don't take the original MP3 apart and need to make a new one.

http://mp3splt.sourceforge.net/mp3splt_page/home.php
The radio station equipment will not play WAV.
That's rough to believe. Maybe they won't accept WAV files from outside contributors.

I guarantee if you have the only WAV file of shots fired at the local high school, somebody would figure out a way to play it.

Koz

steve
Site Admin
Posts: 80697
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: kbps ratios for saving fils

Post by steve » Fri Mar 14, 2014 10:37 am

Xerlome wrote:The station's internet stream is only 128, in case that matters.
So if you give them a 320 kbps MP3 then they would have to convert it to 128 kbps.
If they can convert a 320 kbps MP3 to their 128 kbps stream, then surely they must be able to convert WAV files?
Check with the radio station and ask them precisely what format you need to give them. The options are: CBR or VBR, mono or stereo or joint stereo, and then the bit rate (kbps).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Xerlome
Posts: 276
Joined: Thu Mar 13, 2014 6:52 pm
Operating System: Windows 7

Re: kbps ratios for saving fils

Post by Xerlome » Fri Mar 14, 2014 4:23 pm

I appreciate all the informative replies, and I'm starting to catch on. I'll check out native MP3 editors. But there are a few points I'm not clear on, wanting to understand how digital audio works.

Since the station stream is only 128, does it help at all for me to save a 128 file at 320 instead of at 128?

At the station, we use CD players with flash drive sockets, so I bring my files on a flash drive. Wav files will not even register on the readout, so i can't even find them to select. Making CDs from WAV might work, but this would be very time-consuming.

Assuming I could find a way to play WAV: If I open an mp3 file in Audacity, will there be no loss in the conversion to WAV? Or would I need to start with a WAV file to get the benefit?

What about using Audacity to record a stream running at a high rate? Is there any loss from using the record mode? So that if i record a 320 stream, am I better off than starting with a downloaded 128 file?

Would you say that technically the loss from converting an edited 128 file to 256 or 320 would be pretty small?

I also want to understand why the even ratio between 128 and 256 makes no difference in conversion. I imagined that it would be a more even sampling than with an odd ratio.

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: kbps ratios for saving fils

Post by kozikowski » Fri Mar 14, 2014 6:34 pm

This whole conversion problem comes from you using MP3 as original work. If you can stop doing that, many of these quality problems will vanish. MP3 is a final step — delivery to the user for his iPod, not a step in the middle of production. Never do production in MP3.

Each time you make an MP3, some sound damage is created. That's how it works. The magic of MP3 is its ability to cleverly hide the damage so most people can't hear it. When you edit MP3, the new MP3 has to hide the original damage plus the new damage. The effect of this is having an MP3 in far worse a quality than you started with.

"I edited my MP3 show and exported it as the same file size, but the sound is honky and bubbly now."

Yes. That's correct. If the station's stream is 128 no question, then the best you can do is shoot the work as WAV, edit as WAV and leave only one MP3 conversion at the station. 128 is the Audacity default quality and that works out very well. If you start out with 128 MP3 and cut it, then the very best you can possibly do is a final show of 64, barely enough quality for a stereo show. That's if you use WAV (uncompressed) in the middle.

If you/they insist on using MP3 in the middle, then use the highest possible MP3 rate as an Audacity export.

With all those MP3 steps in the middle, I'd be surprised if the shows had any better quality than a cellphone.

Koz

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: kbps ratios for saving fils

Post by kozikowski » Fri Mar 14, 2014 6:41 pm

I listen to a podcast talk show each week and I know they start with the original radio broadcast masters. It sounds perfect, but on some of the shows, they have an intro and commercial that was not part of the broadcast and they did it from multiple MP3s. It sounded nine-year-old kid awful particularly as it came right before the crystal clear show. I see they don't do that any more.

Koz

Xerlome
Posts: 276
Joined: Thu Mar 13, 2014 6:52 pm
Operating System: Windows 7

Re: kbps ratios for saving files

Post by Xerlome » Sat Mar 15, 2014 12:54 am

I think I basically understand. I may still need to use mp3 if other formats won't read on the player. And I'm largely stuck with needing to start with mp3 for much of what I use. So i need to do the best I can under the circumstances.

Remaining questions:

How does Audacity's record feature rate in all this, if the mp3 I record is fairly high quality?

Is there any way to analyze the quality of an audio file?

And just so I'm clear: Even if I save an edited 128 file at 320, will it still end up no better than 64?

Post Reply