andyg;574900 Wrote:
> On Sep 6, 2010, at 11:47 PM, erland wrote:
> > Ok, this is a problem we need to solve.
> >
> > Andy, if you are reading this, is there any way to handle this in
> the
> > Audio::Scan module ?
> >
> > If not, is there some other metadata that could be added to the MD5
> in
> > similar way as I did with audio size to make sure each track on a
> cue
> > sheet get a unique identity ? Some track offset maybe ?
>
> OK, Audio::Scan could let you provide an alternate starting byte offset
> for the calculation, then you could run it on the same file with the
> start offset of each track (which is already stored in the database)
> and get different checksums.
>
> How about:
>
> Audio::Scan->scan_info( $file, { md5_size => 1024, md5_offset =>
> $track_start } );
>
> FYI in the next version of Audio::Scan the default md5_offset is
> determined by:
>
> audio_offset + (audio_size / 2) - (md5_size / 2);
>
Does this default mean that it will work with cue sheets without me
specifying a specific md5_offset parameter ?
If not, is the offset in the database an offset in the compressed or
uncompressed audio data ? If it's an offset in the compressed audio
data, this should work.
Is the audio_size of an individual cue sheet track also available in
the database ?
I suppose I might need this if I like to ensure that I don't include
data from the previous or next track in the checksum calculation.
--
erland
Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=81679
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta