IPB

Welcome Guest ( Log In | Register )

> foobar2000 Tech Support Forum Rules

Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.


See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
errors adding Replay Gain metadata to flac files
geezerj
post Oct 6 2012, 17:38
Post #1





Group: Members
Posts: 4
Joined: 6-October 12
Member No.: 103673



I was recently trying to add replay gain metadata to about 12,000 flac files. The files were all ripped by me using CD-DA Extractor. About half the files completed the replay gain scan successfully, but 6500 tracks failed the scan with the message "could not instantiate R128 object". could someone point me to where this error message is documented, or interpret it? thanks.
Go to the top of the page
+Quote Post
geezerj
post Oct 6 2012, 18:48
Post #2





Group: Members
Posts: 4
Joined: 6-October 12
Member No.: 103673



QUOTE (geezerj @ Oct 6 2012, 09:38) *
I was recently trying to add replay gain metadata to about 12,000 flac files. The files were all ripped by me using CD-DA Extractor. About half the files completed the replay gain scan successfully, but 6500 tracks failed the scan with the message "could not instantiate R128 object". could someone point me to where this error message is documented, or interpret it? thanks.


additional key information I forgot to include: the first 5498 tracks all succeeded in the scan: the remaining 6550 all failed. This would suggest the program ran out of resources, hit a buffer limit, or something similar....
Go to the top of the page
+Quote Post
Peter
post Oct 7 2012, 17:19
Post #3


foobar2000 developer


Group: Admin
Posts: 3293
Joined: 30-September 01
Member No.: 84



Did you by any chance scan these files using the "scan selection as a single album" command? As I'm sure you know it's irrational to do such thing but it would explain running out of resources (accumulating ReplayGain calculation state to calculate album gain over thousands of files).

Please also post full list of your components, maybe there's some other reason why your foobar2000 is leaking resources while scanning files.

Late edit: ReplayGain scanning will also fail with out-of-resources errors if you're trying to scan your large library as multiple albums but the files are untagged and not recognized as separate albums, hence scanned as one huge album. Except then the results are wrong anyway, so you should not be doing that.

This post has been edited by Peter: Oct 8 2012, 09:39
Go to the top of the page
+Quote Post
geezerj
post Oct 12 2012, 04:59
Post #4





Group: Members
Posts: 4
Joined: 6-October 12
Member No.: 103673



QUOTE (Peter @ Oct 7 2012, 09:19) *
Did you by any chance scan these files using the "scan selection as a single album" command? As I'm sure you know it's irrational to do such thing but it would explain running out of resources (accumulating ReplayGain calculation state to calculate album gain over thousands of files).

Please also post full list of your components, maybe there's some other reason why your foobar2000 is leaking resources while scanning files.

Late edit: ReplayGain scanning will also fail with out-of-resources errors if you're trying to scan your large library as multiple albums but the files are untagged and not recognized as separate albums, hence scanned as one huge album. Except then the results are wrong anyway, so you should not be doing that.


****************
chalk this up to a user who didn't RTFM: you were being too polite... Yes, I was scanning as a single album - I hadn't understood the album vs. track options clearly. I removed the metadata and rescanned on a per-track basis, and it completed fine. (BTW, sonos tech support has an article about using foobar2000 for adjusting flac replay gain metadata, and their instructions say to scan as a single album....). Thanks.
Go to the top of the page
+Quote Post
Peter
post Oct 12 2012, 07:27
Post #5


foobar2000 developer


Group: Admin
Posts: 3293
Joined: 30-September 01
Member No.: 84



I think I'll add a special notice when you try to scan a suspiciously large group of tracks as a single album, this is way too easy to mistrigger by wrong click or alike.

PS I've seen this bug reported before so you're not the first person to do this.
Go to the top of the page
+Quote Post
geezerj
post Oct 15 2012, 19:19
Post #6





Group: Members
Posts: 4
Joined: 6-October 12
Member No.: 103673



QUOTE (Peter @ Oct 11 2012, 23:27) *
I think I'll add a special notice when you try to scan a suspiciously large group of tracks as a single album, this is way too easy to mistrigger by wrong click or alike.

PS I've seen this bug reported before so you're not the first person to do this.

*******************************
one final note. while my creds may be limited after attempting to scan as a single album, I think the impact of running short on resources may be somewhat serious. Here are the steps I took:
1. load 12,000 .flac files into foobar and attempt to scan as a single album
2. resources run out halfway through. I removed the replay gain tag information, again using foobar (did all 12,000 as a precaution)
3. load files back in, and scan on a per-track basis. foobar reports success
4. write updated tags with replay gain information. foobar reports success

after this sequence, I found **none of my flac files were playable**. I tried using foobar, xmms, sonos - all reported ill-formed flac files. mp3tag could not read the tags.
I keep good backups so I used rsync to restore all the flacs, no harm done. In retrospect, I should have done some test cases before operating on a large repository (duh).

after the restore, I repeated the per-track scan of the flac files with foobar, and updated the tags with the replay gain information. (needless to say, this time I proceeded incrementally, with mucho checking of tag contents and playability...) All the files are fine, and the tags read properly, including the replay gain info in the extended tags. Thus I conclude the files were left in a corrupted state after step 2. above. I apologize that I did not keep one of the un-playable flacs for analysis: at the time, I was focused on recovering my music....

This post has been edited by geezerj: Oct 15 2012, 19:21
Go to the top of the page
+Quote Post
Peter
post Oct 18 2012, 12:16
Post #7


foobar2000 developer


Group: Admin
Posts: 3293
Joined: 30-September 01
Member No.: 84



Thanks a lot for reporting the file corruption issue, this is indeed serious. I've been able to recreate the condition on my own machine.
While picking the wrong RG scanner option can be considered a PEBKAC factor, the final outcome of this is completely unacceptable; this issue is being fixed on every possible level for the next fb2k update.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2014 - 17:56