Skip to content

FlyingHairball/mpv-osc-modern-extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern Extended

Modern Extended is a small collection of user scripts and tools that aims to give an easy and simple installation/customization process for mpv beginners.

This osc is a fork of ModernF that extendeds the script and enhances the experince.

image

MpvGalleryView to display playlists (shortcut g)

image

With Anime4K watch peak cinema with upscaling in real time (Ctrl+0-6, artifacting in gif is from video capture software, it looks much cleaner in player I swear 😭)

extended-07

Found a great clip you would like to use? MpvSlicingCopy will allow you to crop it out in a matter of seconds (shortcut c)

extended-09.mp4

Installation Guide 📖

Dependencies

Modern Extended will run without these but some functionalities will be disabled

Make sure to add all dependencies to Environment Variables Path

Install

Youtube Tutorial - How to Watch Anime in 4K

Make sure to remove any conflicting osc scripts



Copy all files from this repository into your mpv config directory

Linux ~/.config/mpv/

Windows %APPDATA%/mpv/



If you are using Mpv.net or another version of mpv you need to find the correct directory name

Mpv.net

Linux ~/.config/mpv.net/

Windows %APPDATA%/mpv.net/



Download the appropriate Anime4k shaders for your system and extract ONLY the shaders folder to your mpv config directory

For input.conf and mpv.conf copy the text content of these files from the download and add them to the bottom of their respective files in the mpv config directory

For example your mpv.conf in you mpv config directory should look similar to this:

# disable the default osc when using a custom one
osc=no
border=no
loop-playlist=inf

# path to yt-dlp.exe, download from https://github.com/yt-dlp/yt-dlp/releases
# script-opts=ytdl_hook-ytdl_path="C:\path\to\yt-dlp.exe"

# allow mpv to load youtube playlist links
ytdl-raw-options=yes-playlist=

# Optimized shaders for lower-end GPU: Mode A (Fast)
glsl-shaders="~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_M.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_S.glsl"

and you're all done!

Custom Features

The osc comes with a new Layout extended which provides new options:

  • Toggle Video Button, save on resources when listening to a podcast or youtube music by turning off the video stream
  • Toggle Loop Button, easily toggle between looping playlist, single file or no loop
  • Toggle Shuffle Button, shuffle your playlist
  • Toggle Playlist Button, displays your playlist

Also generally improved the user experince by customizing the style and patching some unexpected behaviours to be more user friendly

  • Info Button (right click) will now display Active Key Bindings indefinetly until toggled off, allowing user to read without being on a timer
  • fixed random empty folders being generated by SlicingCopy
  • fixed PlaylistView not generating the thumbnails directory on windows, and added support for generating the directory on other versions of mpv (e.g. mpv.net)
  • removed some inputs that can be confusing like scrolling the seek bar accidentally when trying to change the volume
  • created a super responsive design that's compatable with any screen size.

also many more tweaks and little configurations here and there than I can mention.

feel free to explore the configurations files in scripts-opts, input.conf and mpv.conf, all options from the default scripts remain.

Key Mapping

Shortcuts can be managed in input.conf, this can be done by uncommenting some of the commands, or you can add your own custom commands with the following format

Key command # description

# example
Ctrl+s screenshot window  # take a screenshot of the window with OSD and subtitles

Mpv.net has many shortcuts setup by default and I added some customizations to them, Some of the most notable shortcuts are:

  • Right Arrow skip forword 3 seconds
  • Left Arrow skip backword 3 seconds
  • Up Arrow volume up 2
  • Down Arrow volume down 2
  • . go to next frame
  • , go to previous frame

  • Space toggle play/pause
  • Left Click toggle play/pause
  • Right Click open context menu (mpv.net)
  • Double Left Click toggle fullscreen

  • b toggle window border
  • c cut video clip
  • m toggle mute
  • l toggle loop file
  • Ctrl+l toggle loop playlist

  • ] step video speed up 0.1
  • [ step video speed down 0.1

  • Ctrl+0-6 switch anime4k profile Ctrl+0 == off

For a full list of active key bindings you can Right Click on Info Button on the bottom right of the player to display list of all key bindings (navigate with arrow keys up/down):

extended-10

Credits

About

A Collection of User Scripts to Create a Smooth UI and User Experience

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages