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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Clipping using Rockbox on Sansa e200
« previous next »
  • Print
Pages: [1]

Author Topic: Clipping using Rockbox on Sansa e200  (Read 3440 times)

Offline Gregory

  • Member
  • *
  • Posts: 13
Clipping using Rockbox on Sansa e200
« on: January 24, 2008, 10:44:32 PM »
Originally, all my music was ripped as wma, and for some reason, I never noticed any clipping. 

Then I switched to Ogg Vorbis because it was just flat out better; Gapless playback and smaller filesize were my main reasons for switching.  To create the ogg files, I ripped my music as wav files, and then converted them using oggdropXPd. Worked great. 
But then I started noticing the clipping.

  The clipping I am hearing is not severe, but noticable, and it only occurs during the louder parts of my loudest cds.  I thought it was the ogg vorbis, but a quick test rip to wma vbr at the highest setting produced clipping as well.  I tried the wav files directly from the cd too.  It was still clipping.

I have compared rockbox to the cd in a portable cd player, my computer, and get this, even the original Sansa e200 firmware.  Rockbox was the only variable that was causing the clipping.  A reset of all settings didn't help either.  I uninstalled the bootloader, formatted the e200, reinstalled the bootloader, and started to install the latest e200 Rockbox firmware, but at this time, the e200 zip file is broken (of course).

I have done my best to eliminate variables, but it seems that rockbox is to blame.  Trust me, I don't want to believe it either.

