Skip to content

v-amorim/mpv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MPV

This is the most customizable media player I've ever used. It's a free and open-source media player that supports a wide range of media formats.

Here I keep my mpv scripts and configurations. Also contains my SVP configurations.

Paste the /portable_config folder into your ./portable_config/mpv/ folder, doing so you load the configurations and scripts.

mpv    mpv_context_menu

Note

This repository is being uploaded piece by piece. The scripts below are the ones I wrote myself and are available now. Everything else (main config files, third-party scripts, shaders, fonts, SVP) is listed under Not committed yet and will be added over time.

scripts

These are the scripts I wrote, both share the Moonlight color palette.

keybind-visualizer and sub-seek

An interactive on-screen keyboard for mpv. Toggle it (script-binding keybind-visualizer), then move the mouse over any key to see its bindings. Close with ESC or by toggling again.

Bindings are read live from mpv's input-bindings property, so it reflects whatever you have in input.conf plus the builtin defaults.

The drawn physical layouts live in an external JSON data file, since mpv cannot auto-detect the OS keyboard layout. Pick one (ansi, iso, abnt2 or jis) or add your own through its options.

A fullscreen, clickable list of every subtitle line with timestamps. Click a line (or select with Up/Down + Enter) to seek to it. It behaves like the built-in sub-seek keybind, but lets you jump to any line.

mpv exposes no API for "all subtitle lines", so the currently selected sub track is extracted to a temporary .srt with ffmpeg and parsed. ASS/embedded subs are converted to plain timed text by ffmpeg.

Bind it in input.conf, e.g. F7 script-binding sub-seek-list.

Not committed yet

Files not uploaded yet

Main folder

Here we have the main configuration files for MPV.

This is the main configuration file for MPV, here I set the general configurations for the player. I've set it up in categories to make it easier to understand, here are type of configurations that you can find:

  • Prefered languages/subtitles
  • OSC configurations (if has border, initial size/position/volume)
  • Default subtitle configurations (font, size, position, etc)

input_conf_1 input_conf_2

This is my masterpiece, I've mapped as comment almost all the possible keybinds that you can use with MPV, split by the keyboard row. I've also mapped some of the most used keybinds that I use with MPV.

After all the mappings, there's the shader keybinds and finally the UOSC context menu keybinds.

Of all input.conf files I've searched as inspiration, this is the most complete and organized that I've found.

File where you can set conditions for different profiles, like if you are watching a movie or a series, you can set different configurations for each one.

I only have a simple "Animation" profile, that changes the applied shader and default subtitle styling to my liking. It is applied to the files where the parent folder name contains "Animation".

Not really needed anymore since I started using the fonts folder, but I keep it here just in case.

It was used to enable MPV to use Windows fonts folder to load fonts, without this file, it wouldn't load isntalled fonts.

scripts

Here lies the scripts that I use with MPV, some of them were written by me, others I found on the internet and modified to my needs.

This script automatically loads playlist entries before and after the the currently played file.

Shows an indicator in the top right side when the video is paused.

Reloads the current file, useful when you change the configurations and want to apply them without restarting the player.

Opens the current (external) subtitle on the subtitle editor that I made.

Tries to extract the current subtitle from the video and save it in the same folder as the video.

Auto select the audio and subtitle tracks based on the tracks name/id, highly customizable.

Generates hover thumbnails for the seekbar.

Send the current file to a "watched" folder after finishing it.

As I'm not used to the Lua language, it has some bugs:

  • Sends even when changing the file without finishing it
  • Don't send the last file of the playlist

UOSC

Feature-rich minimalist proximity-based UI for MPV player.

The imported folder from UOSC, where I keep the scripts that I use from it.

script-opts

Some scripts require additional options to be set that are kept in this folder.

shaders

Here I keep the shaders that I use with MPV. Got them from various sources, like Anime4K. I don't upload them to my repository due to their size, but you can find them on the internet.

I've included a shaders_list.txt file that lists the names of the shaders that I have, may be useful.

fonts

Here I keep the fonts that I use with MPV, it is possible to load directly from Windows fonts, but can be slow sometimes.

About

My mpv player configuration and custom scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages