IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Does FLAC.exe decode support ReplayGain?
Kent Wang
post Jan 8 2004, 03:45
Post #1





Group: Members
Posts: 78
Joined: 12-June 03
Member No.: 7145



There doesn't seem to be an option so I'm not sure whether FLAC.exe will automatically interpret ReplayGain tags or not.


--------------------
Everything I've learned about space, I've learned from psytrance.
Go to the top of the page
+Quote Post
sinan
post Jan 8 2004, 12:02
Post #2





Group: Members
Posts: 37
Joined: 16-July 03
From: Turkey
Member No.: 7821



It doesn't use the ReplayGain tags on decoding, so the output is not ReplayGain'ed, like the original.
Go to the top of the page
+Quote Post
jth
post Jan 8 2004, 15:20
Post #3





Group: Members
Posts: 157
Joined: 4-December 01
Member No.: 579



If you are able to pull the current CVS version and compile it, there is a new option:

--apply-replaygain-which-is-not-lossless

If you can't do this, you'll have to wait for the next version.

--jth
Go to the top of the page
+Quote Post
M
post Jan 8 2004, 15:29
Post #4





Group: Members
Posts: 964
Joined: 29-December 01
Member No.: 830



QUOTE (jth @ Jan 8 2004, 09:20 AM)
If you are able to pull the current CVS version and compile it, there is a new option:

--apply-replaygain-which-is-not-lossless

Does the new option allow the user to specify a manual gain value (as WaveGain does), or is it limited to reading ReplayGain information stored within the FLAC tags? Alternately, if no ReplayGain information is already stored in the tags, can the --apply-replaygain-which-is-not-lossless switch be used in conjunction with an album or radio parameter to perform the desired gain, without storing the newly calculated values within the FLAC tags?

- M.

Edit: Wording changed for clarity... hope it worked. wink.gif

This post has been edited by M: Jan 8 2004, 15:30
Go to the top of the page
+Quote Post
jth
post Jan 8 2004, 15:42
Post #5





Group: Members
Posts: 157
Joined: 4-December 01
Member No.: 579