Oh, and here is a link to the the track I was trying during all this: (EDIT: Look at post #11)
(It's hosted on my computer so I can't guarantee that it will always be up and running.)
« Last Edit: January 28, 2008, 07:42:56 PM by Gregory »
Logged

Offline cpchan

  • Member
  • *
  • Posts: 198
Re: Clipping using Rockbox on Sansa e200
« Reply #1 on: January 25, 2008, 02:09:21 AM »
I am surprised that you didn't hear any clipping on your other equipment. After listening to it and taking a look at the waveform (attached is a screenshot with the "Find Clipping" and "Show Clipping" options in Audacity), I find a large amount of clippings in the file. The original source is a victim of the  "Loudness War"(http://en.wikipedia.org/wiki/Loudness_war).  I suggest you:

1. Replaygain your files with Vorbisgain: http://www.sjeng.org/vorbisgain.html

2. Turn on "Replaygain" and "Prevent Clipping" in Rockbox ("Settings"-> "General Settings"-> "Playback"-> "Replaygain".

To improve sound quality you might with to switch your encoder to AoTuV: http://wiki.hydrogenaudio.org/index.php?title=AoTuV. A quality level of -q 4 should do.

Charles

* screenshoot.png (22.14 kB, 860x377 - viewed 175 times.)
« Last Edit: January 25, 2008, 11:22:46 AM by cpchan »
Logged

Offline Gregory

  • Member
  • *
  • Posts: 13
Re: Clipping using Rockbox on Sansa e200
« Reply #2 on: January 25, 2008, 05:31:53 PM »
That is not the problem.

Here is a line-in recording of the same file being played in the sansa firmware and then in the rockbox firmware: http://74.167.183.209/docs/sansa_vs_rock.wav
Listen carefully after the begining of the chorus;  that's the worst part.

It was recorded with a Creative Audigy sound card using asio drivers and a program called reaper.  Sound qaulity should not be an issue here.  Besides, the clipping is quite distinct anyway.

Also, here is the wma (vbr highest bitrate) of the song so someone can compare the two firmwares for themselves. http://74.167.183.209/docs/04-Fading%20Away.wma
By the way, I hear something that sounds like clipping at the beggining of the song in both firmwares, so ignore that.

My sister has the same player and Rockbox as well.  I'll see how that goes.
« Last Edit: January 25, 2008, 05:56:51 PM by Gregory »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Clipping using Rockbox on Sansa e200
« Reply #3 on: January 25, 2008, 08:12:06 PM »
I decoded it in rockbox and using the decoder in foobar2000:

max(pc-rb)
ans =
         3.0517578125e-005         3.0517578125e-005

On my Sansa, the output is identical to 15 bits for both channels.

If yours is not, then you've probably applied some additional gain in rockbox (via EQ, etc).
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Clipping using Rockbox on Sansa e200
« Reply #4 on: January 25, 2008, 08:16:12 PM »
That just means the decoder isn't the problem. We know the Codec in the e200 has been a little problematic to configure properly, and may be to blame still.
Logged

Offline Gregory

  • Member
  • *
  • Posts: 13
Re: Clipping using Rockbox on Sansa e200
« Reply #5 on: January 27, 2008, 12:00:44 PM »
Well, my sister's Sansa e200 does the same thing.  :(

saratoga:  I reinstalled rockbox completely to eliminate that variable.

Llorean: What do you mean by the codec?  Isn't that short for coder/decoder?  Or do you mean the DAC?  I don't exactly lnow the innards of a media player that well.
« Last Edit: January 27, 2008, 12:02:55 PM by Gregory »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Clipping using Rockbox on Sansa e200
« Reply #6 on: January 27, 2008, 12:41:36 PM »
Quote from: Gregory on January 27, 2008, 12:00:44 PM
Well, my sister's Sansa e200 does the same thing.  :(

saratoga:  I reinstalled rockbox completely to eliminate that variable.

Did you delete/rename the .rockbox folder first?
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Clipping using Rockbox on Sansa e200
« Reply #7 on: January 27, 2008, 01:05:25 PM »
Gregory, could you post the contents of your config.cfg file?
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline Gregory

  • Member
  • *
  • Posts: 13
Re: Clipping using Rockbox on Sansa e200
« Reply #8 on: January 28, 2008, 08:29:35 AM »
Saratoga: Would a format of the drive count?

Febs: Why would that matter if I re-installed rockbox and tried listening to the song right after?  But I'll upload it when I get home.
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Clipping using Rockbox on Sansa e200
« Reply #9 on: January 28, 2008, 09:20:56 AM »
Quote from: Gregory on January 28, 2008, 08:29:35 AM
Febs: Why would that matter if I re-installed rockbox and tried listening to the song right after?  But I'll upload it when I get home.

No.  Simply re-installing Rockbox won't change stored settings, although formatting your drive should have reset the settings to default.  Nevertheless, it's worth taking a look at your config.cfg file if only to eliminate potential issues.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline cpchan

  • Member
  • *
  • Posts: 198
Re: Clipping using Rockbox on Sansa e200
« Reply #10 on: January 28, 2008, 09:35:14 AM »
Quote from: Gregory on January 25, 2008, 05:31:53 PM
Also, here is the wma (vbr highest bitrate) of the song so someone can compare the two firmwares for themselves.
By the way, I hear something that sounds like clipping at the beggining of the song in both firmwares, so ignore that.

I finally got a chance to listen to your wma file. Almost the whole file sounded clipped to me, so I decoded it to wav and looked at the waveform in Audacity. Like I suspect, this is the case (please refer to the screenshot, anything that is red is clipped). Are you using some sort of EQ setting that makes it sound worst to you in Rockbox? Also, what is your volume setting?

Charles

* screenshoot.png (15.26 kB, 852x297 - viewed 161 times.)
« Last Edit: January 28, 2008, 08:10:01 PM by cpchan »
Logged

Offline Gregory

  • Member
  • *
  • Posts: 13
Re: Clipping using Rockbox on Sansa e200
« Reply #11 on: January 28, 2008, 07:39:30 PM »
I guess its only natural to not trust me, but the song clips in rockbox and nowhere else.  Given, the song is very loud and does probably clip some itself.  Maybe I haven't described what I'm hearing well enough.  It's like a popping or clicking, but what I am hearing only occurs in rockbox.  It's not throught the song either, only in certain places, which are generally the loudest parts.  One thing I notice too is that it mostly happens in the left channel, but it does happen in both.  I'm sure a different song might be the other way around, because of small recording differences in the studio.

Please listen to the commparison to see if you can hear it (dedicated host this time, lol).  http://files.filefront.com/sansa+vs+rockwav/;9529253;/fileinfo.html  What I hear in the comparison is exactly the same as what I hear when I'm listening with headphones.

The volume is ususally somewhere around -30db. The volume doesn't make a difference anyway.

The confg file is attached.

And just as a note, it occurs on other songs and albums as well, but not all of them.
* config01.cfg (3.46 kB - downloaded 108 times.)
« Last Edit: January 28, 2008, 07:58:12 PM by Gregory »
Logged

Offline Gregory

  • Member
  • *
  • Posts: 13
Re: Clipping using Rockbox on Sansa e200
« Reply #12 on: February 04, 2008, 10:06:28 PM »
For now, I've found a pretty good solution and I'm disappointed that I didn't think of it before. 
I just enabled the eq, and set the pre-cut to about -2db.  1db may have been enough, but it looked a little close while watching the oscilloscope demo.  Cleared up the problem perfectly.

This solution should point toward a more permanent one, but I wouldn't know anything.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Clipping using Rockbox on Sansa e200
« Reply #13 on: February 05, 2008, 02:40:31 AM »
Are you sure that the "nowhere else" doesn't just mean that other software intentionally goes out of its way to avoid clipping, while Rockbox just plays the audio as-is unless the user explicitly gives it instructions?
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Clipping using Rockbox on Sansa e200
 

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

Page created in 0.095 seconds with 14 queries.