how to get the current output volume by vlc

This forum is about all development around libVLC.
ai2soft
New Cone
New Cone
Posts: 2
Joined: 20 Jul 2023 04:46

how to get the current output volume by vlc

Postby ai2soft » 20 Jul 2023 04:57

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 ?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to get the current output volume by vlc

Postby Rémi Denis-Courmont » 20 Jul 2023 08:57

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ai2soft
New Cone
New Cone
Posts: 2
Joined: 20 Jul 2023 04:46

Re: how to get the current output volume by vlc

Postby ai2soft » 20 Jul 2023 10:18

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 ?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests