通过命令行/bash的VLC设置音量 [英] VLC setting volume from command line/bash
问题描述
冒着在这里感觉真的很愚蠢的风险,但是我似乎无法从命令行设置VLC的音量?
With the risk of feeling really really stupid here, but I seem not to be able to set the volume of VLC from command line??
vlc file.mp3 --vol 0
我已经阅读了手册页以及Google手册,但以上内容无法正常工作.还尝试了--volume 0,-vol 0,-volume 0(以及将volume选项放在文件名之前).
I have read the man pages as well as googled but I can not get the above to work. Also tried --volume 0, -vol 0, -volume 0 (as well as putting the volume option before the file name).
无论如何,VLC从其预设音量开始.在Ubuntu上使用VLC 1.1.5.(我打算在bash脚本中使用该行,因此无法使用VLC GUI)/J
No matter, VLC starts with its preset volume. Using VLC 1.1.5 on Ubuntu. (I intend to use the line in a bash script therefore I can not use the VLC GUI) /J
更新
我尝试了不同的值.我现在非常详细地运行vlc.这部分看起来有点可疑(但是我不知道该怎么解释!):
I have tried different values. I now run vlc with very verbose. This section looks a bit suspicious (but I have no idea how to interpret it!):
[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)
推荐答案
似乎是一个已知的错误.音量选项没有任何作用
Seems to be a known bug. Volume option doesn't have any effect
这篇关于通过命令行/bash的VLC设置音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!