Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  FS#10199 - Dynamic Range Compression
« previous next »
  • Print
Pages: [1] 2 3 4

Author Topic: FS#10199 - Dynamic Range Compression  (Read 17495 times)

Offline dizzie

  • Member
  • *
  • Posts: 5
FS#10199 - Dynamic Range Compression
« on: August 11, 2008, 10:52:42 AM »
Anyone willing to take a look at implementing this? It's been out there for a couple years now and sounds like a killer idea!!! Especially for those of us who use Rockbox in the car/ on the highway.

Thanks!  :)
« Last Edit: July 10, 2009, 10:44:17 PM by Chronon »
Logged

Offline delt

  • Member
  • *
  • Posts: 39
Re: FS#5455 - Dyanamic Range Compression
« Reply #1 on: August 12, 2008, 11:24:31 PM »
I second that. A compressor would be quite useful for listening to classical music or movie soundtracks.

But then again, i mostly use earphones, and they have a natural "compressor" property - really quiet passages that you barely hear through speakers, you hear them better through headphones, and vice versa.
Logged

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: FS#5455 - Dyanamic Range Compression
« Reply #2 on: August 13, 2008, 07:29:15 AM »
Quote from: delt on August 12, 2008, 11:24:31 PM
I second that. A compressor would be quite useful for listening to classical music or movie soundtracks.

But then again, i mostly use earphones, and they have a natural "compressor" property - really quiet passages that you barely hear through speakers, you hear them better through headphones, and vice versa.

Not to be pedantic, but headphones do not compress the dynamic range, they lower the ambient noise floor. 
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline goffa

  • Member
  • *
  • Posts: 50
Re: FS#5455 - Dyanamic Range Compression
« Reply #3 on: August 15, 2008, 01:02:03 PM »
I'd love to see this. Some albums blow you out of the vehicle after a quiet one.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: FS#5455 - Dyanamic Range Compression
« Reply #4 on: August 15, 2008, 01:46:27 PM »
Quote from: goffa on August 15, 2008, 01:02:03 PM
I'd love to see this. Some albums blow you out of the vehicle after a quiet one.

Compression won't help with that, but replaygain will, and that is already supported.   Compression just helps you with tracks that have loud and quiet portions in the same file.
Logged

Offline goffa

  • Member
  • *
  • Posts: 50
Re: FS#5455 - Dyanamic Range Compression
« Reply #5 on: August 15, 2008, 03:20:42 PM »
Well if that's the case replaygain needs to be repaired. There are still loud and quiet albums with replaygain enabled.
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: FS#5455 - Dyanamic Range Compression
« Reply #6 on: August 15, 2008, 03:30:26 PM »
Simply enabling it in Rockbox isn't enough to have it take effect.  There are references in the sound files metadata tags that need to be set. 

http://en.wikipedia.org/wiki/Replaygain
Logged

Offline goffa

  • Member
  • *
  • Posts: 50
Re: FS#5455 - Dyanamic Range Compression
« Reply #7 on: August 15, 2008, 09:33:24 PM »
ah.. learn something new every day :)

I was thinking that was something rockbox did on the fly once you enabled it.

replaygaining all my files as we speak... hopefully it works :)
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: FS#5455 - Dyanamic Range Compression
« Reply #8 on: August 15, 2008, 09:36:17 PM »
Out of curiosity, did you get this impression from any of our documentation or were you simply commenting on the feature without looking it up in the docs first?

If something in our manual suggests that it's done on the fly, please let me know so I can see about getting it fixed.
Logged

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: FS#5455 - Dyanamic Range Compression
« Reply #9 on: August 16, 2008, 04:15:28 AM »
Quote
For replaygain to work, the songs must have been processed by a program that adds replaygain information to the ID3 tags (or Vorbis tags).

From the manual no change needed I think
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: FS#5455 - Dyanamic Range Compression
« Reply #10 on: August 16, 2008, 01:50:28 PM »
So, we already have ReplayGain for normalizing perceived loudness between tracks (or albums).  But as has been pointed out, there are other situations where compressing the dynamic range within a file can be desirable -- for example in listening to tracks with large dynamic range in noisy environments. 
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline ykevinw

  • Member
  • *
  • Posts: 4
Re: FS#5455 - Dyanamic Range Compression
« Reply #11 on: September 11, 2008, 12:20:21 PM »
For anyone wishing to implement this here is some info on an algorithm that works quite well:
http://vlevel.sourceforge.net/about/

There is a foobar 2000 plugin made from it:
http://stephan.kochen.nl/proj/foo_dsp_vlevel/

Hydrogenaudio thread:
http://www.hydrogenaudio.org/forums/index.php?showtopic=22057


I have used this as a dsp in foobar2k when making mp3s from lossless to play in my car or to play during dinner. It is more of a sophisticated micro volume adjuster rather than a true dynamic compressor. It doesn't seem to mung the sound at all and is very effective for classical music in high noise environments.

-kev
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: FS#5455 - Dyanamic Range Compression
« Reply #12 on: September 11, 2008, 12:43:46 PM »
Quote from: ykevinw on September 11, 2008, 12:20:21 PM
For anyone wishing to implement this here is some info on an algorithm that works quite well:
http://vlevel.sourceforge.net/about/

"It's different from other dynamic compressors because it looks ahead. "

Depending on how far it needs to look ahead this could be a problem

edit: forget that. Only a few seconds seem to be enough
« Last Edit: September 11, 2008, 12:45:41 PM by gevaerts »
Logged

Offline ykevinw

  • Member
  • *
  • Posts: 4
Re: FS#5455 - Dyanamic Range Compression
« Reply #13 on: September 11, 2008, 01:34:32 PM »
It does look ahead, by default 2 sec. The algorithm works well for classical music which tends to ramp between loud and soft passages. It really does work just like an automatic intelligent "hand on the volume".

One odd effect is when a sudden loud sample comes up - you can notice the level ramp down just before. You can adjust this time window. This is not a big deal as most pieces tend to get quiet before a big trumpet blare to heighten the effect anyway.

Another effect is with the silence before and after a piece. The filter will ramp up to the noise level (tape hiss) if you let it. You can adjust the max gain to take care of this nicely. A gui would have to be made for these settings.

Check it out in foobar2k with a few pieces, I've been very happy with it and it would be great to be able to do this within Rockbox.
Logged

Offline mborus

  • Member
  • *
  • Posts: 127
Re: FS#5455 - Dyanamic Range Compression
« Reply #14 on: September 12, 2008, 03:46:16 PM »
Quote
Anyone willing to take a look at implementing this? It's been out there for a couple years now and sounds like a killer idea!!! Especially for those of us who use Rockbox in the car/ on the highway.

On the Archos models there's the "Auto Volume" feature. If you set the AV Decay Time to 20ms, you get a very poor, but working compressor (which is great if you want to listen to speach in noisy environments like airplanes)

It sounds pretty awful with music, but is acceptable if it's the only way to get the volume high enough.

Regarding the look-ahead compressor: I prefer a one that lowers the volume at the last moment possible, because that's how normal sounding compressors work. For classical music, this might work fine. For dance and pop music, it sounds very strange to me.

BTW, for Windows Winamp-Users the best free compressor I know is Stereotool. There's also a DOS command line version you can use to batch compress your music before putting it onto your Rockbox player...

Logged

  • Print
Pages: [1] 2 3 4
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  FS#10199 - Dynamic Range Compression
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.136 seconds with 15 queries.