这里有感觉真的很愚蠢的风险,但我似乎无法从命令行设置VLC的音量?
vlc file.mp3 --vol 0
我已阅读手册页以及谷歌搜索但我无法完成上述工作。还尝试了--volume 0,-vol 0,-volume 0(以及在文件名之前放置音量选项)。
无论如何,VLC以其预设音量开始。在Ubuntu上使用VLC 1.1.5。 (我打算在bash脚本中使用该行,因此我无法使用VLC GUI)/ J.
更新
我尝试过不同的价值观。我现在运行vlc非常详细。这部分看起来有点可疑(但我不知道如何解释它!):
[0xb7108d14] main audio output warning: PTS is out of range (-9483), dropping buffer [0xb7108d14] main audio output warning: PTS is out of range (-35533), dropping buffer [0x94384ac] mpgatofixed32 audio filter debug: libmad error: bad main_data_begin pointer [0xb7108d14] pulse audio output debug: Pulse stream started [0xb7108d14] main audio output warning: output date isn't PTS date, requesting resampling (86708) Warning: call to rand() [0xb7108d14] main audio output warning: buffer is 86706 late, triggering upsampling [0xb7104654] qt4 interface debug: IM: Setting an input [0xb7108d14] main audio output warning: output date isn't PTS date, requesting resampling (44448) [0xb7108d14] main audio output warning: audio drift is too big (130928), dropping buffer [0x94384ac] mpgatofixed32 audio filter debug: libmad error: bad main_data_begin pointer [0xb7108d14] main audio output debug: audio output is starving (20040), playing silence [0xb7108d14] main audio output warning: resampling stopped after 16895748 usec (drift: 19049)
似乎是一个已知的bug。 Volume option doesn't have any effect
- --volume
<integer>
设置音频输出电平(介于0和1024之间)。也仅适用于本地播放(如--noaudio)。
你有没有尝试使用0以外的任何其他值?那些其他文件(来自与你尝试的文件不同的来源)呢?
尝试使用非常详细(-vv
)选项,看看它是否告诉你任何事情。
对于之后遇到的任何人,我必须禁用音频设置下的“保存音频”选项才能使用。我还必须使用其他音频设置之一。我的是:
--mmdevice-volume=<float [0.000000 .. 1.250000]>
其他选择是
--directx-volume=<float [0.000000 .. 2.000000]>
--waveout-volume=<float [0.000000 .. 2.000000]>
继Jason Wisely's answer之后,我在VLC版本3.0.6上使用了以下内容,它在VLC上以35%的音量播放了一首歌。该设备真的很重要,因为waveout的directx都不适合我。
start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --mmdevice-volume=0.35 "F:\Beastmode.mp3"
但是,这有点没有意义,因为无论如何,您的系统音量将决定表观音量。所以为了控制系统卷,我下载了nircmd并将其放入system32。 nircmd使用65535作为100%音量,因此50%音量为65535÷2 = 32767.5,并且我舍入到32767.之后,以下是我在启动时保持14%系统音量和80%VLC音量的一致音量的方法VLC:
nircmd.exe setsysvolume 9200
start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --mmdevice-volume=0.35 "F:\Beastmode.mp3"