在 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 的技巧和提示。继续阅读!
广告