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

て烟熏妆下的殇ゞ 提交于 2020-01-24 02:55:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!