LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-07-2011, 05:19 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
The flac command manual: an inconsistency?


Kernel 2.6.21.5, slackware 12.0

Hi:
I write here because flac and cdrecord are programs present in slack 12. IDK if in other distros as well.

I have these two files in a directory. The .cue contains the indexes to split the .flac.
Code:
CD6\ Nos.22,23,24,25,26.cue
CD6\ Nos.22,23,24,25,26.flac
It's my intention to create an audio CD from the .flac. From flac manual:
Code:
DECODING OPTIONS
       --cue=[#.#][-[#.#]]
              Set the beginning and ending cuepoints to decode.  The optional first #.# is the track and index
              point  at  which  decoding will start; the default is the beginning of the stream.  The optional
              second #.# is the track and index point at which decoding will end; the default is  the  end  of
              the  stream.  If the cuepoint does not exist, the closest one before it (for the start point) or
              after it (for the end point) will be used.  If those don't exist, the start of the  stream  (for
              the  start  point)  or  end  of  the stream (for the end point) will be used.  The cuepoints are
              merely translated into sample numbers then used as --skip and --until.
From the .cue:
Code:
  TRACK 01 AUDIO
    TITLE "Piano Sonata No.22 in F minor, op.54 - I. In Tempo d'un Menuetto"
    INDEX 00 00:00:00
    INDEX 01 00:00:33
  TRACK 02 AUDIO
    TITLE "Piano Sonata No.22 in F minor, op.54 - II. Allegretto - Piu Allegro"
    INDEX 00 05:15:55
    INDEX 01 05:17:45
In principle, I could do
Code:
flac --decode --cue=01.00-02.00 "CD6\ Nos.22,23,24,25,26.flac"
and to have the first track decoded and ready to be fed to cdrecord. But this is sheer nonsense. How could flac know he must decode from 00:00:00 to 05:15:55 without a reference to the cuefile? I can't find a way out. Any idea?
 
Old 07-07-2011, 02:52 PM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Flac files can optionally have cuesheet data embedded inside them. See, for example, the flac command's encoding option --cuesheet=filename. If your flac file was not originally encoded with embedded cuesheet information, you can add it now from your cue file using the metaflac command.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct burn of FLAC vs. FLAC --> audio CD stf92 Linux - Software 5 08-07-2010 04:02 PM
Direct burn of FLAC vs. FLAC-->cdda. stf92 Linux - Newbie 2 03-19-2010 10:05 PM
New in LQ. I need command line manual Bambang Bakti LinuxQuestions.org Member Intro 2 04-26-2009 07:14 AM
I need a short command manual for linux puntino Linux - Newbie 5 11-20-2006 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration