[Flac-dev] new --sector-align option

Josh Coalson xflac at yahoo.com
Tue Jun 26 12:44:36 PDT 2001


I'll be checking in code for a new option tonight.  Using
--sector-align when encoding a group of WAVE files will
cause the encoder to align each file to a CD sector
boundary before encoding.  A CD sector is 588 samples and
the option only works for WAVE data with a sample rate of
44100 Hz and 2 channels.

The alignment is always backwards from the original
breakpoint.  In other words, if the first file does not
end on a sector boundary, the last partial sector will
be carried over to the encoding of the next file.  The
same thing is done to the next file, up until the last
file.  If the last file is not aligned it will be padded
to alignment with zeroes.

Here's an example output:

bash-2.01$ flac -0 -V --sector-align s[1234].wav

flac 1.0devel, Copyright (C) 2000,2001 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.

options: --sector-align -P 0 -b 1152 -l 0 -q 0 -r 2,2 -R 0 -V
s1.wav: Verify OK, wrote 7529810 bytes, ratio=0.458
s1.wav: INFO: sector alignment causing 578 samples to be carried over
s2.wav: Verify OK, wrote 7530882 bytes, ratio=0.459
s2.wav: INFO: sector alignment causing 558 samples to be carried over
s3.wav: Verify OK, wrote 7530886 bytes, ratio=0.459
s4.wav: Verify OK, wrote 7527285 bytes, ratio=0.451
s4.wav: INFO: sector alignment causing 55 zero samples to be appended


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




More information about the Flac-dev mailing list