學習如何在 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 次瀏覽

開啟你的 職業生涯

透過完成課程獲得認證

開始學習
廣告