Code Monkey home page Code Monkey logo

mpv-made-easy's Introduction

MPV - Made Easy!

Feature List:

  • Similar feel and behaviour to MPC-HC (shortcut keys and mouse buttons) :
    • a - Toggles audio track.
    • s - Toggles subtitle track.
    • Spacebar / Mouse right-click - Toggle pause.
    • Mouse side-buttons (if applicable) - Skip through chapter markers (forward/backward).
    • Left/Right arrow keys - Seek ~10 seconds forward/backwards
    • Up/Down arrow keys & Mouse wheel - Increase/decrease volume by 5
    • Shift+S - Take screenshots (with subtitles).
    • Ctrl+s - Take screenshots (no subtitles).
    • Ctrl+o - Full-featured Open file box.
    • Ctrl+g - Go to a specified timestamp.
    • Ctrl+p - Show current playlist.
      • Up/down arrows - highlight / scroll through playlist.
      • Left/right arrow - select item highlighed entry (to move)
      • Enter - play highlighted file.
      • Ctrl+Shift+p - Shuffle playlist (again to sort alphabetically).
      • Shift+p - add files in currently playing directory to the playlist.
  • Screenshots are placed in the video source directory under a new folder called "Screens" (can be changed within mpv.conf).
  • Visualiser for audio tracks.
  • Remember video position of previous played file (video/audio).
  • Lightweight (no heavy filters or extra programes required).
  • Modern OSC (On Screen Controller) to have a smaller footprint and be more practical than the default MPV varient.
  • Play next sequential file in the current files folder.
  • YouTube URL player (drag and drop only)
  • Updater script that can be automated via Window Task Manager
  • Hexchat Nowplaying Script included for feature rich messages (audio, video and streaming supported)

Installation:

One of the nicest features of MPV is that it requires no installation and can be run from its own folder (portable).

  1. Clone or download this repo.
  2. Unzip to your desired location.
  3. Run updater.bat (this will download the latest MPV GUI build from the source stated below and youtube-dl OR yt-dlp if you pressed 'y' when prompted).
  4. Optional: Run installer/mpv-install.bat as administrator to set file associations.
  5. Optional: See below for Hexchat NowPlaying integration.

Hexchat Integration:

Hexchats latest version (2.16.1) doesn't have any built in "now playing" plugins to use. And as of this version, the default MPC-HC "now-playing" script doesn't function. I have included a modified version of an MPV now playing script from github user, FichteFoll, in this pack. Note: This has been modified with some QOL adjustments and pretifying. Not to mention this will also work when streaming video. A prerequisite, Python 3.6 needs to be enabled/selected when you install Hexchat. If you have Hexchat already installed, no problem, just re-run the installer and choose Python 3.x from the Custom Installation screen (right at the bottom).

  1. Right-click and copy the file mpv_np.py (located in Hexchat addon folder) from the downloaded pack.
  2. Press the Windows key+R and type %APPDATA%\HexChat and press enter.
  3. Paste the copied file into the addons folder.
  4. In Hexchat go to Window > Plugins and Scripts > Load and browse to your addons folder where you pasted mpv_np.py. Normally this is C:\Users\moodkiller\AppData\Roaming\HexChat\addons
  5. You should get confirmation to say the plugin has been loaded successfully.
  6. Type /mpv in any window while playing a file in MPV and it should spit out something like "Moodkiller is playing: [MK] Kiznaiver - 01 [BD 1080p][Hi10][Dual-Audio] • 1.945 GiB • [00:05:48 / 00:24:03] in mpv 0.29.0-107-gd6d6da4711" for video and "Moodkiller is listening to Garnidelia - 21248931 {37.627 MiB • flac 1.091 mbps 2ch} • [00:00:51 / 00:04:17] playing in mpv 0.29.0-107-gd6d6da4711" for audio (with colour formatting).

Screenshots

alt text

alt text

alt text

alt text

Resources:

