Help - Search - Members - Calendar
Full Version: Replaygain for Ogg Vorbis
Hydrogenaudio Forums > Lossy Audio Compression > Ogg Vorbis > Ogg Vorbis - General
Landus
I've gone though various threads and coming up with no luck, so I'm asking here.

Is there a equilvant for MP3Gain for Ogg Vorbis that uses Replaygain tags.

And please, no one say VorbisGain. I tried using it and sets my files to 89.0 dB and won't let me choose my own value.
jarsonic
If you use foobar2000, you can replaygain vorbis files and set your dB target in the preferences.
pepoluan
Well, the standard of ReplayGain (yes, it is a standard) specifies the reference loudness of 89 dB.
HotshotGG
QUOTE
Is there a equilvant for MP3Gain for Ogg Vorbis that uses Replaygain tags.


No, MP3 modifies the global gain on a scale factor band basis in 1.5 dB steps. With VorbisGain the tags need to be applied to the metadata header. I don't think you can actually adjust the scale factor bands either. Yes, the ReplayGain specification is 89 dB SPL. wink.gif

QUOTE
And please, no one say VorbisGain. I tried using it and sets my files to 89.0 dB and won't let me choose my own value.


Are you typing in the right commands? I don't think a lot of people actually understand the differece between the track gain and album gain. The Album Gain is usually a consist reference level used throughout the album, while the track gain can vary. The noise-floor is relative to 89 dB.
Andavari
What target dB value are you trying to achieve?
Although not completely lossless there is WaveGain Frontend for WaveGain which can be used on the extracted .wav audio files before encoding. In it you can select and Extra Gain dB value such as 1.5, 2.0, 3.0, etc., although I don't recommend going that route.
Landus
What I'd usually do is this.

Convert to mp3, use MP3Gain and set the decible level to 94.5 for each song, remove the tags and convert to Ogg Vorbis. This way, the song is physically changed and stays at 94.5 when converted to Ogg Vorbis

Obviously, this destroys alot of the original quality of the song, so I'm asking if there's a way to do this.

Put CD in CD Drive. Rip with EAC that outputs the ripped song to Ogg Vorbis. Run a program that adds Replaygain tags so each Ogg Vorbis file is 94.5 dB or around that value.

Alex B
QUOTE(Landus @ Jul 29 2006, 22:35) *

What I'd usually do is this.

Convert to mp3, use MP3Gain and set the decible level to 94.5 for each song, remove the tags and convert to Ogg Vorbis. This way, the song is physically changed and stays at 94.5 when converted to Ogg Vorbis

Obviously, this destroys alot of the original quality of the song, so I'm asking if there's a way to do this.

Put CD in CD Drive. Rip with EAC that outputs the ripped song to Ogg Vorbis. Run a program that adds Replaygain tags so each Ogg Vorbis file is 94.5 dB or around that value.

I would suggest the following:

Put a CD in the CD Drive. Rip with EAC that outputs the ripped tracks in FLAC format at q0 (possibly the fastest lossless format). Run foobar2000's analyzer that adds the Replay Gain tags. Use foobar2000 for converting to Ogg Vorbis with Replay Gain enabled. If you use a +5.5 dB correction each Ogg Vorbis file will be about 94.5 dB.

Be aware that some tracks may produce digital clipping if the original calculated volume was below 94.5 dB or if the tracks contain relatively high uncompressed dynamic range. For example, many classical works clip already at 89 dB (the originally proposed 83 dB reference would be safer for Classical).
Acid8000
Well at least enable the Advanced Limiter to preventing it sounding too bad in that case. Of course with certain very dynamic tracks it will still sound pretty bad. Enable the "Use DSP" option if you do.
Landus
This is going to probably going to make alot of people laugh, but what is foorbar2000?
Landus
Actually, I've got to ask another question.

Clipping only happens when the original volume of a song is below the dB range that a song is changed to.

I set most of my songs at 94.5. I have yet to have a clipping problem, unless I max out the volume on both the speakers, Winamp, and my subwoofer.

Now I'm hearing that I'll be having clipping problems? Is there a volume range that I can set everything to so I won't have clipping problems?

Heck, MP3Gain tells you if there's going to be clipping and an option to change the dB volume so there won't be clipping.

Why does changing the gain in Ogg Vorbis be so difficult?

Oh. And what's the difference between track gain and album gain? Searched all through google and couldn't come up with a straight answer.
kjoonlee
http://en.wikipedia.org/wiki/foobar2000
http://www.foobar2000.org/

---

Why is it difficult for Vorbis? It's normal for it to be difficult; MP3 and AAC are kind of unusual that way.

It's possible for Vorbis, according to some people, but it hasn't been done yet.

---

http://en.wikipedia.org/wiki/Replay_Gain
http://replaygain.hydrogenaudio.org/

Track gain was previously known as radio mode, and album gain was previously known as audiophile mode.
SebastianG
QUOTE(Landus @ Jul 30 2006, 05:20) *

Why does changing the gain in Ogg Vorbis be so difficult?

Because you'd have to partially decode and recode the stream. This process might result in differently sized packets that need to be repackaged into Ogg pages. MP3gain only needs to ajust very small portions of MP3 frames. This is fairly easy to do (frame length in bytes is retained exactly)

QUOTE(Landus @ Jul 30 2006, 05:20) *

Oh. And what's the difference between track gain and album gain? Searched all through google and couldn't come up with a straight answer.

Try harder.
Landus
Alright. Found out the answer on the Wiki.

Now, since it's obvious that I don't understand Replaygain as much as everyone else, is it wise to be setting everything to 94.5 dB or should I just let VorbisGain set everything to 89.0?

Or is it better to stop using Winamp and switch to foobar2000 and use the Replaygain capabilities in it?
slks
My two cents:

I've used foobar2000 to put Replaygain on all of my music and I've never had any of the problems talked about here. And I haven't had to juggle multiple programs to do it.

You might want to give that a try. Make sure to use "scan selection as an album" to get both values.
Landus
Too late. I scanned for Per-File Track gain.

Took over two hours to scan and it's still applying the changes right now.

Though, it probably took this long because I'm making the changes on the Ogg Vorbis songs on my DAP first. I don't have the jumper set to use the back USB ports, which are USB 2.0 compatible.

980 songs to start. 2h 2m 18s with an average speed of 36.41x
pepoluan
Naah, it's okay. Cancel it, and scan again, this time scanning for album. No problem.

Hey what DAP are you using?
Landus
iRiver h340 with Rockbox firmware.

And why scan for album? If I understand correctly, choosing track gain is the better option.
Kirby54925
It scans album gain as well as track gain, saving you from having to put in album gain should you wish to use it in the future. Besides, in Foobar2000, you can choose whether to implement album gain or track gain.
pepoluan
QUOTE(Landus @ Aug 1 2006, 02:18) *
iRiver h340 with Rockbox firmware.

And why scan for album? If I understand correctly, choosing track gain is the better option.
Uh, depends on your needs of course. For individual tracks, track gain is best. But if the tracks are gapless, i.e. ripped from classical CD or a non-stop 60-minute trancemix, you want to preserve loudness dynamics between tracks, so you use album gain.

Landus
For CD's like that, I'll remember that.

The CD that I'm ripping is a heavy metal band called Dragonforce. I'll have to read up on the definition of gapless to make sure I understand it correctly, but I'm pretty sure that if I understand it right, for this CD, choosing track gain is the best choice.

Yeah, I am getting the right idea for gapless. I've got a Pink Floyd CD that's gapless. The CD I'm ripping isn't gapless.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.