QUOTE (M @ Jan 8 2004, 07:29 AM)
[Does the new option allow the user to specify a manual gain value (as WaveGain does), or is it limited to reading ReplayGain information stored within the FLAC tags? ...

I haven't been successful in compiling it yet, so I'll have to defer on your question. You could always check the source code.
Go to the top of the page
+Quote Post
M
post Jan 8 2004, 16:08
Post #6





Group: Members
Posts: 964
Joined: 29-December 01
Member No.: 830



QUOTE (jth @ Jan 8 2004, 09:42 AM)
I haven't been successful in compiling it yet, so I'll have to defer on your question. You could always check the source code.

Ah... but I am not a programmer. My understanding of source code may be better than the average person on the street (I can wade through it with difficulty), but I would not rely upon my limited comprehension of code for a definitive answer to my - or anyone else's - question! biggrin.gif

- M.
Go to the top of the page
+Quote Post
spase
post Jan 8 2004, 17:17
Post #7





Group: Members
Posts: 773
Joined: 23-October 01
From: USA
Member No.: 340



QUOTE (Kent Wang @ Jan 7 2004, 09:45 PM)
There doesn't seem to be an option so I'm not sure whether FLAC.exe will automatically interpret ReplayGain tags or not.

As another Option, I tend to use foobar2000 to replaygain my FLAC files. It is easier IMHO, and if you have a single file with multiple tracs via CUE sheet, It will replaygain each file individually.


--------------------
http://www.last.fm/user/spase

-spase-
Go to the top of the page
+Quote Post
jcoalson
post Jan 8 2004, 19:40
Post #8


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



QUOTE (M @ Jan 8 2004, 09:29 AM)
Does the new option allow the user to specify a manual gain value (as WaveGain does), or is it limited to reading ReplayGain information stored within the FLAC tags?

you can't specify a manual gain (I guess that could be added) but you can specify a relative adjustment to the existing gain.

QUOTE (M @ Jan 8 2004, 09:29 AM)
Alternately, if no ReplayGain information is already stored in the tags, can the --apply-replaygain-which-is-not-lossless switch be used in conjunction with an album or radio parameter to perform the desired gain, without storing the newly calculated values within the FLAC tags?

nope. that would require 2 passes over the audio, one to calculate the gain and one to apply it.

Josh

edit: Kent, your original question is not clear, flac can encode or decode, and can do different things with replaygain for each. what do you mean by interpret?

This post has been edited by jcoalson: Jan 8 2004, 19:42
Go to the top of the page
+Quote Post
Kent Wang
post Jan 8 2004, 19:51
Post #9





Group: Members
Posts: 78
Joined: 12-June 03
Member No.: 7145



QUOTE (jcoalson @ Jan 8 2004, 01:40 PM)
edit: Kent, your original question is not clear, flac can encode or decode, and can do different things with replaygain for each.  what do you mean by interpret?

When I use flac -d to decode a file, will it read the embedded ReplayGain tags and apply them when decoding? Based on the other responses I've read, that does not seem to be the case as this would not be a truly lossless version of the original, but it would be nice to have this option for cases when this would be useful, such as converting to WAV for purposes of burning to CD.


--------------------
Everything I've learned about space, I've learned from psytrance.
Go to the top of the page
+Quote Post
M
post Jan 8 2004, 19:52
Post #10





Group: Members
Posts: 964
Joined: 29-December 01
Member No.: 830



QUOTE (jcoalson @ Jan 8 2004, 01:40 PM)
QUOTE (M @ Jan 8 2004, 09:29 AM)
Does the new option allow the user to specify a manual gain value (as WaveGain does), or is it limited to reading ReplayGain information stored within the FLAC tags?

you can't specify a manual gain (I guess that could be added) but you can specify a relative adjustment to the existing gain.

QUOTE (M @ Jan 8 2004, 09:29 AM)
Alternately, if no ReplayGain information is already stored in the tags, can the --apply-replaygain-which-is-not-lossless switch be used in conjunction with an album or radio parameter to perform the desired gain, without storing the newly calculated values within the FLAC tags?

nope. that would require 2 passes over the audio, one to calculate the gain and one to apply it.

All right, but based on this can one specify a relative gain adjustment for files which do not already have an existing gain tag? (That part still seems unclear. If I have FLAC without gain information stored in the tags, but I know what the gain/scale information is from having previously analyzed the WAVs in WaveGain and storing a log, can I say, "I want this much gain applied - don't ask questions!"?)

... and for us non-programmers, is there a downloadable CVS compile with the --apply-replaygain-which-is-not-lossless switch enabled?

- M.
Go to the top of the page
+Quote Post
Kent Wang
post Jan 8 2004, 20:03
Post #11





Group: Members
Posts: 78
Joined: 12-June 03
Member No.: 7145



QUOTE (M @ Jan 8 2004, 01:52 PM)
... and for us non-programmers, is there a downloadable CVS compile with the --apply-replaygain-which-is-not-lossless switch enabled?

You could always wait... or just use the current version to decode and then run WaveGain on it.


--------------------
Everything I've learned about space, I've learned from psytrance.
Go to the top of the page
+Quote Post
jcoalson
post Jan 8 2004, 20:05
Post #12


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



QUOTE (Kent Wang @ Jan 8 2004, 01:51 PM)
QUOTE (jcoalson @ Jan 8 2004, 01:40 PM)
edit: Kent, your original question is not clear, flac can encode or decode, and can do different things with replaygain for each.  what do you mean by interpret?

When I use flac -d to decode a file, will it read the embedded ReplayGain tags and apply them when decoding?

gotcha. yes, but only with --apply-replaygain-which-is-not-lossless which is not yet released.

QUOTE (M @ Jan 8 2004, 01:52 PM)
All right, but based on this can one specify a relative gain adjustment for files which do not already have an existing gain tag? (That part still seems unclear. If I have FLAC without gain information stored in the tags, but I know what the gain/scale information is from having previously analyzed the WAVs in WaveGain and storing a log, can I say, "I want this much gain applied - don't ask questions!"?)

if there is no gain tag, the option will have no effect. here's the usage:

CODE
--apply-replaygain-which-is-not-lossless[=<specification>]
   Applies ReplayGain values while decoding.

   WARNING: THIS IS NOT LOSSLESS.  DECODED AUDIO WILL NOT BE IDENTICAL TO THE ORIGINAL WITH THIS OPTION.

   The equals sign and <specification> is optional.  If omitted, the default is 0aLn1 (see below).

   The <specification> is a shorthand notation for describing how to apply ReplayGain.  All components are optional but order is important.  '[]' means 'optional'.  '|' means 'or'.  '{}' means required.  The format is:

       [<preamp>][a|t][l|L][n{0|1|2|3}]

   <preamp>
       A floating point number in dB.  This is added to the existing gain value.

   a|t
       Specify 'a' to use the album gain, or 't' to use the track gain

   l|L
       Specify 'l' to peak-limit the output, so that the ReplayGain peak value is full-scale.  Specify 'L' to use a 6dB hard limiter that kicks in when the signal approaches full-scale.

   n{0|1|2|3}
       Specify the amount of noise shaping.  ReplayGain synthesis happens in floating point; the result is dithered before converting back to integer.  This quantization adds noise.  Noise shaping tries to move the noise where you won't hear it as much.  0 means no noise shaping, 1 means 'low', 2 means 'medium', 3 means 'high'.

   For example, the default of 0aLn1 means 0dB preamp, use album gain, 6dB hard limit, low noise shaping.

   --apply-replaygain-which-is-not-lossless=3 means 3dB preamp, use album gain, no limiting, no noise shaping.

   flac uses the ReplayGain tags for the calculation.  If a stream does not have the required tags or they can't be parsed, decoding will continue with a warning, and no ReplayGain is applied to that stream.


QUOTE (M @ Jan 8 2004, 01:52 PM)
... and for us non-programmers, is there a downloadable CVS compile with the --apply-replaygain-which-is-not-lossless switch enabled?

nope, sorry. Cerebus was asking about it in another thread, for use with the Slim Server; maybe those guys have a binary.

Josh
Go to the top of the page
+Quote Post
john33
post Jan 9 2004, 11:51
Post #13


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3760
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



For anyone that wants to play, I've just uploaded a complete set of compiles of the current FLAC CVS to Rarewares/Lossless page.

Be Aware these are untested and, unless Josh says otherwise, should not be used for anything other than testing new features.


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
jcoalson
post Jan 9 2004, 18:16
Post #14


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



yes, and especially don't encode to ogg flac with it; the files will be silently corrupt as I still have some fixes to make.

Josh
Go to the top of the page
+Quote Post
atici
post Jan 9 2004, 18:23
Post #15





Group: Members (Donating)
Posts: 1180
Joined: 21-February 02
From: Chicago
Member No.: 1367



Hmm does this new version feature any size improvements, i.e. smaller filesize for same quality?


--------------------
The object of mankind lies in its highest individuals.
One must have chaos in oneself to be able to give birth to a dancing star.
Go to the top of the page
+Quote Post
Cerebus
post Jan 12 2004, 23:42
Post #16





Group: Members
Posts: 158
Joined: 31-October 02
Member No.: 3664



john33:

I don't see the
--apply-replaygain-which-is-not-lossless[=<specification>]

option using the binaries from Rarewares...does it not come up with --explain or --help?

C
Go to the top of the page
+Quote Post
jcoalson
post Jan 12 2004, 23:50
Post #17


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



QUOTE (atici @ Jan 9 2004, 12:23 PM)
Hmm does this new version feature any size improvements, i.e. smaller filesize for same quality?

quality is always "lossless" but there are no compression or major speed improvements.

QUOTE (Cerebus @ Jan 12 2004, 05:42 PM)
john33:

I don't see the
--apply-replaygain-which-is-not-lossless[=<specification>]

option using the binaries from Rarewares...does it not come up with --explain or --help?

--apply-replaygain-which-is-not-lossless is not documented and won't show up in the help. if you want to know if it's there or not, try --apply-replaygain-which-is-not-lossless=dfjsdkfjsl and see if it prints an error about the specification, or unknown option.

Josh
Go to the top of the page
+Quote Post
Cerebus
post Jan 13 2004, 14:04
Post #18





Group: Members
Posts: 158
Joined: 31-October 02
Member No.: 3664



Is there any way that we can get this added to FLACDrop, in the same sort of fashion that Musedrop has the 'custom decoding' option? I don't know how to get a hold of the author (Layer3Maniac).
Go to the top of the page
+Quote Post
MrBubble1337
post Dec 31 2013, 16:55
Post #19





Group: Members
Posts: 1
Joined: 31-December 13
Member No.: 113681



QUOTE (jcoalson @ Jan 12 2004, 23:50) *
QUOTE (atici @ Jan 9 2004, 12:23 PM)
Hmm does this new version feature any size improvements, i.e. smaller filesize for same quality?

quality is always "lossless" but there are no compression or major speed improvements.

QUOTE (Cerebus @ Jan 12 2004, 05:42 PM)
john33:

I don't see the
--apply-replaygain-which-is-not-lossless[=<specification>]

option using the binaries from Rarewares...does it not come up with --explain or --help?

--apply-replaygain-which-is-not-lossless is not documented and won't show up in the help. if you want to know if it's there or not, try --apply-replaygain-which-is-not-lossless=dfjsdkfjsl and see if it prints an error about the specification, or unknown option.

Josh


God damn it, I'd been debugging a weird issue with FLAC where I hadn't been able to find documentation for an option in the --help MAN, never even thought to check whether applying the option directly would throw an error for the option specification or an unknown option error. Feel like a moron but that post just saved me a hell of a lot of time and confusion - cheers! Looks like a decent forum too, think I might stick around smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 14:27