在 Ubuntu 上安裝 VLC 媒體播放器


VLC 是一款免費且開源的跨平臺多媒體播放器和框架,它可以播放大多數多媒體檔案,以及 DVD、音訊 CD、VCD 和各種流媒體協議。本文介紹瞭如何在 Ubuntu 上安裝 VLC 媒體播放器。

要安裝 VLC 媒體播放器,請開啟終端並執行以下命令:

$ sudo add-apt-repository ppa:videolan/stable-daily

示例輸出應如下所示:

此 PPA 包含來自最新 VLC 維護分支的每日構建版本。

此 PPA 用於測試構建 VLC 的新版本和即將釋出的點版本,這些版本可以透過穩定的發行版更新 (SRU) 或安全更新進入 Ubuntu。您在此 PPA 中找不到主要版本的更新(例如,從 2.1.x 到 2.2.x 的更新)。

更多資訊:https://launchpad.net/~videolan/+archive/ubuntu/stable-daily 按 [ENTER] 繼續或按 ctrl-c 取消新增。

gpg: keyring `/tmp/tmpv4ykq3g6/secring.gpg' created
gpg: keyring `/tmp/tmpv4ykq3g6/pubring.gpg' created
gpg: requesting key 801DF724 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpv4ykq3g6/trustdb.gpg: trustdb created
gpg: key 801DF724: public key "Launchpad Daily Build of master branch" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

要更新儲存庫,請使用以下命令:

$sudo apt-get update

要安裝 VLC,請使用以下命令:

$ sudo apt-get install vlc

示例輸出應如下所示:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
   i965-va-driver liba52-0.7.4 libaacs0 libass5 libavcodec-ffmpeg56
   libavformat-ffmpeg56 libavutil-ffmpeg54 libbasicusageenvironment1 libbdplus0
   libbluray1 libcddb2 libchromaprint0 libcrystalhd3 libdc1394-22 libdca0
   libdirectfb-1.2-9 libdvbpsi10 libdvdnav4 libdvdread4 libebml4v5 libfaad2
   libgles1-mesa libgles2-mesa libgme0 libgroupsock8 libgsm1 libiso9660-8
   libkate1 liblivemedia50 libmad0 libmatroska6v5 libmodplug1 libmp3lame0
   libmpcdec6 libmpeg2-4 libopenjpeg5 libpostproc-ffmpeg53 libproxy-tools
   libresid-builder0c2a libschroedinger-1.0-0 libsdl-image1.2 libsdl1.2debian
   libshine3 libsidplay2v5 libsnappy1v5 libsoxr0 libssh-gcrypt-4 libssh2-1
   libswresample-ffmpeg1 libswscale-ffmpeg3 libtwolame0 libupnp6
...............................................................................

要開啟 VLC,請使用以下命令:

$ vlc

示例輸出應如下所示:

VLC media player 2.2.5 Weatherwax (revision 2.2.2+git20170101+r58918+56~ubuntu16.04.1)
[0000000002586148] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.

它將開啟 VLC 播放器,如下所示:


要獲取有關 VLC 的更多資訊,請使用以下命令:

$ vlc --help

示例輸出應如下所示:

VLC media player 2.2.5 Weatherwax (revision 2.2.2+git20170101+r58918+56~ubuntu16.04.1)
Usage: vlc [options] [stream] ...
You can specify multiple streams on the commandline.
They will be enqueued in the playlist.
The first item specified will be played first.

Options-styles:
   --option A global option that is set for the duration of the program.
   -option A single letter version of a global --option.
   :option An option that only applies to the stream directly before it
         and that overrides previous settings.

Stream MRL syntax:
   [[access][/demux]://]URL[#[title][:chapter][-[title][:chapter]]]
   [:option=value ...]

   Many of the global --options can also be used as MRL specific :options.
   Multiple :option=value pairs can be specified.

URL syntax:
   file:///path/file Plain media file
   http://host[:port]/file HTTP URL
...................................................................................

閱讀本文後,您將能夠了解如何在 Ubuntu 上安裝 VLC 媒體播放器。我們將推出更多基於 Linux 的技巧和提示。繼續閱讀!

更新於:2020年1月20日

126 次瀏覽

開啟您的職業生涯

透過完成課程獲得認證

開始學習
廣告
© . All rights reserved.