by Devin Yang
(This article was automatically translated.)

Published - 3 years ago ( Updated - 3 years ago )

I have some audio files downloaded from Youtube that I want to play in the background, do I know how to do it?
There are all command lines, it is not difficult for me to make a front-end broadcast... :p
mpv is almost passable, and playing mp3 is no problem.

1. First, download the Termux terminal software
2. Install the mpv command (apt install mpv)
$ mpv --help
Usage: mpv [options] [url|path/]filename

Basic options:
--start=
3. You can add parameters when playing, for example: --no-video
The Android download directory is in /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
Even if the piezoelectric power is turned off, the screen still has sound..:)

Tags: linux termux

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


linux,docker,wifi

Use docker to build a WPA2/EAP enterprise Radius authentication server, and the backend uses a mysql database

AP provides WPA2/EAP function, but it won't work? This article introduces how I can quickly build a Radius server through docker's ubuntu:21.04 image. Related applications such as WPA2/EAP of Wifi.

linux

About setfacl

I think most of the current Linux supports Access Control List (ACL). With filesystem ACLs enabled, We can set additional permissions to different users or groups. This allows us to set the file system permissions of different users more freely. Go straight to the command.

linux

The old version of CentOS 6.2 compiles the git process

This article uses CentOS 6.2 to rebuild curl and git. The main reason is that the operating system is too old, so I directly build the latest version of git from source.