Become a Site Supporter and Never see Ads again!

Author Topic: Getting the best MP3 sound quality when file size is limited  (Read 9034 times)

0 Members and 1 Guest are viewing this topic.

Offline DSatz

  • Site Supporter
  • Trade Count: (35)
  • Needs to get out more...
  • *
  • Posts: 3412
  • Gender: Male
Getting the best MP3 sound quality when file size is limited
« on: March 30, 2012, 10:34:27 PM »
Hi. A non-profit recording client of mine recently needed a set of MP3 sound clips to apply for a grant. The rules said that the maximum file size was 5 MB per sound clip, and the client wanted me to fit from 5-1/2 to 8-1/2 minutes of music into the various clips. That meant that I had to limit the bit rate to 80 kbps or, in the case of the one 8-1/2 minute clip, 64 kbps, which is distinctly low-fi. I'm used to 96 kbps as the basic rate for spoken word material, for example, and to my mind listenable music starts at maybe 128 kbps.

In a desire to squeeze better audio quality out of the available bandwidth, I decided to try VBR (variable bit rate) encoding, which adjusts itself to the complexity of the waveform at any given moment and reserves the most bits for the most complex musical passages. That approach sounds as if it should give higher sound quality than a constant bit rate (CBR) for any given file size, and various on-line references seemed to support this.

But at least the way I was using Adobe Audition 3.0, I sure didn't find that to be true. I could set the quality percentage to any value that I wanted between 1 and 100 and that way, generate files that were almost exactly 5 MB, but the sound really stank, even compared to 64 kbps (CBR) files that were less than 4 MB.

Can anyone explain to me why that is? And what advice would you give me if this comes up again and I have to stuff too much music into too small an MP3 file--how can I get the best (or the least bad) sound quality into a low bit rate MP3?

--best regards



« Last Edit: March 30, 2012, 10:36:15 PM by DSatz »
music > microphones > a recorder of some sort

Offline page

  • Trade Count: (25)
  • Needs to get out more...
  • *****
  • Posts: 8388
  • Gender: Male
  • #TeamRetired
Re: Getting the best MP3 sound quality when file size is limited
« Reply #1 on: March 30, 2012, 10:52:13 PM »
A couple things that I've tried before (in Wav files which get fed to the encoder, not in the encoder directly):

