Skip to content

archusXIV/mpv-playlists-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,392 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpv-playlists-manager

Manage playlists for mpv from your linux terminal

About mpm

Manage playlists that mpv reads either online or from local files/directories, yt-dlp is used to download videos or just audio and in that case if we choose webm links, ffmpeg will (if you want to) convert them in five different formats: aac, flac, mp3, ogg, or wav. You can switch encoders by editing the config file (mpmrc), and many more options to control mpv, ffmpeg, yt-dlp and download/playlists directories etc...

Please read it before first run and change settings to your likings.

Youtube dedicated channel

For installation, configuration and more please see the wiki page

Important yt-dlp and dependencies update

Follow these steps described in this issue thread regarding yt-dlp failing to get all available formats on YouTube particularly

Please update your mpmrc file on each release

When upgrading mpm, a ~/.config/mpm/mpmrc.diff will be created and merged with your mpmrc file, of course a backup will be generated under mpmrc.orig. Remember some of the changes are crucial...

Changelog: version 2.7-0

  • Added the same awk block from _RemoveCrap function in _EditListTitles function and fixed bug when renaming titles is done in temporary files.
  • Updated doc/{mpmrc,themerc}
  • Added an awk block to rename duplicate titles in _RemoveCrap function.
  • Added few more themes in the themerc file.

Mpv interfaces

  • Mpv terminal user interface can be used to pick & choose playlist items while mpv is running.

    Such as:

    as usual set it in your mpmrc file.

# experimental
# can be yes (mpvc tui) no (control mpv using shortcuts, press B for details),
# or empty (mpv infos in the terminal).
use_mpvc="no"
# change your mpv Terminal User Interface here
# mpvc_tui="ncmpvc"
mpvc_tui="<your_mpv_tui_here>"
  • Or...
# Colors can be change in ~/.config/mpm/themerc.
mpvc_tui="native"

screenshot

Integrated programs settings in mpmrc file

  • I also provide a new script (somabox) to listen to somafm.com radio stations through option 5). Place it in your $PATH, and change mpmrc setting to 'yes'
use_somabox="yes"

screenshot

  • As mentioned above mpv command line tools and terminal interface.
  • ffmpeg, mpv, ytfzf & yt-dlp options can be set in your mpmrc through their respective bash arrays.
  • Audio & Videos directories are defined in your mpmrc file (change them according to your locales).

Themes

  • A themerc file is available to insert as many as you want "themes" instead of bloating up your mpmrc.

default theme will use your ~/.Xresources colors or your terminal preferences.

Retro Solarized
TokyoNight C64
# apply your prefered colorscheme...
# !!! Change or add inside the below mainThemes array existing themes
# in ~/.config/mpm/themerc (_Theme function)!!!
mainThemes=(
    default blacksea c64 dracula embers gotham
    gruvbox jellybeans monokai nord pistachio
    retro solarized TokyoNight vacuous zenburn
)
THEME=default

Same thing for the native mpv tui.

# !!! Change or add inside the below nativeThemes array existing themes
# in ~/.config/mpm/themerc (_NativePlayerColors function)!!!
nativeThemes=(
    default c64 dark embers gruvbox jellybeans
    molokai nord retro seoul256 solarized
)
native_tui_colors=default
  • To find out how to convert hex colors in rgb colors, open your prefered color picker and look at "red green blue" fields.

screenshot

More screenshots here

Why ranger file manager?

(it can be any terminal file manager) Because we are terminal users so we can navigate across our local media files. You will also need some dependencies to make it functional, for example displaying image/video thumbnails preview with ffmpegthumbnailer. Make sure $XDG_CONFIG_HOME/ranger/scope.sh is executable.

FILEMANAGER="ranger"

Requests and contributions? Why not, have fun.

Credits

I would like to thanks all the devs that put their great work in the softwares I use and that I have implemented in this project and especially mister Brian Jhan Fox the father of the Bourne-Again SHell, even if I don't always use it the right way.

About

manage playlists for mpv in your Linux terminal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors