Re: Extension to libvorbis for lossless volume changes
Nicolas George <[email protected]> Thu, 28 May 2015 19:57:08 +0200
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0430296236== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le sextidi 26 flor=E9al, an CCXXIII, [email protected] a =E9crit=A0: > I added a new function to libvorbis that allows lossless changes of the= =20 > volume to an vorbis_block. This can help to get reasonable loudness on=20 > hardware players that do not support the Replay Gain tags. >=20 > int vorbis_gainadj(vorbis_block *vb, ogg_packet *op, float* dbgain); > dbgain contains the relative adjustment for each channel. >=20 > The trick is quite simple. I adjust the first 2 floor values for each=20 > channel if they are nonzero. Of course, it only works with floor type 1= =20 > and returns an error with floor 0. But I have never seen any files with= =20 > floor 0. > It is quite straight forward to extend vorbisgain with this function to= =20 > modify the gain values to fit the loudness coarsely. >=20 > Is there any interest to add this function to the libvorbis code? > And if so, how to do this? I can not speak for the Xiph people, but I suggest you post the code here (with appropriate licence), assuming it is not too big. That way, it will not be lost for the community, even later if you loose interest. Regards, --=20 Nicolas George --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVZ1b0AAoJEHGVSyPKTcYMeDIP/ib/ts7xG02qHOp0wj0sNjtO FDwy+bPxxU0QWZeNYp6hguxQRSmREAoyeTYzsBE4msafVC2ldQz19QuHjUOrmZpe ieKZth6cv7ImMZu8tlLIrpScJm8yPek89VqdEDjY0FrPQB5G5nuoAdd8Xqbpu8Az 21dumPT5JloyhOt0va55wie+5Cb4Cef139q7liAVJqUMVWoBaYANyLHyvbpcBzTE Bl/FjT3smLCKMutwjcV929RGW6FsPZyUhy10sHH06ER3blQSZGZzW115HCQPyS7B c1c8BBrHtkOG14FTTtE83yWCApbvoa5bCsptaRVWp/RkPP6MSWtyQL+c8bPOe+li mf1vClNlMQExW8akjpDLLFv3ld54PQLXntQAH671xPPXirut6wuPQCxWDRpQCLtX piJ0Dvy+qV9z7x2bCHt9q+bzm3+TotFAVtUEZlbofjYk3NvK120Q9GZTqE6kVVLY oSMSCD1Fh4Zk1cBx4JqQSod4DZKz6Ef0Q0QYUbi0yUkwcjKtKWhwPtKRaecFv79g wunPrSJJkzYU7jRs4p+fav/4Ipqx3Uq1spfT8Pzw6+mfv8sqieqAPkjsyQH18a2r xLQCRdIfT7FPECV4IXQ6Epn+SNz90H2QL7ZUEvIDrWOC+MtryK2S/D85mzARprog Km/0vFCPIzzWJ89NDID0 =79r0 -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq-- --===============0430296236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Vorbis-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/vorbis-dev --===============0430296236==--