- Drop it to 32khz
- Aggressively use LPF/HPF to minimize unnecessary information taking up bits in the encoding process (or throwing it a curve and generating audible errors). I don't know the content so maybe it uses stuff on the extremes, maybe not.
- Condense the stereo image just a touch if you have the original tracks, not much, but just a touch (unless it's critical).

This is like soapbox car racing; you're spending a lot of effort on low lo-fi returns, but people do it and there is a valid challenge.

Have you tried using the LAME MP3 encoder? That's been the shining star of mp3 encoding for a while now (still has a development crew working on optimizations IIRC). It's optimized for mid-high bitrate stuff, but since it's open source, I went hunting and found GXLame which has been modified to target low-bitrate stuff with as much retention to quality as possible. That looks worth trying.
"This is a common practice we have on the bus; debating facts that we could easily find through printed material. It's like, how far is it today? I think it's four hours, and someone else comes in at 11 hours, and well, then we'll... just... talk about it..." - Jeb Puryear

"Nostalgia ain't what it used to be." - Jim Williams

dorrcoq

  • Guest
  • Trade Count: (0)
Re: Getting the best MP3 sound quality when file size is limited
« Reply #2 on: March 30, 2012, 10:54:47 PM »
No idea why this is the case, but I'm wondering why, since everyone applying for the grant would have the same restrictions, your guy thought it better to have longer clips rather than higher quality.

Offline page

  • Trade Count: (25)
  • Needs to get out more...
  • *****
  • Posts: 8388
  • Gender: Male
  • #TeamRetired
Re: Getting the best MP3 sound quality when file size is limited
« Reply #3 on: March 30, 2012, 11:02:54 PM »
So some more digging, it evidently turned up over at Hydrogen Audio that it's a known issue trying to use VBR at ultra low rates and they recommend ABR instead.
"This is a common practice we have on the bus; debating facts that we could easily find through printed material. It's like, how far is it today? I think it's four hours, and someone else comes in at 11 hours, and well, then we'll... just... talk about it..." - Jeb Puryear

"Nostalgia ain't what it used to be." - Jim Williams

Offline rastasean

  • in paradise
  • Trade Count: (23)
  • Needs to get out more...
  • *****
  • Posts: 3800
  • Gender: Male
Re: Getting the best MP3 sound quality when file size is limited
« Reply #4 on: March 30, 2012, 11:21:20 PM »
Is the recording of music or spoken audio? if its spoken audio only, maybe you could do mono.
Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than it’s worth.

Offline F.O.Bean

  • Team Schoeps Tapir that
  • Trade Count: (126)
  • Needs to get out more...
  • *****
  • Posts: 40703
  • Gender: Male
  • Taperus Maximus
    • MediaFire Recordings
Re: Getting the best MP3 sound quality when file size is limited
« Reply #5 on: March 31, 2012, 03:01:11 AM »
Hmmm, weird!

I personally record ALL of my mp3s to 320[CBR] aqnd I can def live with that when im on the move
Schoeps MK 4V's & MK 41V's & 250|0 KCY's ->
Naiant +60v & +48v Low Noise PFA's ->
DarkTrain Right Angle Stubby XLR's ->
Sound Devices MixPre-6 & MixPre-3

https://archive.org/details/@diskobean
http://bt.etree.org/mytorrents.php
http://www.mediafire.com/folder/j9eu80jpuaubz/Recordings

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 706
  • Gender: Male
    • Gidluck Mastering
Re: Getting the best MP3 sound quality when file size is limited
« Reply #6 on: March 31, 2012, 10:42:53 AM »
DSatz, one thing I would try is to limit the bandwidth of the recording. Maybe cut anything below 300 and anything above 6K or 7K and see what difference that makes. Mp3's are based upon psychoacoustics and therefore filtering some of the frequencies might help a lot. Just a guess though, I haven't experimented with that myself.
 
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 706
  • Gender: Male
    • Gidluck Mastering
Re: Getting the best MP3 sound quality when file size is limited
« Reply #7 on: March 31, 2012, 10:43:51 AM »
As suggested, also try lame and you could use Sox for filtering.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

runonce

  • Guest
  • Trade Count: (0)
Re: Getting the best MP3 sound quality when file size is limited
« Reply #8 on: March 31, 2012, 07:05:48 PM »
So - the grant spec is 5MB...ok.

But the client wants to squeeze more time than is practical from the format. (this seems to be the problem)

You might have to explain to client that they are going to get much shorter clips due to the file size restriction...just to assure any semblance of quality.

Or - check with the folks running the grant just to clarify - there might be some techno-misunderstanding here...

Offline DSatz

  • Site Supporter
  • Trade Count: (35)
  • Needs to get out more...
  • *
  • Posts: 3412
  • Gender: Male
Re: Getting the best MP3 sound quality when file size is limited
« Reply #9 on: March 31, 2012, 11:29:28 PM »
runonce, that about sums it up. Originally the client wanted even longer sound clips, and I said that they should be 5 minutes or less. Getting them to scale down to 5-1/2 - 8-1/2 minutes was a victory in itself ...

Sincere thanks to everyone who replied. I'll try some careful low-pass filtering (say at 12 kHz) next time. I'll also try to learn something about the way MP3 encodes stereo information.

--best regards
music > microphones > a recorder of some sort

Offline DigiGal

  • AES Associate Member
  • Trade Count: (30)
  • Needs to get out more...
  • *****
  • Posts: 2583
  • Gender: Female
  • Stay healthy and safe!
    • DigiGal Internet Archive Recordings
Re: Getting the best MP3 sound quality when file size is limited
« Reply #10 on: April 01, 2012, 10:41:10 AM »
DSatz,

I've not used it myself but was recently reading about a fairly new and unique plug-in that looks ideal to help with this type of work.  They do offer a 15 day demo and it's expensive to purchase but looks worth the price of admission if you end up doing lots of this work especially if they are paying clients...

Sonnox Fraunhofer Pro-Codec - Multiple Codec Encode/Decode Plug-In

http://www.sonnoxplugins.com/pub/plugins/products/pro-codec.htm
Mics: AKG CK91/CK94/CK98/SE300 D-330BT | DPA 4060 4061 4266 | Neumann TLM 103 | Senn ME66/K6/K6RD MKE2 MD421 MD431 | Shure VP88 SM7B SM63L SM58 Anniversary Cables: Gotham GAC-4/1 Quad w/Neutrik EMC | Gotham GAC-2pair w/AKG MK90/3 connectors | DigiGal AES>S/PDIF cable Preamp: SD MixPre-D Recorders: SD MixPre 6 | Marantz PMD 661 Edit: 2011 27" 3.4GHz Quad i7 iMac High Sierra | 2020 13" MBA Quad i7 Catalina | Wave Editor | xACT | Transmission | FCP X 

Offline rhinowing

  • Trade Count: (0)
  • Needs to get out more...
  • *****
  • Posts: 4319
  • Gender: Male
    • SPLRA - Smashing Pumpkins Live Recording Association
Re: Getting the best MP3 sound quality when file size is limited
« Reply #11 on: April 01, 2012, 02:00:19 PM »
Hmmm, weird!

I personally record ALL of my mp3s to 320[CBR] aqnd I can def live with that when im on the move
v0 is where it's at, imo. better file size, indistinguishable quality from 320
Please contact me if you've ever taped the Smashing Pumpkins or a related group!

Offline F.O.Bean

  • Team Schoeps Tapir that
  • Trade Count: (126)
  • Needs to get out more...
  • *****
  • Posts: 40703
  • Gender: Male
  • Taperus Maximus
    • MediaFire Recordings
Re: Getting the best MP3 sound quality when file size is limited
« Reply #12 on: April 07, 2012, 03:40:02 AM »
Hmmm, weird!

I personally record ALL of my mp3s to 320[CBR] aqnd I can def live with that when im on the move
v0 is where it's at, imo. better file size, indistinguishable quality from 320

What is v0 ???
Schoeps MK 4V's & MK 41V's & 250|0 KCY's ->
Naiant +60v & +48v Low Noise PFA's ->
DarkTrain Right Angle Stubby XLR's ->
Sound Devices MixPre-6 & MixPre-3

https://archive.org/details/@diskobean
http://bt.etree.org/mytorrents.php
http://www.mediafire.com/folder/j9eu80jpuaubz/Recordings

Offline DSatz

  • Site Supporter
  • Trade Count: (35)
  • Needs to get out more...
  • *
  • Posts: 3412
  • Gender: Male
Re: Getting the best MP3 sound quality when file size is limited
« Reply #13 on: April 07, 2012, 01:13:18 PM »
V0 is apparently a kind of MP3 encoding as generated by the "LAME" MP3 encoder using a variable bit rate. In general, whenever you use variable bit-rate (VBR) MP3 compression and encoding, you don't specify a particular bit rate (since that varies with the complexity of the program material from frame to frame) but instead, you specify a desired quality level on a scale from 1 to 100, with 100 being the highest available quality. "v0" (a term that seems to be used only in connection with the "LAME" encoder) seems to mean "VBR encoding with a quality level setting of 100."

It's designed to give as much compression as the MP3 VBR approach allows without (ostensibly) injuring the sonic qualities of the recording. It is claimed to be audibly indistinguishable from the original, although of course that's an inherently unprovable assertion. It doesn't allow bit-accurate recreation of the original recording, however, so it is still a type of "lossy" encoding. And it requires much larger files than I was permitted to use in the situation I was describing, so it's kind of a side note to the thread.

--best regards
« Last Edit: April 08, 2012, 05:58:48 PM by DSatz »
music > microphones > a recorder of some sort

Offline scb

  • Trade Count: (11)
  • Needs to get out more...
  • *****
  • Posts: 8732
  • Gender: Male
Re: Getting the best MP3 sound quality when file size is limited
« Reply #14 on: April 07, 2012, 04:12:17 PM »
use AAC instead

 

RSS | Mobile
Page created in 0.054 seconds with 39 queries.
© 2002-2025 Taperssection.com
Powered by SMF