About
mpv plays video and audio with a minimal interface and wide format support. Control is mostly from the keyboard. Handy for playing a file on a phone without a full graphical player.
Install it
pkg install mpv
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
6 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
mpv clip.mp4 Play a video file in a window with on-screen controls. mpv song.mp3 Play an audio file, showing a minimal audio-only interface. mpv --no-video song.mp3 Disable the video output. What you want for audio on a headless session. mpv --loop clip.mp4 Play a file on repeat until you stop it. mpv --start=00:01:30 clip.mp4 Begin playback at a given timestamp. mpv --speed=1.5 clip.mp4 Play faster than normal. Handy for skimming a long recording. Worked example
Run mpv --no-video --start=00:00:30 song.mp3 and this is what you should see.
$ mpv --no-video --start=00:00:30 song.mp3
(+) Audio --aid=1 (mp3 2ch 44100Hz)
AO: [opensles] 44100Hz stereo 2ch float
A: 00:00:30 / 00:03:45 (13%) The status line shows position, total length and percentage.
Developed by
The mpv project .