by Devin Yang

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

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

需要登入才可留言!

類似的文章


php,linux

WebShell功能介紹及注意事項

突然想來介紹什麼是WebShell就上網找了一個,他的功能已相當好了, 不過我還想要一些功能,於是就用了三個晚上的時間,替他進行了一些小小的優化。 如果,您還沒聽過WebShell,快來看看這個影片吧。 如果您喜愛我的優化版本,請給我個讚哦,謝謝啦。

linux

舊版CentOS 6.2編譯git過程

本文使用的CentOS 6.2進行,進行重build curl及git過程。 主因是因為作業系統太舊,我直接由source build最新版本的git。

linux

如何在RHEL 7/CentOS7/Fedora變更timezone

在新版的RHEL 7/CentOS 7或Fedora上,我們可以透過timedatectl來查看狀態及進行調整。