如何在命令行模式下禁用VLC输出?

如何在命令行模式下禁用VLC输出?

vlc当我在终端或控制台上或其中播放音乐时,cvlc总是出现这样的情况(如下所示)不间断的输出阻止我通过ENTER按键发出命令。我想禁用它,我尝试vlc -q在安静模式下使用 switch 启动 vlc 但它只会摆脱[ ]支架部分,其余部分仍然保留并继续增长。

那么,如何才能vlc完全不显示这些信息,并且仍然能够执行诸如nextplay等命令行命令random呢?

VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d)
[0x255e418] dummy interface: using the dummy interface module...
libdvdnav: Using dvdnav version 4.2.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Attempting to use device /dev/sdb1 mounted on /run/media/easl/freyja for CSS authentication
libdvdread: Could not open input: Permission denied
libdvdread: Can't open /dev/sdb1 for reading
libdvdread: Device /dev/sdb1 inaccessible, CSS authentication not available.
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[0x24966b8] main playlist: stopping playback
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: MPEG::Header::parse() -- Invalid sample rate.

答案1

您应该能够通过管道 stderr 来摆脱库的输出

cvlc -q mymedia 2> /dev/null

至于命令,我不确定 vlc 是否接受来自普通标准输入的命令,但听起来 rc 接口可能就是您正在寻找的。

cvlc -q -Irc mymedia 2> /dev/null

相关内容