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

haproxy 1.8.9编译日志

日志在Ubuntu下编译haproxy 1.8.9过程。

linux,docker

如何在Container内运行X client及X Window简介(docker gui)

今天来跟大家谈谈X,不是iPhone X,也不是X战警哦 ,而是X Window System, 他是目前Linux系统主要的图形化界面显示组件。 由於他非常易於扩展及模块化,打从1986年创建,就一直使用至今。 X Window系统采用的为Client / Server的架构,把应用进程跟显示拆分为二, X Windows的应用进程通常我们称为X Client,而显示则是大家所熟知的X Server。 X client与X server透过X协议(X protocol)沟通,这是一个异步的网络通信协议。

linux

Raspberry Pi 3 树莓派作业系统安装

这篇文章,分享使用MacOS上的内建命令,进行Raspberry Pi的作业系统安装。 在这个安装过程中关於dd命令,请小心指定您of的参数,即是write output到文件的位置, 指定错了,会毁掉自己的系统哦。