#15 CD time format for --skip and -until options


Options --skip and --until are useful to extract a
partial audio stream in an input audio. However, they
are not handy to extract individual tracks from a FLAC
file representing the whole CD image since audio CDs
employ mm:ss:ff format where ff ranges from 0 to 74 and
1/75 is 0.0133... Even though FLAC supports embedded
cuesheet, some users don't like an embedded cuesheet
for several reasons (compatibility, editablity, etc).

This patch enhance --skip and --until options to accept
"mm:ss:ff" format as well as "mm:ss.ss" format. This will
enable to extract individual tracks in an audio CD simply
by writing a small script with a cuesheet parser. The
patch is against flac 1.1.2.

I'm an author of ACDIR (Audio CD Image Reader):
This patch was created while preparing the next
generation of ACDIR. I hope this patch will be of help
for other programs using the FLAC command-line tool.

Best wishes,


  • Josh Coalson

    Josh Coalson - 2006-11-10
    • priority: 5 --> 4
    • assigned_to: nobody --> jcoalson
  • Josh Coalson

    Josh Coalson - 2007-07-26

    Logged In: YES
    Originator: NO

    the problem is that frames only make sense for CD rate (44.1kHz) but --skip and --until syntax has to work for any rate, e.g. what if someone uses mm:ss:ff on a 16kHz file? I still need to figure out the best way to handle it.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks