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


Laravel linux

My mobile computer, install Laravel 8 on Sony xperia 5 II

This is my first Android phone. It's no problem to try to install Laravel. Basically, I installed vim and mariadb. After executing sshd, you can log in through 8022, it is completely a mobile computer: p. The software I use is Termux...

linux,system,config

Fix the problem that CentOS6.x can no longer be updated

There may still be some old programs in some places, which can only run the old system. But you want to be able to execute and install some desired packages, you may try this method. Please note that if this system is important to you, please evaluate it yourself. It is recommended that you have a Docker environment and have a backup image before trying it.

linux,mac

Password Generator on MacOS or Linux

Sometimes we need to generate a random password, but do not know what to use? Here is a simple bash that allows us to easily generate a set of passwords on the terminal.