GUI build: https://sourceforge.net/projects/mpv-player-windows/files/
Collection of user scripts: https://github.com/mpv-player/mpv/wiki/User-Scripts
MPV properties page: https://mpv.io/manual/master/#synopsis

Thanks goes to all those involved for testing and their inputs for getting stuff running.

mpv-made-easy's People

Contributors

johnflowerful avatar moodkiller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpv-made-easy's Issues

Linux version?

I honestly recently got into linux (or atleast trying to) and was wondering if there could be a linux version of this.

I tried just dragging but the osc wont show up unfortunately (I prefer yours over the one in default mpv)

More Information in OSC.

Hello, thanks for the update.
While the new thumbnail generator is great and the OSC looks sleek, its missing some at a glace info compared to the previous OSC.
image
image

Is it possible to show this info in the new osc (size, video dimensions, codecs, audio channels etc)

And also the number of audio and subtitle tracks in the file.

[Enhancement] Regarding the volume OSD

Is it possible to make the volume OSD to go from 0 to 100 and then overlap the current 0 to 100 bar with a different color (to imply amplification) example

[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||] < 100%
[\\\\\\|||||||||||||||||||||||||||||||||||||||||||||||||] < 130%

| = white color
\ = red color

Play Next File Doesn't Work

I added your keybind to my input.conf, yet pressing the button does absolutely nothing. I can copy my mpv.conf or input.conf, if it would help. Also, could you show me how to install the thumbnail-while-seeking script? Lastly, great work on your releases Moodkiller. Though, you should start using jpn eng or eng zxx to differentiate between Full Subtitles and Sings/Songs.

[Question] Seek distance and script request etc

Hi, have few questions.

How change default seek distance? Right know left-right arrow skips by 10 seconds. I would like to reduce it to 5 seconds.
I tried adding to input.cfg
Shift+RIGHT seek 3 exact Shift+LEFT seek -3 exact
But it didn't work.

  1. Can we have subtitle search function with UI. Similar to MPC-HC D button that searched for subs. For MPV I see there is something called sublime, which I failed to set up.
    I attempted to set up sublime with this script " https://github.com/vayan/autosub-mpv/blob/master/autosub.lua " , but alas. Once again. It didn't work. It's useful feature to have if watching movies/series that don't have subs included. So would nice to have. Convenience feature to avoid dl'ing subs from web.

I know there are bunch of scripts for sub search, automatic sub search and dl(+ones that use sublime and ones that use other places) and sub search with GUI etc.. but somehow I keep failing at setting them up.

  1. Playing YouTube stuff.
    Well, not even sure what to say here. I get this sort of screen/error when attempting to play anything from youtube. https://i.imgur.com/QOnkpW6.png

(4.) Just extra question. Is MVP interlace feature essentially SVP?
(5.) Method of play-next-video in the folder? Without having to drag whole folder onto MPV to create playlist.

Material-Design-Iconic-Font.ttf is missing

This is my first time using mpv so this is a completely fresh install.

I think Material-Design-Iconic-Font.ttf is missing from the fonts folder?

In mpv.conf when 'Source Sans Pro' is being used, all of the buttons are just a blank rectangle box.

I installed Material-Design-Iconic-Font.ttf from another source, and set osd-font='Material-Design-Iconic-Font' to get the buttons to render correctly.

License file

There is not a license file, but since there are GPL files in it the repo it must have a GPL compatible license. I would recommend adding one for clarification.

On screen controller not showing

This might not really be an issue at all and I'm just not doing things right but I've been trying to get the controller to be visible for a few hours now with no success

Am I missing something from just changing this
osc=no
to osc=yes ?
Or is there a specific conf file I'm not seeing that I need to edit to have the on screen controller

Thumbnail problem since update :/

Hey

So i used your MPV made easy setup and i saw you update it but since i'm a little noob with it the thumbnail don't work with the new config file :/
image

Here if it can help

Thanks in advance

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.