ARCue.pl - Check whole CD rips with AccurateRip |
ARCue.pl - Check whole CD rips with AccurateRip |
Mar 21 2007, 09:39
Post
#1
|
|
|
Group: Members Posts: 34 Joined: 21-March 07 Member No.: 41689 |
Hello All,
I've throw together a pure perl script that calculates the track checksums for a cue/wav file pair and then checks them against the AccurateRip database. It's available from: http://www.srcf.ucam.org/~cjk32/ARCue/ARCue.pl Simply save it somewhere sensible, and from a command prompt, run: ARCue.pl file1.cue file2.cue ... A few points to bear in mind: 1) This is written in pure perl, so is quite slow, maybe 30s per track. If any perl gurus have any tips of speeding it up, they'd be much appreciated. 2) The range of cue files supported is probably very limited. It works with those generated by EAC. If it doesn't work with yours, please let me know. 3) The script relies on 32bit integer arithmetic, so I'm not sure how it'll behave on 64bit systems, any feedback will be gratefully recieved. 4) For reasons I can't fathom, approx 1 in 30 tracks checksums are incorrectly calculated. If a track is reported as inaccurately ripped, try running again before reripping. If anyone can shed any light on what might be going on, I'd be very grateful. So far, I can discern no noticable pattern as to when it happens. Finally, as noted in the script, please read, http://www.accuraterip.com/3rdparty-access.htm before use. Chris Key |
|
|
|
![]() |
Mar 27 2007, 12:12
Post
#2
|
|
|
Group: Members Posts: 186 Joined: 23-January 02 Member No.: 1132 |
First of all big thanks. I've started using AccurateRip only recently (and already have ripped lots of CDs). I wanted to write something like this myself but didn't want to go through the hassle and apply for 3rd party access.
I'm on *nix. To parse the file correctly, I need to convert the .cue files to UNIX format and use '/' as path seperator. (No big problem) edit: Hmm, seems like it only works with a single wave file, not with multiple wavs. edit 2: I finally got it to work. There were strange errors that didn't happen using ActivePerl. As far as I can tell the default data types seem to be different and so I got integer overflows here (perl v5.8.8 on FreeBSD). Disclaimer: I've never done anything in perl, so this is probably not the right fix, but at least it works for me and should give a hint what's wrong. CODE --- ARCue.pl.orig Tue Mar 27 17:18:37 2007
+++ ARCue.pl Tue Mar 27 17:12:24 2007 @@ -140,7 +140,7 @@ my $chunkTrackCount = unpack("c",substr($arCrcData,$ptr,1)); my $chunkDiscId1 = unpack("l",substr($arCrcData,$ptr+1,4)); my $chunkDiscId2 = unpack("l",substr($arCrcData,$ptr+5,4)); - my $chunkCddbDiscId = unpack("l",substr($arCrcData,$ptr+9,4)); + my $chunkCddbDiscId = unpack("I",substr($arCrcData,$ptr+9,4)); $ptr +=13; if ( $chunkTrackCount != $trackCount @@ -154,7 +154,7 @@ # How if it flagged that a track is not in the database? for (my $track = 0; $track < $trackCount; $track++) { my $trackConfidence = unpack("c",substr($arCrcData,$ptr,1)); - my $trackCrc = unpack("l",substr($arCrcData,$ptr+1,4)); + my $trackCrc = unpack("I",substr($arCrcData,$ptr+1,4)); $ptr += 9; if ($arCrcCount == 0){ This post has been edited by caligae: Mar 27 2007, 16:20 |
|
|
|
Christopher Key ARCue.pl - Check whole CD rips with AccurateRip Mar 21 2007, 09:39
gib I have not tried it, but it sounds very cool. I s... Mar 21 2007, 11:09
bhoar I agree, very cool. Something I am likely to take... Mar 23 2007, 13:50
ssjkakaroto Sounds very good Christopher. Now AccurateRip can ... Mar 23 2007, 15:40
brainsoft This is exactly what I've been looking for, an... Mar 26 2007, 22:12
brainsoft Do you know if there are any particular settings t... Mar 27 2007, 02:57
Christopher Key QUOTE (brainsoft @ Mar 27 2007, 01:57) Do... Mar 27 2007, 18:39
brainsoft QUOTE (Christopher Key @ Mar 27 2007, 13... Mar 28 2007, 00:13
gib I finally got around to installing Perl and gave t... Mar 27 2007, 04:20
wraithdu For the programming uninitiated, how do you go abo... Mar 27 2007, 04:28
gib QUOTE (wraithdu @ Mar 26 2007, 17:28) For... Mar 27 2007, 04:55
g30rge QUOTE (gib @ Mar 27 2007, 04:55) QUOTE (w... Jul 15 2007, 14:51
David256 QUOTE (g30rge @ Jul 15 2007, 08:51) For t... Jul 15 2007, 21:57
Christopher Key [quote name='caligae' post='481280' date='Mar 27 2... Mar 27 2007, 21:22
caligae QUOTE (Christopher Key @ Mar 27 2007, 22... Mar 28 2007, 08:27

Christopher Key QUOTE (caligae @ Mar 28 2007, 07:27) QUOT... Mar 30 2007, 08:40

caligae QUOTE (Christopher Key @ Mar 30 2007, 09... Mar 30 2007, 13:03

Christopher Key QUOTE (caligae @ Mar 30 2007, 12:03) Have... Mar 31 2007, 16:31
Jose Hidalgo QUOTE (Christopher Key @ Mar 27 2007, 21... Feb 18 2008, 18:03
Omy QUOTE (Jose Hidalgo @ Feb 18 2008, 17:03)... Feb 18 2008, 20:10
Jose Hidalgo Well, back to my previous post then :
QUOTE (Omy... Feb 19 2008, 19:04
mr-b QUOTE (Jose Hidalgo @ Feb 19 2008, 18:04)... Feb 25 2008, 16:06
greynol Besides the lengths of all the tracks, the start p... Mar 27 2007, 18:48
caligae I was able to verify a multiple files rip. First c... Mar 27 2007, 19:21
greynol Check my previous post.
A data track will influen... Mar 27 2007, 19:25
caligae QUOTE (Christopher Key @ Mar 21 2007, 10... Mar 27 2007, 20:44
madxcream Great program. I found a cd that doesn't have ... Mar 31 2007, 02:04
Christopher Key QUOTE (madxcream @ Mar 31 2007, 01:04) di... Mar 31 2007, 16:20
madxcream I have another problem with a cd I just tried. Wit... Mar 31 2007, 14:28
Christopher Key QUOTE (madxcream @ Mar 31 2007, 13:28) I ... Mar 31 2007, 15:44
Christopher Key QUOTE (Christopher Key @ Mar 31 2007, 14... Mar 31 2007, 16:46
madxcream QUOTE (Christopher Key @ Mar 31 2007, 10... Mar 31 2007, 17:35
Christopher Key QUOTE (madxcream @ Mar 31 2007, 16:35) CO... Mar 31 2007, 20:19
madxcream QUOTE (Christopher Key @ Mar 31 2007, 14... Mar 31 2007, 21:31
Christopher Key Hi Kevin,
Right, EAC is getting the file,
dBAR-0... Apr 1 2007, 12:38
madxcream The other problem I had with ARCue having the wron... Mar 31 2007, 17:45
madxcream Hey Chris, here is the info you wanted:
Cueshee... Apr 1 2007, 17:21
Christopher Key QUOTE (madxcream @ Apr 1 2007, 16:21) COD... Apr 1 2007, 20:26
madxcream Confirmed to work, thanks Chris! Apr 1 2007, 21:20
madxcream found another problem one:
EAC disc ID: [Disc ID:... Apr 1 2007, 21:36
Christopher Key QUOTE (madxcream @ Apr 1 2007, 20:36) fou... Apr 1 2007, 22:17
madxcream QUOTE (Christopher Key @ Apr 1 2007, 16:1... Apr 1 2007, 22:57
madxcream Chris, are you still working on getting ARCue to w... Apr 12 2007, 19:10
Christopher Key QUOTE (madxcream @ Apr 12 2007, 19:10) Ch... Apr 15 2007, 21:35
madxcream QUOTE (Christopher Key @ Apr 15 2007, 15... Apr 15 2007, 23:19
brainsoft Has any more work been done on producing a faster/... May 2 2007, 01:25
brainsoft QUOTE (brainsoft @ May 1 2007, 20:25) Has... May 2 2007, 23:13
wraithdu I'd like to integrate this into my REACT2 conf... May 3 2007, 02:45
madxcream QUOTE (wraithdu @ May 2 2007, 20:45) I... May 3 2007, 20:14
wraithdu Getting arcue to scan the ripped WAV image is no p... May 4 2007, 04:13
madxcream QUOTE (wraithdu @ May 3 2007, 22:13) If s... May 4 2007, 19:48
brainsoft QUOTE (madxcream @ May 4 2007, 14:48) QUO... May 7 2007, 04:29
Antonski QUOTE (brainsoft @ May 3 2007, 01:13) If ... May 4 2007, 10:40
wraithdu This is EXACTLY what I've been looking for. T... May 7 2007, 04:46
brainsoft If anyone's interested here are my files. I h... May 7 2007, 04:51
wraithdu megaupload works for me, or rapidshare I suppose. ... May 9 2007, 05:31
wraithdu I made a few additions to your scripts to write th... May 11 2007, 05:02
brainsoft QUOTE (wraithdu @ May 11 2007, 00:02) add... May 16 2007, 23:31
wraithdu My latest additions to my REACT2 code:
REACT.ini
... May 18 2007, 01:14
brainsoft Nice work.
For anyone interested arcue.pl has bee... May 22 2007, 10:44
madxcream QUOTE (brainsoft @ May 22 2007, 04:44) Ni... May 22 2007, 19:47
brainsoft QUOTE (madxcream @ May 22 2007, 14:47) QU... May 22 2007, 22:35
Christopher Key QUOTE (brainsoft @ May 22 2007, 22:35) QU... May 23 2007, 00:08
madxcream I have a question. Does EAC using accruaterip down... May 23 2007, 19:39
Christopher Key QUOTE (madxcream @ May 23 2007, 19:39) I ... May 24 2007, 10:33
brainsoft I think we need a logfile switch
arcue.pl source.... May 28 2007, 03:40
wraithdu A logfile option would be great. I wasn't tot... May 29 2007, 21:09
jnc So, what is the AccurateRip algo anyways? Best I c... Jun 4 2007, 01:53
valnar To everyone who contributed to the ARCue.pl script... Jun 13 2007, 02:48
valnar wraithdu,
I'm having one problem with a disc ... Jun 18 2007, 11:29
wraithdu QUOTE (valnar @ Jun 18 2007, 05:29) wrait... Jun 20 2007, 18:00
wraithdu QUOTE (wraithdu @ Jun 20 2007, 12:00) QUO... Jun 21 2007, 00:59
Fandango Hello guys, I have a request and I'm hoping yo... Jul 4 2007, 19:12
David256 QUOTE (Fandango @ Jul 4 2007, 13:12) Can ... Jul 10 2007, 07:18
Fandango QUOTE (David256 @ Jul 10 2007, 08:18) I h... Jul 15 2007, 00:38
David256 QUOTE (Fandango @ Jul 14 2007, 18:38) Btw... Jul 15 2007, 21:28
No Fun QUOTE (David256 @ Jul 16 2007, 00:28) QUO... Dec 27 2007, 16:30
Omy QUOTE (David256 @ Jul 15 2007, 20:28) QUO... Feb 11 2008, 22:09
wraithdu Does your patched version fix the errorlevel retur... Jul 14 2007, 02:26
David256 QUOTE (wraithdu @ Jul 13 2007, 20:26) Doe... Jul 15 2007, 21:18
micmac Hello all,
I tried the updated script from David2... Jul 15 2007, 01:31
Fandango ARCue.pl only supports single WAV rips. You'll... Jul 15 2007, 02:16
micmac QUOTE (Fandango @ Jul 14 2007, 19:16) ARC... Jul 15 2007, 13:31
Synthetic Soul I'm confused. I though the release of 0.99 pr... Jul 15 2007, 22:06
spoon >What does this script provide that the new EAC... Jul 15 2007, 22:17
Fandango Yes, imagine you have ripped hundreds of CDs witho... Jul 15 2007, 23:09
Synthetic Soul Thanks guys.
It's funny, installing the new ... Jul 16 2007, 07:39
Fandango I think it's a very cool thing that EAC now co... Jul 16 2007, 15:56
greynol ...except that there are some bugs that need to ge... Jul 16 2007, 17:17
Fandango I saw your post in the EAC release thread, nasty b... Jul 16 2007, 19:54
spoon >Hopefully no one is ripping discs with gaps pr... Jul 16 2007, 20:39
Sleepy In case anyone is still trying to sort out the pro... Jul 18 2007, 07:45
odyssey Could it be made possible to check if an album nee... Jul 30 2007, 23:41
Jose Hidalgo I'd be interested in testing that script anywa... Feb 19 2008, 10:26
Fandango Jose, get an Win32 executable version here: http:/... Feb 19 2008, 16:43
Jose Hidalgo Woo-hoo ! Rock'n'roll !
Thanks... Feb 19 2008, 18:01
Fandango Nope, it will only accept whole image rips in WAV ... Feb 19 2008, 18:13
Fandango I'd love to be able to check individual files,... Feb 25 2008, 17:49
Omy QUOTE (Fandango @ Feb 25 2008, 16:49) I... Feb 25 2008, 18:05![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 22:07 |