/mpv-scripts

My and adopted lua scripts for mpv.

Primary LanguageLuaMIT LicenseMIT

speed.lua

Changing speed based on regex of filename/path.

  • (see speed.conf for config example)
  • Use rubberband for higher speeds.

total_playtime.lua

  • Shows total playtime of current playlist with F12.
  • Sorts playlist by duration with KP4.
    • Repeated keypress reverses the order.
  • Sorts playlist by duration and jumps to the first entry with shift+KP4.
    • Repeated keypress reverses the order.
  • On Windows it might flash cmd window for each iteration. Reason

show_chapters.lua

Shows chapters and their time at the bottom left corner.

  • at a hotkey
  • at given paths
  • example

speed_osd3.lua

Recalculates osd-msg3 timecodes with speed != 1

  • Example at 1.5x : 00:24:43 -> 00:16:29

pause-indicator.lua

Displays an indicator in the middle of the screen while mpv is paused. Preview