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
| | |-+  Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« previous next »
  • Print
Pages: [1]

Author Topic: Some files with ReplayGain added to MP3 data by Foobar2000 won't play  (Read 3230 times)

mypod

  • Guest
Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« on: November 30, 2010, 11:23:05 AM »
.
« Last Edit: October 23, 2016, 02:19:26 AM by mypod »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #1 on: November 30, 2010, 12:04:39 PM »
If you have replaygain data in the tags and the MP3 data, you do realize that means a player capable of using the tags will then be playing the files incorrectly because the gain is adjusted twice (once by the player, and once in the MP3 data) right?

As for what's happening, if it's only some modified files that don't work and not all of them, odds are good you'd need to provide a sample of a non-working file for someone to look at and see what's going on. You'd do this by filing a proper bug report. Files with gain added to the mp3 data should be valid MP3s, but you may want to see if a more verbose MP3 decoder of some sort (I couldn't recommend one) identifies them as having problems. It may be that some players are more tolerant of problems where Rockbox just skips problematical files, or it may be that the files are fine but Rockbox doesn't think so because of a bug in it. More info is basically needed.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #2 on: November 30, 2010, 12:59:54 PM »
I can duplicate the problem.  Looking at libmad, it reports that the header is broken.  ffmpeg decodes the file, but with some weird debug output.  Most likely theres something wrong with the file originally, and foobar's attempt to hack up the bitstream with replaygain cannot deal with this properly.  But you'd have to find an mp3 expert to be sure. 
Logged

Offline BigPapi

  • Member
  • *
  • Posts: 58
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #3 on: November 30, 2010, 01:01:21 PM »
I've always just done the "Scan per-file Track Gain" option in Foobar2000 and click "Update File Tags" and it has worked fine.....so I don't understand why you would even want to apply that ReplayGain info to the MP3 data itself. ???
Logged

mypod

  • Guest
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #4 on: November 30, 2010, 02:34:21 PM »
.
« Last Edit: October 23, 2016, 02:19:37 AM by mypod »
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #5 on: November 30, 2010, 04:19:33 PM »
Looks like a bug in foobar2000. One checker I found complained about CRC errors and not enough frames found. libmad rejects files with CRC errors (unless told otherwise, which we don't do in Rockbox). That checker thought the original file was fine.

No problem with another random file I tested, which I'd guess doesn't use CRC...

[Edit] Problem in foobar2000 reported.
« Last Edit: November 30, 2010, 04:59:57 PM by Lear »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #6 on: November 30, 2010, 05:24:15 PM »
Quote from: mypod on November 30, 2010, 02:34:21 PM
You'd want to update the MP3 data in order to get the proper volume out of a media player that can't read the tags.

But as I said, if you have that and the tags, you'll get improper volume out of the ones that do read the tags. You really should only ever use one or the other, not both. As noted above though, it's a bug in Foobar2000, not Rockbox, that is causing the files to actually be skipped - they're bad.
Logged

mypod

  • Guest
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #7 on: December 01, 2010, 08:59:59 AM »
.
« Last Edit: October 23, 2016, 02:19:48 AM by mypod »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #8 on: December 01, 2010, 09:33:52 AM »
Quote from: mypod on December 01, 2010, 08:59:59 AM
For anyone else who encounters this problem, you can fix it for now by turning off the CRC protection bit in the afflicted MP3 file or by removing its CRC data completely. WinMP3Packer (download link at the bottom) removes the CRC field automatically, regardless of any options you select. (In other words, there's no need to select one of the "Strip non-MP3 data" options unless you want to.)

Couldn't this conceivably prove problematic if files have real errors? Why not just use a non-broken scanner instead, or not use the broken feature?


Quote
Quote from: Llorean on November 30, 2010, 05:24:15 PM
You really should only ever use one or the other, not both.
You have contributed literally nothing to this conversation at any point. From the perspective of volume it is fine to use both. When Foobar2000 applies global gain directly to the MP3 data it simultaneously adjusts the ReplayGain tag in accordance with the new overall loudness of the file.

Please don't misuse the word "literally." I may have literally contributed nothing you found helpful, but there is no question as to whether I posted. It's right there. Something was contributed. I asked initially for information people would've needed had they not been able to reproduce the bug, something that is often a necessity. In this case it wasn't, but that doesn't mean it wasn't a contribution.

As to Foobar2000 adjusting the gain tags, how does that work exactly? If the MP3 file is already adjusted to the proper gain, shouldn't the tags always contain +0db? There's nothing to put in them if it no longer needs further adjustment... in which case there's no point in having them in the first place. It's simple addition.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Some files with ReplayGain added to MP3 data by Foobar2000 won't play
« Reply #9 on: December 01, 2010, 09:41:23 AM »
Quote from: Llorean on December 01, 2010, 09:33:52 AM
As to Foobar2000 adjusting the gain tags, how does that work exactly? If the MP3 file is already adjusted to the proper gain, shouldn't the tags always contain +0db? There's nothing to put in them if it no longer needs further adjustment... in which case there's no point in having them in the first place. It's simple addition.

Altering the gain of the mp3 file can only be done in course steps, so the resulting file doesn't get set to exactly the right volume.  Foobar updates the replaygain tag to have the new adjustment needed to get the desired volume (typically on the order of 1dB or so). 

mypod:  If you don't want people to give you advice, then you should solve your own problems rather then ask for help . . .
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Some files with ReplayGain added to MP3 data by Foobar2000 won't play
 

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

Page created in 0.085 seconds with 15 queries.