When I run it (OS X 10.6.2), find builds a list across multiple directories and
then runs metaflac, causing metaflac to report. "The FLAC file could not be
opened. Most likely the file does not exist or is not readable."
I would think this is the expected result as " {} + " is the same as
-execdir, except that ``{}'' is replaced with as many pathnames as
possible for each invocation of utility." and execdir caused metaflac tol
be executed from the directory that holds the current file."
The find option '-print' reports ALL my flac files:
.........
./Traffic/Last Exit/Traffic - Last Exit - 06 Feeling Good.flac
./Traffic/Last Exit/Traffic - Last Exit - 07 Blind Man.flac
./Traffic/Welcome To The Canteen/Traffic - Welcome To The Canteen - 01 Medicated
Goo.flac
./Traffic/Welcome To The Canteen/Traffic - Welcome To The Canteen - 02 Sad and
Deep as You.flac
..............
Then when metaflac is run:
The FLAC file could not be opened. Most likely the file does not exist
or is not readable.
Traffic - Last Exit - 07 Blind Man.flac: ERROR: reading metadata, status =
"FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"
The FLAC file could not be opened. Most likely the file does not exist
or is not readable.
Traffic - Welcome To The Canteen - 01 Medicated Goo.flac: ERROR: reading
metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"
..................
Anyway, you answered my original question, and "metaflac
--add-replay-gain" is the way to go (not flac -f --replay-gain as I had
thought). I just ran this though a script that recurses through directories and
runs metaflac for flac files in each directory (which is on an album basis in my
file structure).
Thanks.
On Dec 30, 2009, at 10:01 PM, Nicholas Wilson wrote:
> Nope. That's what execdir does, running metaflac separately for each
> directory where flac files are found.
>
> Nicholas
>
> On Wed, Dec 30, 2009 at 8:06 PM, Ron Decline <rutlecorps at
gmail.com> wrote:
>>
>> Ah! metaflac, thanks, but won't this cause metaflac to combine
flac's across directories and give an album replay gain for the combined
flac's? (as opposed to separate albums i.e. metaflac /album1/*.flac
/album2/*.flac as opposed to metaflac /album1/*.flac, metaflac /album2/*.flac)
>>
>> On Dec 30, 2009, at 11:43 AM, Nicholas Wilson wrote:
>>
>>> Run from the top directory:
>>>
>>> find . -name "*.flac" -print -execdir metaflac
--add-replay-gain {} +
>>>
>>> which should do it.
>>>
>>> Nicholas
>>>
>>> On Wed, Dec 30, 2009 at 2:13 PM, Ron Decline <rutlecorps at
gmail.com> wrote:
>>>>
>>>> I have FLAC files that I would like to re-encode with
--replay-gain. I have my Flac's organized in Artist/Album folders, so I
should have no problem getting an album gain/peak per album.
>>>>
>>>> Do I need to first de-code the flac's to wav files and then
"flac --replay-gain *.wav", or can this be accomplished by going to
each Album directory and "flac -f --replay-gain *.flac"?
>>>> _______________________________________________
>>>> Flac mailing list
>>>> Flac at xiph.org
>>>> http://lists.xiph.org/mailman/listinfo/flac
>>>>
>>
>> _______________________________________________
>> Flac mailing list
>> Flac at xiph.org
>> http://lists.xiph.org/mailman/listinfo/flac
>>