Coder Social home page Coder Social logo

mpv-config's Introduction

mpv-config

My personal mpv config and user scripts :)

Nothing special, not even any fancy shaders or anything, since I only have an integrated GPU. This is mainly just for backup and keeping track of changes.

Fonts

Warning
Install my custom-made icon font modernx-osc-icon.ttf for the OSC icons.

User scripts

  • auto-save-state.lua: Periodically saves "watch later" data during playback, rather than only saving on quit.

  • crop.lua: Crop the video by defining the target rectangle with the cursor.

  • file-browser.lua: Navigate through the file system entirely from within mpv and open/append files & folders.

  • modernx.lua: My own spin on MordenX, with added support of po5's thumbfast.lua (see below) and upstream fixes ported from from mpv's osc.lua. You can view the differences between the upstream/forks here.

  • playlistmanager.lua: Create and manage playlists intuitively. Uses playlistmanager-save-interactive.lua to manually name playlists on save.

  • reload.lua: Provides automatic reloading of videos that didn't have buffering progress for some time, keeping the current time position.

  • seek-to.lua: Seek to an absolute timestamp specified via keyboard input or pasted from clipboard.

  • SmartCopyPaste.lua: Add the capability to copy and paste while being smart and customizable.

  • thumbfast.lua: High-performance on-the-fly thumbnailer for mpv.

Note
Some of the scripts have been modified to suit my needs. You can see the exact changes by looking at the commit history for each individual script.

Difference between upstream ModernX

Expand

New

  • Add movesub feature
  • Move console when OSC is visible
  • Add script-opts to show OSC on file-loaded and seek
  • Add logarithmic volume control (processvolume in modern)
  • Add replay button at the end of playback (modern#21)
  • Add hover effect to icons
  • Add blur_intensity, osc_color, seekbarfg_color, seekbarbg_color and titlefont script-opts to customize OSC

Changes

  • Use Feather icons (outlined, rounded corners) instead of Material Icons (solid, sharp corners)
  • Use osc.lua's windows control bar
  • Change default font size for title, tooltip & timecode
  • No translations
  • No support for directional keyboard (ModernX#4)

Improvements

  • More frequent syncing from upstream osc.lua
  • Smarter OSC elements show/hide logic
  • Right-click seeks chapter closer to the clicked position
  • Window controls respect Fitts's law (mpv#9791)
  • Volume bar follow seekbar*_color

Bug fix

  • Working deadzone implementation
  • Fix timecode hitbox when milleseconds are shown (fixed in 583faf0)
  • Fix title being clipped (ModernX#26, fixed in aa29531)

References

mpv-config's People

Contributors

dexeonify avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.