Re: 100% volume isn't full volume

The Wanderer <[email protected]> Fri, 16 Aug 2024 17:13:26 -0400
Newsgroups gmane.comp.video.mplayer.user
Organization This space intentionally left blank.
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============2677907598885999470==
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="9K8fkRbA7d2n2RoUpgAsRpwt7vnEint8m"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--9K8fkRbA7d2n2RoUpgAsRpwt7vnEint8m
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 2024-08-16 at 10:51, arthurpeabody wrote:

> mplayer only lets me raise the volume to 100%; pavucontrol lets me
> raise it to 153%.  For some quiet inputs I want more than 100%.
> Oddly, pactl doesn't let me raise it above 100.  I  don't understand
> what's going on.  pactl reports only 1 available sink.

IIRC, MPlayer has two modes for volume control. One of them is activated
by the '-softvol' and/or '-af volume=3D' options (it's been long enough
that I don't remember all the details); it implements volume
amplification inside MPlayer. With that mode, changes to the volume of
playback affect only MPlayer, and do not affect other programs - but if
you change the volume while a file is playing, that change will be lost
when the program exits (and possibly even just when the file is done
playing).

The other connects the MPlayer volume-control commands to the (a?)
system mixer device, which has its own volume setting. With that mode,
changing the volume from within MPlayer should affect the volume for
*all* programs, or at least all programs which are using that same
mixer.


If you're using the latter mode, I'm fairly sure any maximum volume
limits are the limits of the audio-output method you're using. I don't
think there's anything to be done to affect that, at least not on
MPlayer's side.

If you're using the former method, there are a few settings you might
want to look at.

'-softvol-max' only applies when using the former method, and lets you
explicitly specify how high the multiplier that MPlayer's volume slider
applies to the default volume level can go. You can set it anywhere from
10 (a multiplier of 0.1 - i.e., you can't raise the volume above 10% of
its default) to 10000 (a multiplier of 100 - i.e., you can raise the
volume to 100x its default).

'-volume' lets you specify where, in the volume slider, the volume
amplification will start. If you set it to 0, the volume will always
start effectively muted; if you set it to 100, the volume will always
start as high as possible (whether that's controlled by the system audio
mixer, or by the '-softvol-max' setting, or by something else).

'-af volume=3D<gain>[:<softclip>]' lets you explicitly enable software
volume control, and explicitly specify how many decibels of gain to
apply to the default volume level. <gain> is the decibel value to apply,
and <softclip> is either 1 (try to reduce 'noise' at high volume with
some speakers) or 0 (don't try to do that, to avoid distortion).

How exactly '-softvol' and '-af volume=3D' interact I'm not certain
offhand. I've been running for... well over a decade, albeit not two...
with 'softvol=3Dyes' and 'softvol-max=3D350' set in my config file, and s=
o
don't have a lot of experience with varying these settings.

The above is taken largely from a combination of distant recollections,
and reading the man page (with a search for 'volume').

--=20
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw


--9K8fkRbA7d2n2RoUpgAsRpwt7vnEint8m
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAma/wPYACgkQBKk1jTQo
MmsmzQ/+OJJWyEt8TSq1G770t+oUIOtaP6+J7WOy4VyRD5VoHskiAQjkcWQk2Pqj
k19/5pxuQMqh+2JlPl8z1Hq2bkaXMeQdOaJluoZ4oKG2h7gvrCUvCY/8QZr12cvd
PuwMwFjCTLkvZ0CdmkD1eaa+5smcwY67NJs+zRktEAjvNYFBFFjA1Nq/YcabRFi9
Purjml0rKFheI/70yG0K1oeyFrUYo1mRCQyh1+wxWbjEjOZQ6+HFkSsWA7cwbmRZ
1Hkv/yfemgIzr/tcL7RwWKagconOUjCN/LW/zFwHmcb36NZv6afGIcWRmqmKDEuC
6ekpXAbOxeM2mrvD8QJkemDkSiodX86Ri6/taui4ws0EaRFdN2d+WxaZm7RTQI0U
2r22aF/AiHcz1pNREezWL41/+Ki6GV2ehbuHIjLV5xE6wQ9BLgR2juCo8GURfsoH
Crd2lg7GNo7crNQd+hWignesDw9b1Md4CcIosPFBWutsrQVoD8B6xAd/AQZ3XObr
QQCxy0cOkyEVM4RpqMfFeHpIEGrPQbshiqAof2oQHXhPjvgJ5L5Iv4GJSdzqMUG0
IkNOgG9lWw7U5OaimYgeHW15FPvqvPQDZx0cLopwTLmBMwkP+BWFYQqyRt9r+WGc
jB9gFStViHjdYYZilRxEw0AADCE/ipdogHTxLs2ZB8whG6jVxQU=
=HuWF
-----END PGP SIGNATURE-----

--9K8fkRbA7d2n2RoUpgAsRpwt7vnEint8m--

--===============2677907598885999470==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

--===============2677907598885999470==--