[Vorbis-dev] ogg123 volume?

Barton Hodges barton
Thu Jun 17 08:40:13 PDT 2004


vorbis-dev-bounces at xiph.org wrote:
>> I need to adjust the output volume from ogg123 the same way that
>> mpg123 has the "-f n  change scalefactor [32768]" option.
>
> Well, back in the day, I was thinking about adding replaygain
support
> to ogg123 (though someone has since beat me to it), and here's what
I
> was told by Stan Seibert on irc:

Thanks to John Morton, this is already available in a patch.

> http://savannah.nongnu.org/cgi-bin/viewcvs/vgplay/vgplay/
>
> Pull the vorbis-tools patch from CVS, apply to your vorbis-tools
> 1.0.1 tree and build as usual. I'm pretty sure I updated the man
page
> in the patch, but the command line help does mention the options.
> ... run automake before the usual ./configure && make ...

You'll need to add fade-in/out support yourself if needed.  Something
like this in oggvorbis_format.c will do it:

After: vgplay_new_track_vc(priv->vgstate, priv->vc);
Add: vgplay_fade_in(priv->vgstate, .1, priv->vgstate->fade_time);

Then, to fade-in to a reduced volume, call ogg123 like this:
ogg123 --limiter scale_hard --fade-time 5 --preamp -10 /filename.ogg

Barton




More information about the Vorbis-dev mailing list