Linux Debian based distro
MPV 0.35.1
GOAL
Get MPV default volume bar OSD to display the volume value of ALSA mixer and not an internal MPV volume which it shows by default. Also to control ALSA volume up/down/mute toggle using hotkeys with MPV.
GENERAL INFORMATION
Linux audio can be a little confusing so I apologize if some of this does not make any sense.
From what I understand the ALSA mixer value is the main volume value in Linux.
In my “panel” I have “PulseAudio Panel Plugin” that shows up as speaker icon. It is set to “Audio Mixer: pavucontrol”
It appears that when I adjust the volume in this PulseAudio plugin that it is basically just adjusting the ALSA mixers volume value (opened ALSAMixer GUI which verifies this to be true).
PROGRESS SO FAR
So far I have been able to get ALSA volume to be controlled inside of MPV with hotkeys, but I have to turn off MPV volume bar OSD and use the PulseAudio notification volume meter.
As mentioned I would like to be able to turn off PulseAudio notification style volume meter (which you can do in the settings) and have ALSA value show in MPV volume OSD.
Side Note:
I do not think this is possible, but it would be great if I could somehow only disable the PulseAudio volume meter ONLY in MPV itself, but still have it show up for other programs, if anyone has any ideas how this could be achieve.
STUFF I HAVE TRIED
I tried most of this a while ago so hopefully makes sense.
I was able to get direct command to ALSA volume
run amixer set Master 5%+
run amixer set Master 5%-
run amixer set Master toggle (this is mute toggle)
I also tried using ao-volume shown in MPV manual, linked to hotkeys
0 add ao-volume 2
9 add ao-volume -2
m cycle ao-mute (this is mute toggle)
I do not think this worked, only difference I noticed was MPV volume OSD text said something like “AOVOLUME” instead of “VOLUME”
I also have notes about some “pactl” {SINK} commands but do not remember if I tried them, I think they are for a different PulseAudio Audio Mixer setting
Anyways if anyone has any ideas, please let me know.
Thank you to anyone who reads this.