Help - Search - Members - Calendar
Full Version: ARFlac C library/port
Hydrogenaudio Forums > Hydrogenaudio Forum > Uploads
Omy
Mostly to do with this thread about ARCue.pl. This is my own port/rewrite to C of the ARFlac.pl script which was in turn based off ARCue.pl. As such then credit must go to the authors of ARCue.pl and ARFlac.pl, although the actual C code is my own work.

Basically, this is a C library (and reference program which uses it) which can be used to check a directory of .flac files against the AccurateRip database. See the thread linked above for discussion of it's limitations.

Click to view attachment
SamHain86
Does this work for images only, or track-files as well?
Omy
QUOTE(SamHain86 @ Apr 7 2008, 21:05) *

Does this work for images only, or track-files as well?


it only works for track-per-file rips. (if it works at all!)
caligae
I've somehow missed this thread when it initially appeared.

Haven't tested it extensively yet but looks very nice so far.

Very nice and useful tool, thanks!
torben
Edit, noticed now that in the main thread you said this if for Unix... Will test it.
Corwin
Doesn't seem to work too well for me:

$ ./accuraterip-crcgen /tmp/Kansas\ -\ 1976\ -\ Leftoverture/
Track Ripping Status [Disc ID: 0013bd5c-009ffd2b-7f0d0b0a]
1 ** Rip not accurate ** (confidence 2) [19384034] [2a64c13c]
2 ** Rip not accurate ** (confidence 0) [00000000] [841808cd]
3 ** Rip not accurate ** (confidence 0) [00000000] [61322ddb]
4 ** Rip not accurate ** (confidence 0) [00000000] [a9ecbf66]
5 ** Rip not accurate ** (confidence 0) [00000000] [65f79abb]
6 ** Rip not accurate ** (confidence 0) [00000000] [12556ecd]
7 ** Rip not accurate ** (confidence 0) [00000000] [7393bf4b]
8 ** Rip not accurate ** (confidence 0) [00000000] [90fb3812]
9 ** Rip not accurate ** (confidence 0) [00000000] [07c54aa8]
10 ** Rip not accurate ** (confidence 1) [26ce7c16] [6f96e186]


I'm on 64bit Debian. There's no make install, I'm sure a lot of people don't realize you have to run ldconfig after copying the shared library file over to /usr/local/bin.
Fandango
Hi Omy, nice work although it seems to need some polishing... biggrin.gif

Would you consider adding support for cue/image rips into your library? I guess you can re-use this code from here. whitehobbit probably has nothing against it.

A versatile (portable) stand-alone and library-based AccurateRip verifier is in high demand I guess. Not only do many *nix based rippers lack basic AR support (verifying only would be a start, not necessarily submitting results and all that), but also many old pre-AR EAC rips can be checked with such a tool.
Corwin
$ accuraterip-crcgen Symphony\ X\ -\ 1997\ -\ The\ Divine\ Wings\ of\ Tragedy/
Error while decoding stream: FLAC file does not contain a whole number of CDDA frames!
Failed to read track metadata.


$ flac -t Symphony\ X\ -\ 1997\ -\ The\ Divine\ Wings\ of\ Tragedy/*flac

flac 1.2.1, Copyright © 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

01 - Of Sins And Shadows.flac: ok
02 - Sea Of Lies.flac: ok
03 - Out Of The Ashes.flac: ok
04 - The Accolade.flac: ok
05 - Pharaoh.flac: ok
06 - The Eyes Of Medusa.flac: ok
07 - The Witching Hour.flac: ok
08 - The Divine Wings Of Tragedy.flac: ok
09 - Candlelight Fantasia.flac: ok

$ ARFlac.pl Symphony\ X\ -\ 1997\ -\ The\ Divine\ Wings\ of\ Tragedy/
Symphony X - 1997 - The Divine Wings of Tragedy/:13144064:11354112:9633792:26071040:14479360:14356480:11159552:54743040:17848320:
Checking AccurateRip database

Track Ripping Status [Disc ID: 0012c74f-710f4e09]
read failed. at /usr/local/bin/ARFlac.pl line 295
main::processFile('GLOB(0x91d560)', 22354, 1, '') called at /usr/local/bin/ARFlac.pl line 187
Corwin
Please see the ARFlac.pl thread for a bug regarding the wrong confidence number. This bug is exactly the same in both ARFlac.pl and accuraterip-crcgen.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.