World's Simplest Video Player

June 24, 2024 ยท View on GitHub

image image

(it even works with pipe!!!!)

Building

Tested in Arch Linux (6.1.9-arch1-2), but I assumed it would work anywhere else as long as you have mpv installed.

What I used:

clear && v fmt -w . && v -cc clang (or gcc) -d show_fps .

To Windows User

  • Get MPV Shared library from libmpv@sourceforge.net
  • Copy include folder and libmpv-2.dll into project folder
  • And you're ready to go!

Features

It has a lot of features, such as:

  • Playing a video or anything that mpv supports.
  • That's about it really.