Skip to content

xuanngo2001/xmpv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DESCRIPTION

xmpv is a set of Lua scripts for mpv media player that uses TMSU to provide the following extra features:

  • Tag files that you like.
  • Display your top favorite files.
  • Mark play position.
  • Play next marked position.
  • Play previous marked position.
  • Delete previous marked position.
  • Export marked positions to a file.

INSTALL

Requirements

Install

Copy xmpv.lua and xmpv-*.lua to scripts directory of mpv:

# In Linux
cp xmpv.lua   ~/.config/mpv/scripts/
cp xmpv-*.lua ~/.config/mpv/scripts/

:: In Windows
copy /Y xmpv.lua   %APPDATA%\mpv\scripts\
copy /Y xmpv-*.lua %APPDATA%\mpv\scripts\

USAGE

  • Run your mpv as usual but now you have the following extra hot keys:
    • Alt+l: Increment likes.
    • Alt+d: Decrement likes.
    • Alt+r: Reset likes to zero.
    • Alt+i: Print information of current playing file.
    • Alt+t: Print top favorite files.
    • Alt+m: Mark position.
    • Alt+n: Play next marked position.
    • Alt+b: Play previous marked position.
    • Alt+x: Delete previous marked position.
    • Alt+e: Export marked positions to a file.

Note: If there is a conflicting hot key, then use the alternative binding key: simply also press the Shift key.

EXAMPLES:

[xmpv]   File: some_music_file_name.mp3
[xmpv]  Likes: 14
[xmpv]   Tags: funky, music
[xmpv] Marked
[xmpv]    00:00:07, 00:00:08, 00:00:15, 00:00:19


[xmpv] TOP FAVORITES
[xmpv] [  37] ./00 file name& weird.mp3
[xmpv] [  35] ./00 10sec.mp3
[xmpv] [  27] ./00 10sec222222222.mp3
[xmpv] [  20] ./00 09_30secd.mp3
[xmpv] [  14] ./some_music_file_name.mp3

REFERENCE:

TODO:

  • Queue
  • Playlist

About

Extended media player: Integration of MPV with TMSU

Resources

License

Stars

Watchers

Forks

Packages

No packages published