by Devin Yang

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

我有些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

載入.env的環境變數到系統上

載入.env的環境變數到系統上

linux

公鑰驗證之多個ssh的組態檔

我們使用ssh公鑰驗證時,通常會在~/.ssh/config加入相關設定。 如果說有些是公司用的或是家裡用的,是否可以使用多個config呢? 其實可以的,我們能git透過Include載入公司共用,有版本控制的config。

cli,linux,macos

如何用find刪除建立時間為準的舊檔案

這功能很好用,但要很小心,先看再刪,弄錯目錄會死很慘&nbsp;