Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the volume via commandline on recent VLC versions?

I've been trying, without success, to set the volume in VLC [2.2.1] via terminal, on Ubuntu.

The parameter --volume doesn't exist anymore (Warning: option --volume no longer exists), and I can't find anything in the help which has "volume" in it.

The documentation (https://wiki.videolan.org/Documentation:Advanced_Use_of_VLC/) is outdated, as it still has the --volume option in it.

Is it still possible?

like image 258
Marcus Avatar asked Jan 27 '16 14:01

Marcus


People also ask

How do I add command line to VLC?

You can also directly press Windows Key + R shortcut, type cmd in the dialog box that opens and press Enter or OK. The environment variables should be updated to include the VLC directory. It is then possible to run the commands easily.

How is VLC louder?

To change the volume setting, press Ctrl + P and then select all in the bottom left corner, as indicated in the screenshot. Then expand the Interface tree and further expand Main interfaces . Now select Qt and change the default value of Maximum Volume displayed from 125 to 200 or 300 .


3 Answers

According to the documentation, --volume no longer exists but --volume-step and --gain may be used:

--gain <float> audio gain (between 0 and 8)

--volume-step <float> audio output volume step (between 1 and 256)

Note that gain is independent of volume: If you increase it, sound will be louder even though the volume setting will not change.

like image 69
Philipp Moers Avatar answered Oct 19 '22 04:10

Philipp Moers


The original question was about Ubuntu but I just thought I'd mention in case someone using Windows comes across this question. This is the only setting that seems to work for me on Windows.

--mmdevice-volume=<float [0.000000 .. 1.250000]> 

e.g.

--mmdevice-volume=0.5

Found via the exhaustive help list, also mentioned here

like image 25
Josh McGee Avatar answered Oct 19 '22 03:10

Josh McGee


Tested on MacOS using VLC 3

/Applications/VLC.app/Contents/MacOS/VLC --auhal-volume=256

Will start VLC with the set volume of 256 which corresponds to 100% of current system volume.

Can be set to 512.

like image 37
mjs Avatar answered Oct 19 '22 04:10

mjs