Page 1 of 1

how to get the current output volume by vlc

Posted: 20 Jul 2023 04:57
by ai2soft
hi , guys.
i'm new to vlc. i want to know how to get real-time output volume by vlc.
the reason is , when i play video from web pages , some videos' volume is very hight, but ,some's lower . thus , i think , maybe i can change the system speaker's value automatically by code.

can you give me any suggestions ?

Re: how to get the current output volume by vlc

Posted: 20 Jul 2023 08:57
by RĂ©mi Denis-Courmont
I have a feeling thay you're oversimplifying how this really works. You can write an audio filter plugin to monitor the volume but I doubt that's going to work how you hope.

Re: how to get the current output volume by vlc

Posted: 20 Jul 2023 10:18
by ai2soft
I have a feeling thay you're oversimplifying how this really works. You can write an audio filter plugin to monitor the volume but I doubt that's going to work how you hope.
maybe, the value range of system speaker is 0 .. 100.
if current playing videos' max volume is 60, then , i can set speaker value to 100. if max volume >= 80, then set speaker value to 80.
how about this ?