使用VLC的虚拟界面时如何防止显示控制台 [英] How to prevent console from being displayed when using VLC's dummy interface
问题描述
我正在尝试从Node.js服务器脚本以虚拟模式启动VLC,但是使用 child_process.spawn('vlc',['-I dummy'])$使用Windows时,c $ c>会为VLC的输出生成一个新的控制台窗口。有没有办法防止这种情况发生,并通过stdout ReadableStream强制所有stdout,这样就不会出现弹出窗口?
I'm trying to launch VLC in "dummy" mode from a Node.js server script, however using child_process.spawn('vlc',['-I dummy'])
produces a new console window for VLC's output when using Windows. Is there a way to prevent this happening and force all stdout though the stdout ReadableStream so no "popup windows" occur?
EDIT :此问题与node.js无关,这只是我所说的方式以及VLC的行为。解决方案如下。
EDIT: This problem had nothing to do with node.js, it was simply the way I was calling it and VLC's behaviour. The solution is below.
谢谢。
推荐答案
我发现了一个特定问题的解决方案:
I found a solution for the specific problem:
VLC有一个命令行选项可以隐藏此窗口-*-quiet其中*是接口。
VLC has a command line option to surpress this window --*-quiet where * is the interface.
例如对于虚拟界面,请使用
e.g. For the dummy interface, use
child_process.spawn('vlc',['-I dummy','--dummy-quiet'])
对于rc接口,请使用
child_process.spawn('vlc',['-I rc','--rc-quiet'])
这篇关于使用VLC的虚拟界面时如何防止显示控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!