by Devin Yang

建立於: 4年前 ( 更新: 4年前 )

我有些Youtube下載下來的音檔想要在背景播放,我知道如何做啦?
都有命令列了,我要做個前端播放棄不難啦...:p
mpv差不多通殺了,播mp3也沒問題。

一、首先要下載Termux終端機軟體
二、安裝mpv指令(apt install mpv)
$ mpv --help
Usage:   mpv [options] [url|path/]filename

Basic options:
 --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
 --no-audio        do not play sound
 --no-video        do not play video
 --fs              fullscreen playback
 --sub-file=<file> specify subtitle file to use
 --playlist=<file> specify playlist file

 --list-options    list all mpv options
 --h=<string>      print options which contain the given string in their name

$
三、播放時可以加參數,例如: --no-video
Android的下載目錄在/sdcard/Download
$ mpv --no-video 歌曲及歌詞.mp4
     Video --vid=1 (*) (h264 640x360 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
AO: [opensles] 44100Hz stereo 2ch float
A: 00:00:12 / 03:00:26 (0%) Cache: 4575s/150MB
就算壓電源關閉螢幕一樣有聲音..:)

Tags: linux termux

Devin Yang

文章內容無法一一說明,如果您有什麼不了解處,歡迎提問哦:)

No Comment

Post your comment

需要登入才可留言!

類似的文章


linux, cli

如何用find指令,找7天內變動過的檔案

如果我們變更過一些檔案,如何透過命令列找出來呢?

linux

ubuntu找不到add-apt-repository指令

ubuntu找不到add-apt-repository指令

linux

無密碼詢問,產生ssh金鑰對

有時進行自動設定時,需要產生ssh的金鑰對。 命令列無密碼詢問,產生ssh金鑰對。