Skip to main content

Topic: Anyone who wants to write foo_accuraterip_db? (Read 34715 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Fandango
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Hi,

why is there no plugin that checks any selected tracks as an album using AR checksums for comparing the results with the AR database?

That would be handy, since foobar2000 would do all the conversion.

Anyone who wants to write such a plugin? Would be awesome!

EDIT: Thanks for moving the thread and giving it a better title. 

Some things to consider...
  • There shall be no any limitation regarding the source of the tracks used. So lossy files get decoded to PCM, just like losslessly encoded files. It doesn't hurt if the plugin is held dumb enough to not be bothered whether the source was lossy or lossless. In fact this might even be useful to verify that a false entry based on a non-CD-source has made it into the AR database, in case someone has a hunch that a specific "release" has made it into the database.

    Of course, checks on the decoded output must apply, namely that it is 16bit, 44.1kHz PCM. And maybe it's also wise to not allow internet radio streams as input for this plugin, in case it's possible to check this. Or else the user who accidentally chose such a playlist entry might wait forever for the plugin to finish.

  • Don't object: "but why any tracks? you mean you want to select some lossy files and see if they make up an album that is present in the AR database?" -- No, I don't want to do that, maybe once or twice just for the fun of it. But although it doesn't make sense to check random tracks as one album, there's also no reason why this shall not be possible.

    To make myself clearer: I think the grouping of tracks for an AR check should be implemented more or less exactly like the grouping for replaygain was done... i.e. "treat selected tracks as one album", "treat selected tracks as album(s) (using tags)".

  • There should be a log output, that can be copied and pasted or even automatically written to a file using tagz script for creating that file's name. Not just a window that says "Album was verified as being accurately ripped."/"Album couldn't be verified as being accurately ripped."

    The log output should resemble the output of the AR.dll for the time being... and maybe later, even better it could be written using user-defineable templates.
Any more ideas? Objections?
  • Last Edit: 31 July, 2007, 11:04:32 PM by Fandango

  • kanak
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #1
I'd surely use it. Now if only someone would develop it

  • jdcarr
  • [*]
Anyone who wants to write foo_accuraterip_db?
Reply #2
Hi,

why is there no plugin that checks any selected tracks as an album using AR checksums for comparing the results with the AR database?

That would be handy, since foobar2000 would do all the conversion.

Anyone who wants to write such a plugin? Would be awesome!

EDIT: Thanks for moving the thread and giving it a better title. 

Some things to consider...
  • There shall be no any limitation regarding the source of the tracks used. So lossy files get decoded to PCM, just like losslessly encoded files. It doesn't hurt if the plugin is held dumb enough to not be bothered whether the source was lossy or lossless. In fact this might even be useful to verify that a false entry based on a non-CD-source has made it into the AR database, in case someone has a hunch that a specific "release" has made it into the database.

    Of course, checks on the decoded output must apply, namely that it is 16bit, 44.1kHz PCM. And maybe it's also wise to not allow internet radio streams as input for this plugin, in case it's possible to check this. Or else the user who accidentally chose such a playlist entry might wait forever for the plugin to finish.

  • Don't object: "but why any tracks? you mean you want to select some lossy files and see if they make up an album that is present in the AR database?" -- No, I don't want to do that, maybe once or twice just for the fun of it. But although it doesn't make sense to check random tracks as one album, there's also no reason why this shall not be possible.

    To make myself clearer: I think the grouping of tracks for an AR check should be implemented more or less exactly like the grouping for replaygain was done... i.e. "treat selected tracks as one album", "treat selected tracks as album(s) (using tags)".

  • There should be a log output, that can be copied and pasted or even automatically written to a file using tagz script for creating that file's name. Not just a window that says "Album was verified as being accurately ripped."/"Album couldn't be verified as being accurately ripped."

    The log output should resemble the output of the AR.dll for the time being... and maybe later, even better it could be written using user-defineable templates.
Any more ideas? Objections?


I'd sure like it too...but there's one inherent problem with it...let me know if I'm wrong, but:

Every single drive when it rips offsets the rip differently...just barely.  Therefore, in order to accurately compare a rip against the accuraterip database it requires knowing the exact offset of the drive that ripped it, which makes it a little difficult, since every drive has a different offset.

That's why there's plugins for ripping programs (EAC and dbPowerAmp) and nothing else.  Do I make sense?

Anyone who wants to write foo_accuraterip_db?
Reply #3
Thats why you are asked in some programs to make example rips to get the right settings for your drive

  • odyssey
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #4
It would be great for such plugin, but I don't see any use for it in regard to lossy files - AT ALL! In fact I don't think that this plugin should be able to submit any data.

If such plugin is developed, it should check if %DISCID% is set on the files, and check them upon this particular disc. If it's not found, you would only be able to verify AR data if you select an entire album and AR could calculate the DISCID from this.

A little bonus feature I hope to be possible is the check for offset correction. I'm not sure if this is possible with *every* disc, but according to AR it should be, since any discs could be used as configuration disc.
Can't wait for a HD-AAC encoder :P

  • NormanPCN
  • [*]
Anyone who wants to write foo_accuraterip_db?
Reply #5
I'd sure like it too...but there's one inherent problem with it...let me know if I'm wrong, but:

Every single drive when it rips offsets the rip differently...just barely.  Therefore, in order to accurately compare a rip against the accuraterip database it requires knowing the exact offset of the drive that ripped it, which makes it a little difficult, since every drive has a different offset.


Accuraterip requires you calibrate with a known key disc which has a known offset and therefore you can properly determine the drive offset. I use accuraterip when doing my 277 CDs with dbPowerAmp. Very nice feature since if the first pass of my rip agreed with the database then the ripper did not bother with secure mode. Makes for very fast rips excpt for scratched tracks or CDs not in the DB. A CD can be in the database but you might have a CD with a different production run(pressing) so in that case you still go secure.

I am out for looking at doing something like this. I would not touch C++ with a ten foot pole. Modula-2 is my game.
  • Last Edit: 24 August, 2007, 05:40:36 PM by NormanPCN

  • Jose Hidalgo
  • [*][*][*][*]
  • Banned
Anyone who wants to write foo_accuraterip_db?
Reply #6
Hi everyone,

Please count me in : such component would be a great idea if properly developed.

A fb2k component [...] could access the track's PCM audio provided by the converter directly, no need to worry about codecs or cue sheets or tags for the writer of such a component. Ok, maybe it would be a good idea to store the AR CRC in the tag, so this time consuming operation of calculating the CRC is only necessary once...  I don't know if writing the confidence to the tag is a good idea, since this number will change (increase) over time and therefor becomes out-of-date.

I think the component should be able to calculate the CRC of each file and store them in the tag (the file CRC, not the AR CRC of course ! what would be the use in storing the AR CRC if it's not the same as the file CRC ?  ).

I also think that writing the confidence to the tag *would* be a good idea, since it can help distinguish very reliable rips (with high confidence scores) from less reliable ones (with 1-2 confidence scores for example). So one could choose to sort the files by the "AR confidence" field, select the ones with the lower scores, then re-check them over time to see if their confidence improves or not. If it doesn't, then either the CD is a very rare one, or then it could be a good idea to re-rip it and see what happens.

If such plugin is developed, it should check if %DISCID% is set on the files, and check them upon this particular disc. If it's not found, you would only be able to verify AR data if you select an entire album and AR could calculate the DISCID from this.

I agree with you (but lossless collections very often are made of entire albums, so this shouldn't be a big problem). And once we have calculated the DISCID, why not store it too in a %discid% tag field for all the album tracks ? It can't be a bad thing, can it ?

A little bonus feature I hope to be possible is the check for offset correction. I'm not sure if this is possible with *every* disc, but according to AR it should be, since any discs could be used as configuration disc.

Yes, why not. But the main thing for me would be to NOT use silence samples for CRC calculations. That should solve a part of the offset problems IMHO, since most tracks begin and end with a part of silence. Am I wrong ?
  • Last Edit: 11 January, 2008, 01:21:57 PM by Jose Hidalgo

  • Fandango
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #7
A wrong offset correction is always an issue when doing an AR check on a rip in retrospect.

The AR-approved-and-enabled rippers make use of AR's calibration, whereas this was not the case with the rips you want to check retrospectively. Although you may have been so wise to manually set the read offset correction in EAC anyway.

But in those cases where you didn't use an AR-enabled ripper or a manually configured EAC, the most important piece of information is taken from the EAC log here. It gives us two important clues about the correctness of the offset correction: the offset correction applied on the audio itself and the drive's model. For other rippers than EAC, knowing the drive's model will do, since they usually rip without offset correction anyway, and the rare case that can happen with a misconfigured EAC where you have to "correct the incorrect read offset correction" should never happen here.

In combination with the drive database that can be found at the AccurateRip homepage, a wrong offset correction shouldn't be a problem anymore in theory. The only challenge would be to apply the right correction to your rip. You can do this manually with a tool like CUE Tools, but when you want to batch process ten thousands of tracks with fb2k, then this simply doesn't work.

So some kind of EAC log processing for the lossless rips with wrong offsets would be a nice extra feature. I say extra feature, because it's really your fault if you hadn't set the offset correction in EAC. Of course, this does not apply when you didn't use EAC...

So a simpler solution which is maybe sufficient for most cases is to be able to set an offset correction in the preferences page of this component. Assuming that most of your rips were made with the same drive, this should do.

@Jose Hidalgo:
(the file CRC, not the AR CRC of course ! what would be the use in storing the AR CRC if it's not the same as the file CRC ?  )

I know what you mean, but let's stick to the convention that when talking about "AR CRC" it does not explicitely mean the CRC stored in the database. Because AccurateRips way of creating a CRC from the track is different from a "normal" CRC of the tracks' audio. If you would CRC the raw PCM of a track (like EAC does it) and then do a CRC check AR-style both results will differ always. Therefor I am using the term "AR CRC" no matter if it's the AR CRC of the local file or the AR CRC in the database.


A little bonus feature I hope to be possible is the check for offset correction. I'm not sure if this is possible with *every* disc, but according to AR it should be, since any discs could be used as configuration disc.

Yes, why not. But the main thing for me would be to NOT use silence samples for CRC calculations. That should solve a part of the offset problems IMHO, since most tracks begin and end with a part of silence. Am I wrong ?
AccurateRip's way of calculating the CRC is quite different from the way EAC does it, throwing out silent samples is not an option, and would give negative AR results always. And honestly I don't see how cutting of silent samples has anything to do with offset correction. You want all your tracks to be correct, not just those with silence at the beginning and the end, and besides silent samples are used for AR calculation, too. So this will never work.

What's really needed for rips without offset correction is to get to know the read offset of the drive used for ripping. And that's no problem, right? Because you ripped the CDs yourself, right?
  • Last Edit: 11 January, 2008, 01:50:21 PM by Fandango

  • odyssey
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #8
What's really needed for rips without offset correction is to get to know the read offset of the drive used for ripping. And that's no problem, right? Because you ripped the CDs yourself, right?

Yes I did - With several different drives, a few of them are already thrown away and I don't have much logs. I noticed after a while that I didn't use offset correction (that was before I used AccurateRip - It wasn't very widespread back then)
Can't wait for a HD-AAC encoder :P

  • Jose Hidalgo
  • [*][*][*][*]
  • Banned
Anyone who wants to write foo_accuraterip_db?
Reply #9
+1 : Fandango, I can assure that I have ripped ALL of my CDs (and I mean more than 1.000 legally-bought CDs) myself, with EAC and Accuraterip (who calculated my drive's offset automatically based on 3 different CDs).

However, I agree with odyssey : I have ripped some of my CDs at a friend's appartment who as a different drive with a different offset. Besides, in the near future, I may also want to change my drive for another model with a different offset.

And of course once you mix up all those ripped CDs in the same hard drive, you don't necessarily remember what CDs have been ripped with what drive. Of course I have most of the EAC logs, but again, having a look manually at more than 1.000 logs doesn't look like a good solution to me...

As for the AR logs, I have very few of them. Why ? Because with EAC 0.95b4 a year ago, it was a bit of a pain to manually copy/paste them in individual files. So I did it only when they indicated no confidence (CD not in database, or incorrect results).

VoilĂ .

  • Fandango
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #10
That's what I think most people will have. Either the drive offset was corrected be it manually or with the help of AR, or it wasn't corrected at all, but most of the rips are done with the same drive.

So for offset corrected rips that have not been AR-checked while ripping there's no problem at all.

And for those rips that have no been offset corrected, a single setting for this component to use a temporary offset correction would also suffice.

In cases where the user who didn't use to care about offset correcting bought a new drive and he still can sort the rips by date and use a different offset for the tests on each batch of rips.

As a deluxe solution I was thinking about an EAC log parser that in combination with a drive offset database can do this on a per rip basis, but that probably is overkill.

  • Jose Hidalgo
  • [*][*][*][*]
  • Banned
Anyone who wants to write foo_accuraterip_db?
Reply #11
Well, all this stuff looks promising. Now all we've got to do is find a dev willing to do it. Guys ?...

  • Fandango
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #12
Well, all this stuff looks promising. Now all we've got to do is find a dev willing to do it. Guys ?...

...ah yes, back to problem #1.

Anyone who wants to write foo_accuraterip_db?
Reply #13
It would already be really useful if AR was integrated with the ripping function of fb2k.
Allegari nihil et allegatum non probare, paria sunt.

  • Fandango
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #14
It would already be really useful if AR was integrated with the ripping function of fb2k.

True. It would be a real bonus to the fb2k ripper.

  • 2tec
  • [*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #15
why is there no plugin that checks any selected tracks as an album using AR checksums for comparing the results with the AR database?

  I'm sorry but just exactly how do you mean "check"? Are you hoping to verify that the audio data is unchanged?

If so, then how about http://wiki.etree.org/index.php?page=FlacFingerprint
Quis custodiet ipsos custodes?  ;~)

  • gausome
  • [*]
Anyone who wants to write foo_accuraterip_db?
Reply #16

why is there no plugin that checks any selected tracks as an album using AR checksums for comparing the results with the AR database?

  I'm sorry but just exactly how do you mean "check"? Are you hoping to verify that the audio data is unchanged?

If so, then how about http://wiki.etree.org/index.php?page=FlacFingerprint

That is very interesting, it is exactly what is needed in to perform a check of the audio data. It seems like the last step would be to combine this feature with something like the AccurateRip database, so that any "Flac Fingerprint" can be compared with other users and given a confidence rating, which would let you determine if any flaws exist in the audio.
  • Last Edit: 21 April, 2008, 03:27:07 PM by gausome

  • Borisz
  • [*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #17
I would be perfectly content with just a scanner, that can do nothing else but telling me if my files are accurate (and to what confidence & the crc).

It would be nice if it would work for multiple album inputs, tough (the same way the replaygain scanner does). That way I could verify a lot of my flac rips in one pass - right now the only way i can verify them is to burn them on disc, then rerip in eac. Very painful process.

Anyone who wants to write foo_accuraterip_db?
Reply #18
hope to see this come to fruition someday.

  • Parsi
  • [*]
Anyone who wants to write foo_accuraterip_db?
Reply #19
I just wanted to open up a new thread about this.
I wish I was a programmmer.

However I would really appreciate this. although a working version of arflac.exe would do fine for me as well - if it would exist
All tracks accurately ripped

End of status report

  • odyssey
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #20
However I would really appreciate this. although a working version of arflac.exe would do fine for me as well - if it would exist
arcue.exe already exists. Also flac.exe and shntool.exe exists if you need to decode and/or combine seperate files. Only I became aware of a spoiler today that makes it impossible for me to use it, because it doesn't take pregap (INDEX 00) in TRACK 01 into account, so all my albums with this will fail when I try.

I really hope some programmer would pickup this, and take offset into account. I would myself, but I still have no C++ experience
Can't wait for a HD-AAC encoder :P

  • XPEHOPE3
  • [*]
Anyone who wants to write foo_accuraterip_db?
Reply #21
Such an utility exists.
It looks like this:

It's set up via foobar converter like this:

It can be downloaded here. Since that site doesn't allow direct links you have to click here:

I'm not the author. The author doesn't know yet about my post here - he is at vacations right now.
The utility is in the alpha state, it's the first test version, please beware.

  • odyssey
  • [*][*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #22
Such an utility exists.
But does it write the results in tags or even work with multiple albums at the same time ??

why is there no plugin that checks any selected tracks as an album using AR checksums for comparing the results with the AR database?
  I'm sorry but just exactly how do you mean "check"? Are you hoping to verify that the audio data is unchanged?

If so, then how about http://wiki.etree.org/index.php?page=FlacFingerprint
That is very interesting, it is exactly what is needed in to perform a check of the audio data. It seems like the last step would be to combine this feature with something like the AccurateRip database, so that any "Flac Fingerprint" can be compared with other users and given a confidence rating, which would let you determine if any flaws exist in the audio.
I don't think so. The internal stored md5 seem to be a checksum of the compressed file without headers. This means, different md5 sums for different flac versions or even different compression levels.

Calling it a "fingerprint" is a little way off IMHO.

Edit: Confusing article. Their "fingerprinting" method seems to me to be just a checksum of the decoded filedata. That's no different from the data stored in AR.

For those who don't know there's a small util called "Tripleflac" that does this on flac-files and even shows the offset! Still it would be great to have a "point 'n click" component that eases this in foobar, but for now it pretty well accomplishes my task.
  • Last Edit: 28 July, 2008, 03:38:48 AM by odyssey
Can't wait for a HD-AAC encoder :P

  • XPEHOPE3
  • [*]
Anyone who wants to write foo_accuraterip_db?
Reply #23
Quote
But does it write the results in tags or even work with multiple albums at the same time ??
It is first test version) you're demanding too much from it. Multiple albums support is planned AFAIR. Results would be saved most probably to a text file only.

  • twostar
  • [*][*][*][*]
Anyone who wants to write foo_accuraterip_db?
Reply #24
Fooaccrip works for me. I tested with a cd ripped with EAC burst mode. EAC reports that all but 2 tracks were ripped accurately. Fooaccrip reports the same.