Flac to Apple Lossless

Discuss Max, an open source CD audio extractor and audio converter.
Post Reply
chris31fr
Posts: 18
Joined: Mon Feb 05, 2007 6:11 pm

Flac to Apple Lossless

Post by chris31fr » Sun Aug 29, 2010 6:19 pm

Hi
If I convert a bit perfect Flac to Apple Lossless, will the Apple lossless be bit perfect too ?
I tried this convertion, and I came back to Flac , the size was different between the two flac...
So, I tried with xld and the Apple Lossless I was different size...
thanks

User avatar
Fuga
Posts: 391
Joined: Mon Jun 05, 2006 8:30 pm
Location: Texas

Re: Flac to Apple Lossless

Post by Fuga » Sun Aug 29, 2010 11:01 pm

Best way to know is to convert to AIFF or WAV and compare CRC.

chris31fr
Posts: 18
Joined: Mon Feb 05, 2007 6:11 pm

Re: Flac to Apple Lossless

Post by chris31fr » Mon Aug 30, 2010 8:18 am

Ok
Heu, how to do that ?
thanks

chris31fr
Posts: 18
Joined: Mon Feb 05, 2007 6:11 pm

Re: Flac to Apple Lossless

Post by chris31fr » Wed Sep 01, 2010 12:34 am

Any idea ?

User avatar
Fuga
Posts: 391
Joined: Mon Jun 05, 2006 8:30 pm
Location: Texas

Re: Flac to Apple Lossless

Post by Fuga » Wed Sep 01, 2010 10:08 pm

Use Max to do the conversion.

MacSFV, checksum+ are but 2 of several apps.

chris31fr
Posts: 18
Joined: Mon Feb 05, 2007 6:11 pm

Re: Flac to Apple Lossless

Post by chris31fr » Wed Sep 01, 2010 11:22 pm

thanks

mattn
Posts: 152
Joined: Tue Sep 02, 2008 4:21 am

Re: Flac to Apple Lossless

Post by mattn » Thu Sep 02, 2010 4:55 am

Simple checksumming is built into the system; in Terminal "man cksum" to learn more.

However, files can contain format differences and still express the same waveform. What you want is shntool. It has a soundfile comparison function. With the right helper tools installed, it can actually compare soundfiles in different formats.

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: Flac to Apple Lossless

Post by sbooth » Wed Sep 15, 2010 7:03 pm

What I would do is the following:
  • Convert your FLAC file to Apple Lossless
  • Convert the Apple Lossless file back to FLAC
  • Compare the MD5 sums of the two FLAC files
To compare the MD5s you'll need to install the FLAC command line tools. You can do that via MacPorts, or download one of the pre-built packages from http://flac.sourceforge.net.

The metaflac tool is what can show you the MD5 sums. In a Terminal window type the following

Code: Select all

% metflac --list /path/to/flac
replacing /path/to/flac with the location of one of the FLAC files. Do the same for the other FLAC file, and compare the two.

FYI, the output from metaflac --list looks something like:

Code: Select all

METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4096 samples
  maximum blocksize: 4096 samples
  minimum framesize: 16 bytes
  maximum framesize: 13999 bytes
  sample_rate: 44100 Hz
  channels: 2
  bits-per-sample: 16
  total samples: 10783332
  MD5 signature: 7e53ed8e447b62d48d6684078afd21b7
METADATA block #1
  type: 3 (SEEKTABLE)
  is last: false
  length: 450
  seek points: 25
    point 0: sample_number=0, stream_offset=0, frame_samples=4096
    point 1: sample_number=438272, stream_offset=791810, frame_samples=4096
    point 2: sample_number=880640, stream_offset=1975576, frame_samples=4096
    point 3: sample_number=1318912, stream_offset=3259449, frame_samples=4096
    point 4: sample_number=1761280, stream_offset=4534215, frame_samples=4096
    point 5: sample_number=2203648, stream_offset=5821398, frame_samples=4096
    point 6: sample_number=2641920, stream_offset=7130630, frame_samples=4096
    point 7: sample_number=3084288, stream_offset=8447713, frame_samples=4096
    point 8: sample_number=3526656, stream_offset=9765051, frame_samples=4096
    point 9: sample_number=3964928, stream_offset=11092400, frame_samples=4096
    point 10: sample_number=4407296, stream_offset=12443800, frame_samples=4096
    point 11: sample_number=4849664, stream_offset=13738044, frame_samples=4096
    point 12: sample_number=5287936, stream_offset=15021105, frame_samples=4096
    point 13: sample_number=5730304, stream_offset=16326260, frame_samples=4096
    point 14: sample_number=6172672, stream_offset=17622963, frame_samples=4096
    point 15: sample_number=6610944, stream_offset=18920410, frame_samples=4096
    point 16: sample_number=7053312, stream_offset=20234285, frame_samples=4096
    point 17: sample_number=7495680, stream_offset=21625286, frame_samples=4096
    point 18: sample_number=7933952, stream_offset=23039605, frame_samples=4096
    point 19: sample_number=8376320, stream_offset=24318988, frame_samples=4096
    point 20: sample_number=8818688, stream_offset=25632674, frame_samples=4096
    point 21: sample_number=9256960, stream_offset=26990052, frame_samples=4096
    point 22: sample_number=9699328, stream_offset=28344835, frame_samples=4096
    point 23: sample_number=10141696, stream_offset=29694399, frame_samples=4096
    point 24: sample_number=10579968, stream_offset=30661463, frame_samples=4096
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 40
  vendor string: reference libFLAC 1.2.1 20070917
  comments: 0
METADATA block #3
  type: 1 (PADDING)
  is last: true
  length: 8192

Lunchbox16
Posts: 26
Joined: Sat Jun 06, 2009 6:25 pm

Re: Flac to Apple Lossless

Post by Lunchbox16 » Thu Sep 30, 2010 8:54 pm

xACT also has the capability to generate MD5 and ST5 checksums if you're like me and can't figure out how to use the FLAC command line stuff. I tried... and failed miserably. The new 2.0 version should be out soon if it isn't already.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest