学习如何在 Ubuntu 中安装 SMPlayer


SMPlayer 是一款适用于 Windows 和 Linux 的免费媒体播放器,内置编解码器,还可以播放 YouTube 视频,搜索和下载字幕,并包含其他功能,例如缩略图生成器以及音频和视频过滤器。

功能

  • 支持 YouTube。您可以搜索、播放和下载 YouTube 视频
  • 提供许多视频和音频过滤器
  • 缩略图生成器
  • 视频均衡器
  • 它有很多皮肤/主题
  • 它支持多种速度播放
  • 它支持音频和字幕延迟调整

安装 SMPlayer

要安装 SMPlayer,请在 Ubuntu 上添加以下 PPA:

$sudo add-apt-repository ppa:rvm/smplayer

示例输出应如下所示:

Packages for SMPlayer.
To install SMPlayer from this PPA, run these commands on a terminal:
sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update
sudo apt-get install smplayer smtube smplayer-themes smplayer-skins
More info: https://launchpad.net/~rvm/+archive/ubuntu/smplayer
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpeab9bvoh/secring.gpg' created
gpg: keyring `/tmp/tmpeab9bvoh/pubring.gpg' created
gpg: requesting key E4A4F4F4 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpeab9bvoh/trustdb.gpg: trustdb created
gpg: key E4A4F4F4: public key "Launchpad PPA named smplayer for rvm" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

现在,使用以下命令更新软件包:

$sudo apt-get update

示例输出应如下所示:

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:5 http://ppa.launchpad.net/rvm/smplayer/ubuntu xenial InRelease [17.5 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:9 http://ppa.launchpad.net/rvm/smplayer/ubuntu xenial/main amd64 Packages [1,532 B]
Get:10 http://ppa.launchpad.net/rvm/smplayer/ubuntu xenial/main i386 Packages [1,532 B]
Get:11 http://ppa.launchpad.net/rvm/smplayer/ubuntu xenial/main Translation-en [5,100 B]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [68.2 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [302 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [43.1 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [19.4 kB]
.................................................................................................

要安装带有皮肤的 SMplayer,请使用以下命令:

$ sudo apt-get install smplayer smplayer-themes smplayer-skins

示例输出应如下所示:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
esound-common libaudiofile1 libdirectfb-1.2-9 libenca0 libesd0 libgif7
libqt4-opengl libqtwebkit4 libsdl1.2debian libvorbisidec1 mplayer smtube
Suggested packages:
pulseaudio-esound-compat mplayer-doc netselect | fping
The following NEW packages will be installed:
esound-common libaudiofile1 libdirectfb-1.2-9 libenca0 libesd0 libgif7
libqt4-opengl libqtwebkit4 libsdl1.2debian libvorbisidec1 mplayer smplayer
smplayer-skins smplayer-themes smtube
0 upgraded, 15 newly installed, 0 to remove and 284 not upgraded.
Need to get 18.9 MB of archives.
After this operation, 66.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
.................................................................................

要打开 SMplayer,请使用以下命令:

$ smplayer

示例输出应如下所示:

Smp Player

要获取有关 SMplayer 的更多信息,请使用以下命令:

$ smplayer --help

示例输出应如下所示:

This is SMPlayer v. 16.11.0 (revision 8242) running on Linux
Usage: smplayer [-minigui] [-defaultgui] [-mpcgui] [-config-path directory]
[-send-action action_name] [-actions action_list] [-close-at-end]
[-no-close-at-end] [-fullscreen] [-no-fullscreen] [-ontop] [-no-ontop] [-sub
subtitle_file] [-pos x y] [-size width height] [-add-to-playlist]
[-help|--help|-h|-?] [media] [media]...

-minigui: opens the mini gui instead of the default one.
-mpcgui: opens the mpc gui.
-defaultgui: opens the default gui.
-skingui: opens the gui with support for skins.
-config-path: specifies the directory where smplayer will store its
configuration files (smplayer.ini, smplayer_files.ini...)
-send-action: tries to make a connection to another running instance and
send to it the specified action. Example: -send-action
pause The rest of options (if any) will be ignored and the
application will exit. It will return 0 on success or -1 on
failure.
-actions: action_list is a list of actions separated by spaces. The
actions will be executed just after loading the file (if
any) in the same order you entered. For checkable actions
you can pass true or false as parameter. Example: -actions
"fullscreen compact true". Quotes are necessary in case you
pass more than one action.
-close-at-end: the main window will be closed when the file/playlist
finishes.
-no-close-at-end: the main window won't be closed when the file/playlist
finishes.
-fullscreen: the video will be played in fullscreen mode.
-no-fullscreen: the video will be played in window mode.
-ontop: sets the stay on top option to always.
-no-ontop: sets the stay on top option to never.
-sub: specifies the subtitle file to be loaded for the first
video.
-media-title: sets the media title for the first video.
-pos: specifies the coordinates where the main window will be
displayed.
-size: specifies the size of the main window.
-help: will show this message and then will exit.
-add-to-playlist: if there's another instance running, the media will be
added to that instance's playlist. If there's no other
instance, this option will be ignored and the files will be
opened in a new instance.
media: 'media' is any kind of file that SMPlayer can open. It can
be a local file, a DVD (e.g. dvd://1), an Internet stream
(e.g. mms://....) or a local playlist in format m3u or pls.

阅读完本文后,您将能够了解如何在 Ubuntu 中安装 SMPlayer。在我们的下一篇文章中,我们将介绍更多基于 Linux 的技巧和提示。请继续关注!

来源:SMPlayer 门户网站

更新于:2020-01-22

507 次浏览

开启你的 职业生涯

通过完成课程获得认证

开始学习
广告
© . All rights reserved.