PDA

View Full Version : Flac.exe????


pmonk
2005-04-25, 11:26 PM
I've been trying decode/encode/test, etc... flac files without using the frontend. So far, I am unable to figure out the proper commands.


===============================================================================

This is the short help; for all options use 'flac --help'; for even more
instructions use 'flac --explain'

To encode:
flac [-#] [INPUTFILE [...]]

-# is -0 (fastest compression) to -8 (highest compression); -5 is the default

To decode:
flac -d [INPUTFILE [...]]

To test:
flac -t [INPUTFILE [...]]

This does not seem to help me one bit :confused:

ozzyzak
2005-04-25, 11:32 PM
Seems easy to figure out. I don't use it without the front end but it seems simple enough.

Looks like you would type flac -d and path to the file after that. That doesn't work?

Five
2005-04-26, 03:15 AM
I don't have the answer... I do have another question: does anybody know how to generate FLAC fingerprints from cmd?

4candles
2005-04-26, 03:31 AM
To encode a set of WAV files to FLAC:

flac -8 *.wav

To decode a set of FLAC to WAV:

flac -d *.flac

Both of those commands preserves (i.e. doesn't delete) the input files.

Another useful option is "-t" (test) - this does the same as "-d" but doesn't write the decoded data to a file:

flac -t *.flac

To create a set of fingerprints from a set of FLAC files you need to use the companion program "metaflac" - because the MD5 checksum is stored as metadata inside the FLAC file:

metaflac --show-md5sum *.flac > fingerprints.txt


Dave.

feralicious
2005-04-26, 03:33 AM
Here's my batch file for them. Makes a txt file like this <foldername>.ffp.txt in the show's folder:

@<hidden> off
%~d1 & cd "%~1"
for %%F in (*.flac) do metaflac --show-md5sum --with-filename "%%F" >> "%~n1.ffp.txt"

:wave:

pmonk
2005-04-26, 09:46 AM
This is what I keep getting

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\Paul XXX>E:

E:\>cd "E:\Music Downloads\My Music\The Who\Who1971.12.02 Dallas"

E:\Music Downloads\My Music\The Who\Who1971.12.02 Dallas>dir
Volume in drive E is New Volume
Volume Serial Number is 809D-0046

Directory of E:\Music Downloads\My Music\The Who\Who1971.12.02 Dallas

04/22/2005 12:32p <DIR> .
04/22/2005 12:32p <DIR> ..
04/22/2005 12:01p 60,721,628 who1971-12-02t01.wav
04/22/2005 12:01p 97,537,484 who1971-12-02t02.wav
04/22/2005 12:01p 187,075,772 who1971-12-02t03.wav
04/22/2005 12:01p 40,096,940 who1971-12-02t04.wav
04/22/2005 12:01p 79,883,372 who1971-12-02t05.wav
04/22/2005 12:02p 32,942,156 who1971-12-02t06.wav
04/22/2005 12:02p 29,444,732 who1971-12-02t07.wav
04/22/2005 12:02p 45,537,116 who1971-12-02t08.wav
8 File(s) 573,239,200 bytes
2 Dir(s) 32,357,093,376 bytes free

E:\Music Downloads\My Music\The Who\Who1971.12.02 Dallas>flac -8 *.wav

flac 1.1.2, Copyright (C) 2000,2001,2002,2003,2004,2005 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: -P 4096 -b 4608 -m -l 12 -e -q 0 -r 0,6
ERROR: can't open input file *.wav

E:\Music Downloads\My Music\The Who\Who1971.12.02 Dallas>

What am I doing wrong?????????????

pmonk
2005-04-26, 09:56 AM
Actually - my question is now HOW do you decode/encode multiple files.

I can get it to work one file at a time

pmonk
2005-04-26, 10:56 AM
Actually - my question is now HOW do you decode/encode multiple files.

I can get it to work one file at a time

Actually - when using flac.exe do you have to add each track individually i.e.



E:\>flac -5 --sector-align --delete-input-file -m -P 4096 -V "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t03.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t04.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t05.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t06.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t07.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t08.wav"

flac 1.1.2, Copyright (C) 2000,2001,2002,2003,2004,2005 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: --delete-input-file --sector-align -P 4096 -b 4608 -m -l 8 -q 0 -r 3,3
-V
who1971-12-02t03.wav: Verify OK, wrote 115280333 bytes, ratio=0.616
who1971-12-02t04.wav: Verify OK, wrote 24930633 bytes, ratio=0.622
who1971-12-02t05.wav: Verify OK, wrote 49849357 bytes, ratio=0.624
who1971-12-02t06.wav: Verify OK, wrote 20365486 bytes, ratio=0.618
who1971-12-02t07.wav: Verify OK, wrote 18307049 bytes, ratio=0.622
who1971-12-02t08.wav: 100% complete, ratio=0.587

:confused: :hmm:

Five
2005-04-26, 11:04 AM
and so I guess this is the #1 reason why a frontend is convenient!

ffooky
2005-04-26, 11:10 AM
I don't know about Windows but from the OS X command line you can just type:

$ flac -V -5 <select and drag all the files you want to encode here> and Bob's your uncle.

If you want to sector align them (assuming they're named 01,02 etc) then just

$ cd <drag folder containg your WAVs here>
$ flac -5 --sector-align *.wav

uhclem
2005-04-26, 11:11 AM
Actually - when using flac.exe do you have to add each track individually i.e.



E:\>flac -5 --sector-align --delete-input-file -m -P 4096 -V "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t03.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t04.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t05.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t06.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t07.wav" "E:\Music Download
s\My Music\The Who\Who1971.12.02 Dallas\who1971-12-02t08.wav"

flac 1.1.2, Copyright (C) 2000,2001,2002,2003,2004,2005 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: --delete-input-file --sector-align -P 4096 -b 4608 -m -l 8 -q 0 -r 3,3
-V
who1971-12-02t03.wav: Verify OK, wrote 115280333 bytes, ratio=0.616

who1971-12-02t04.wav: Verify OK, wrote 24930633 bytes, ratio=0.622
who1971-12-02t05.wav: Verify OK, wrote 49849357 bytes, ratio=0.624
who1971-12-02t06.wav: Verify OK, wrote 20365486 bytes, ratio=0.618
who1971-12-02t07.wav: Verify OK, wrote 18307049 bytes, ratio=0.622
who1971-12-02t08.wav: 100% complete, ratio=0.587

:confused: :hmm:
Pmonk, your output shows that you have to feed all the tracks to flac at the same time but as individual files, e.g.

flac -V -6 file1.wav file2.wav file3.wav

This method is ESSENTIAL if you want to sector align the tracks as you compress them. If you aren't trying to sector align them, then you can pass your wave files to flac.exe one at a time.

This is why the frontend is generally the way to go. Why not just stick with the frontend?

pmonk
2005-04-26, 11:11 AM
and so I guess this is the #1 reason why a frontend is convenient!

You fucking said it :lol

But its always good to know if I ever get into a situation where I don't have a frontend available :lol :rolleyes:

Five
2005-04-26, 11:33 AM
yes, it's always good to know more than you need to!

pmonk
2005-04-26, 11:56 AM
This is why the frontend is generally the way to go. Why not just stick with the frontend?

I don't plan on giving up on the frontend just curious on how the frontend works!

feralicious
2005-04-26, 12:05 PM
I don't plan on giving up on the frontend just curious on how the frontend works!Well keep experimenting. I love it when you talk to yourself in a thread. ;)

4candles
2005-04-26, 12:24 PM
OK, I understand the problem now - it's because Windows (or more accurately, the command-line interpreter "cmd.exe") behaves differently to Unix "shells".

Under Unix, typing the command

flac -8 *.wav

would cause the shell to replace "*.wav" with a list of filenames matching that pattern, so flac would actually think that the user typed the command

flac -8 track1.wav track2.wav track3.wav

But under Windows, that expansion doesn't happen, so typing "flac -8 *.wav" causes flac to literally look for a file called "*.wav", which will obviously not exist.

Hope that makes sense. It seems that under Windows, you either have to type each filename manually, or use a frontend (or use a Unix-like shell such as those provided as part of "cygwin").

Dave.

Beleaguered
2005-04-26, 12:54 PM
and so I guess this is the #1 reason why a frontend is convenient!
or another reason why you should switch to linux :D

uhclem
2005-04-26, 01:01 PM
or another reason why you should switch to linux :D
hardly :rolleyes: