问题
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?
回答1:
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.
回答2:
Nothing showed up in the long help vlc --longhelp --advanced | grep vol
.
If only there was a way to execute some lua on launch, this could do
vlc.volume.set(256)
but I tried to find a way to do that and failed. Their doc is really awful for lua extensions and I don't think this is possible...
来源:https://stackoverflow.com/questions/35039444/how-to-set-the-volume-via-commandline-on-recent-vlc-versions