Command-Line

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

  • July 4, 2013

當我在終端或控制台上vlccvlc在終端或控制台上播放音樂時,總是有這個*(如下所示)不間斷的輸出,阻止我通過按鍵發出命令ENTER。我想禁用它,我嘗試vlc -q在相當模式下使用 switch 啟動 vlc,但它只會擺脫*$$ $$**支架部分,其餘部分仍然存在並繼續增長。

那麼,如何做到vlc完全不顯示這些資訊,並且仍然能夠執行命令行命令,如,next等呢?play``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.

您應該能夠通過管道 stderr 擺脫庫的輸出

cvlc -q mymedia 2> /dev/null

至於命令,我不確定 vlc 是否接受來自普通標準輸入的命令,但聽起來 rc 介面可能是您正在尋找的。

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

引用自:https://unix.stackexchange.com/questions/81797