Jump to content
  • Sign Up
Moodkiller

MPV Made Easy (Moodkiller Edition)

Recommended Posts

Moodkiller
MPV - Made Easy!
(Moodkiller Edition)

m57YoZk.pngXAqfrSWL.png

 

Synopsis: The MPC version for MPV. Seen as MPC is no long in active development (based from the original thread date), MPV is becoming, and should have become, your go to player. Below is the personal player configuration I use. Its a mixture of one of the stock standard gui releases with some userscripts that have been tweaked.  This is based as closely as possible on how MPC used to run in terms of shortcut keys and functionality. You should feel right at home, but up to date.

 

info

 

Feature List:

  • Similar feel and behaviour to MPC-HC (shortcut keys and mouse buttons) :
    • a - Toggles audio track.
    • s - Toggles subtitle track.
    • Spacebar - Toggle pause.
    • Mouse right-click - Toggle pause.
    • Mouse side-buttons (if applicable) - Skip through chapter markers.
    • 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+o - Full-featured open file box.
    • Ctrl+g - Go to a specified timestamp.
  • Screen-shots are placed in the root videos directory under a new folder called "Screens".
  • Seek bar thumbnail preview.
  • Visualiser for audio tracks.
  • Remember video position of previous played file (video/audio).
  • Lightweight (no heavy filters or extra filters).
  • Adjusted OSC (On Screen Controller) have a smaller footprint and be more practical.
  • Play next sequential file in the current files folder.
  • YouTube link player (drag and drop only)
  • More as I remember them...

 

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 if you pressed 'y' when prompted).
  4. Optional: Run installer/mpv-install.bat as administrator to set file associations.

 

Hexchat Integration:

Hexchats latest version (2.14.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. 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 plugin') 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][05856FFC].mkv ◘ 1.945 GiB ◘ [00:04:05 / 00:24:03] in mpv 0.28.0-437-g9efb0278e7" (with colour formatting).

 

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.

 

Feedback welcomed.

 

screens.png
 
 

 


GlXp12f.png

 
MphDKcp.png


 

nomUrXt.png

 

xB3cbkY.png

 

 

downloads

 

Github repository: MPV-Made-Easy

  • Like 10
  • Thanks 3

Share this post


Link to post
Share on other sites
ani-me

I think I saw it on your website as well..!?

  • Like 1

Share this post


Link to post
Share on other sites
Moodkiller
On 3/10/2019 at 9:38 AM, ani-me said:

I think I saw it on your website as well..!?

Ha! Yeah, there is a link floating around there on a very much neglected page 😕

Been working on the template generator and a few other random bits and pieces. Still a lot I want to do with this player

  • Window with menu's and such would be nice (real MPC feel).
  • GUI playlist manager with full functionality - drag 'n drop, sorting, auto add, saving to name a few.
  • Better text scaling depending on player window size.
  • ...
  • Like 1
  • Confused 1

Share this post


Link to post
Share on other sites
ani-me
5 hours ago, Moodkiller said:

Ha! Yeah, there is a link floating around there on a very much neglected page 😕

Been working on the template generator and a few other random bits and pieces. Still a lot I want to do with this player

  • Window with menu's and such would be nice (real MPC feel).
  • GUI playlist manager with full functionality - drag 'n drop, sorting, auto add, saving to name a few.
  • Better text scaling depending on player window size.
  • ...

Ok, so you are developing this?

Sorry, didn't actually read either post..

  • Like 1

Share this post


Link to post
Share on other sites
Moodkiller
Posted (edited)
On 3/18/2019 at 6:23 PM, ani-me said:

Ok, so you are developing this?

Sorry, didn't actually read either post..

That's okay. Hmm yes and no. Essentially I'm looking to see what is out there already in terms of user scripts or pre made stuff and then adding it all together with a few tweaks of things I don't like or want to improve. Ultimate goal is to make it as close to MPC as possible. was just curious to see how hard it would be. I believe Golumpa was going to tackle it at some point when he had some spare time.

 

EDIT: Got my conversations confused, thought this had to do with something else, updated reply accordingly. @ani-me

Edited by Moodkiller
  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites
LastReaction
On 3/17/2019 at 7:23 PM, Moodkiller said:

Ha! Yeah, there is a link floating around there on a very much neglected page 😕

Been working on the template generator and a few other random bits and pieces. Still a lot I want to do with this player

  • Window with menu's and such would be nice (real MPC feel).
  • GUI playlist manager with full functionality - drag 'n drop, sorting, auto add, saving to name a few.
  • Better text scaling depending on player window size.
  • ...
On 3/18/2019 at 1:23 AM, ani-me said:

Ok, so you are developing this?

Sorry, didn't actually read either post..

1 hour ago, Moodkiller said:

That's okay. Hmm not really - was just curious to see how hard it would be. I believe Golumpa was going to tackle it at some point when he had some spare time.

It was brought to my attention fairly recently that something like what you're looking for kind of already exists, @Moodkillerhttps://www.smplayer.info/

 

From Wikipedia: "SMPlayer is a cross-platform graphical front-end for MPlayer and forks of Mplayer using GUI widgets offered by Qt."

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
Moodkiller
1 hour ago, LastReaction said:

It was brought to my attention fairly recently that something like what you're looking for kind of already exists, @Moodkillerhttps://www.smplayer.info/

 

From Wikipedia: "SMPlayer is a cross-platform graphical front-end for MPlayer and forks of Mplayer using GUI widgets offered by Qt."

Yeah, knew about SMPlayer as it was a "source" (inspiration) for this edition. There is also this beast as well which is highly customisable: https://github.com/422658476/MPV-EASY-Player

Another "goal" was to keep it as light weight as possible, i.e a simple GUI for MPV. I feel that SMPlayer is very feature rich which some will like and some won't. We will see how this goes but yeah, nothing wrong with any of the other versions out there really.

 

I guess I should have called mine YAMPV (Yet Another MPV).

  • Like 1
  • Haha 2

Share this post


Link to post
Share on other sites
pixxelherz

I feel deja-vu coming on liking all your content here...

  • Haha 2

Share this post


Link to post
Share on other sites
Van

This version of MPV, I really like! I don't really like SMPlayer, since I'm so used to MPC-HC. But this really makes MPV feel at home, and very close to MPC. Thank you so much @Moodkiller!

Share this post


Link to post
Share on other sites
Dethpacito

I've been linked to this one as well in the past by Golumpa. It surely helped me out with setting the shortcuts, scripts and some other fancy stuff when I started out.

Anyway, for all of you trying to make a switch, grab MK's version first, grab other users' settings you can find on the net (you might find something interesting), read the manual on the mpv's official page and make your own version with your own settings.

 

For those of you that would like some fancy Discord rich presence stuff:

https://github.com/noaione/mpv-discordRPC (the one I personally use)
https://github.com/cniw/mpv-discordRPC (looks decent as well, I guess; haven't tested this one personally)

Share this post


Link to post
Share on other sites
sfaxt
Posted (edited)

checked this again after few months and i have a question.

hw acceleration for 10 bit hevc doesnt seem to be enabled at least for 4k.

i'm unsure how to check this on mpv interface,

but in practice eg with catar's 4k rmx of kimi no na wa   im getting stutters and framedrops with my weak cpu, while on mpc it plays flawlessly with hw acceleration, same as any 10 bit x265.

 

 

you know if i can enable it somehow?

 

 

Edited by sfaxt

Share this post


Link to post
Share on other sites
SpoonyBard
4 hours ago, sfaxt said:

checked this again after few months and i have a question.

hw acceleration for 10 bit hevc doesnt seem to be enabled at least for 4k.

i'm unsure how to check this on mpv interface,

but in practice eg with catar's 4k rmx of kimi no na wa   im getting stutters and framedrops with my weak cpu, while on mpc it plays flawlessly with hw acceleration, same as any 10 bit x265.

 

 

you know if i can enable it somehow?

 

 

Hmm, on MPC-HC (or rather the last release CCCP put out) the HDR doesn't even render for me. I have to use mpv to see the HDR actually work, but I have no problems with stutters or frame drops.

Share this post


Link to post
Share on other sites
sfaxt
Posted (edited)
3 hours ago, SpoonyBard said:

Hmm, on MPC-HC (or rather the last release CCCP put out) the HDR doesn't even render for me. I have to use mpv to see the HDR actually work, but I have no problems with stutters or frame drops.

i wouldnt know about hdr, i only used the 4k file for testing purposes to see what going on with hw acceleration, not that i need that for 1080p.

 anyway, on the pc i use for playback i have an old cpu that cant handle 4k - i7 860.

my card on the other hand handles 4k 10 bit hevc just fine - rx 580

 

dxva works with 4k or any 10 bit hevc on my  setup (mpc hc w madvr), rx 580 plays 4K 10bit with ease actually, so that most likely means that on MKs mpv  hw acceleration isn't enabled for hevc or perhaps only 4k hevc.

 

 

heres the comparison dxva on vs off in my case (i post it because its kinda amusing:classic_tongue:)

 

 

dxva on

Spoiler

HhCXhUz.png

 

and dxva off- i get equivalent perf with mpv (about 40% frames dropped, because of my cpu)

Spoiler

ZAHTyTC.png

 

Edited by sfaxt

Share this post


Link to post
Share on other sites
Moodkiller

@ARMs (replying here so that we dont clog up the release thread with none relevant info)

 

1 minute ago, ARMs said:

So I tried MK's version of MVP and its working almost like MPC but I can't seem to get it to auto play or skip to the next video file in the folder.  As for SMplayer, every time I try to skip the player just stops playing it and just resets to the beginning of the video file. 

How did you install this? Cloned/downloaded the repo from github, extracted, then just ran the updater.bat?

 

The only issue I know of at the moment with autoplaying the next file is that the on screen controls (OSD) disappears due to a change in code in MPV as of a February release. I sort of hack job fixed that by just overriding the variable it was looking for. I just tested mine again and it works with the auto playing and skipping buttons.

 

If you press Ctrl+p when you have a file playing, do you get a playlist?? Should list all the files in the current directory, sorted.

  • Like 1

Share this post


Link to post
Share on other sites
ARMs
Posted (edited)

I see the play list but it only lists the one file i opened.

 

And yeah I did everything as instructed.  I had to wait 30 minutes or so to update to powershell 5.1 from 2.

 

Edited by ARMs

Share this post


Link to post
Share on other sites
Moodkiller
1 minute ago, ARMs said:

I see the play list but it only lists the one file i opened.

 

Interesting. Are you double clicking the file itself OR pressing Ctrl+o to open a file? If the latter, then press Shift+p and that should force the auto load of the files in same directory and add it to the playlist 🙂

  • Like 1

Share this post


Link to post
Share on other sites
ARMs
Posted (edited)

I did the drag and drop and the control+O.  I didn't do the double click but that didn't work with the other version of MVP so i didn't think to do it.  As I don't have the player as default at the moment but shift+P did force the all the files to go on the playlist.   Would have liked it to do that automatically but least this works.

 

Edit: Now that things are working I changed the player to default and double clicking it seems to have done the trick.  Thanks MK yours works perfectly.

Edited by ARMs
  • Like 1

Share this post


Link to post
Share on other sites
Moodkiller
1 hour ago, ARMs said:

I did the drag and drop and the control+O.  I didn't do the double click but that didn't work with the other version of MVP so i didn't think to do it.  As I don't have the player as default at the moment but shift+P did force the all the files to go on the playlist.   Would have liked it to do that automatically but least this works.

 

Edit: Now that things are working I changed the player to default and double clicking it seems to have done the trick.  Thanks MK yours works perfectly.

That is all good, glad to hear it's working in the end. Inadvertently, there is something I didn't know / test - and that's the behaviour when dragging + dropping or using Ctrl+o to open a file and how it handles files in the same directory.

I'm torn between whether to make the player auto load files in the same directory when using those specific interfaces or not >.<

  • Like 1

Share this post


Link to post
Share on other sites
ARMs
Posted (edited)

So a couple of issues came up when using the player.  

 

1.  The player doesn't seem to load up chapters.

2. It keeps freezing when I use the arrow keys or even mouse clicks to skip.  Some times when I load up a video file and skip it works but other times it strait up freezes.  It never fails to freeze when skipping fast by using the arrow keys.

3.  The player window is always on top which is annoying.

 

Edit:  So I tried testing it on the original mpv that is in the zip file and it has no issues of freezing when skipping and the chapters load but I can't skip by chapters.

 

Edit:  I'm pretty sure the chapter loading and skipping worked before I use MPV-install.bat, but It just didn't auto load every file in a folder to the player list.  So I uninstalled but the player still have the same issue.  I'll delete everything and start over and see how that goes.

 

Edit:  I deleted the entire folder and redownloaded everything and started over with the updater.bat and opening by double click or right click and open with is not an option now unless I use mpv-update.bat and chapters doesn't seem to load and skipping causes freezing.

Edited by ARMs

Share this post


Link to post
Share on other sites
LastReaction
10 hours ago, ARMs said:

So a couple of issues came up when using the player.  

 

1.  The player doesn't seem to load up chapters.

2. It keeps freezing when I use the arrow keys or even mouse clicks to skip.  Some times when I load up a video file and skip it works but other times it strait up freezes.  It never fails to freeze when skipping fast by using the arrow keys.

3.  The player window is always on top which is annoying.

 

Edit:  So I tried testing it on the original mpv that is in the zip file and it has no issues of freezing when skipping and the chapters load but I can't skip by chapters.

 

Edit:  I'm pretty sure the chapter loading and skipping worked before I use MPV-install.bat, but It just didn't auto load every file in a folder to the player list.  So I uninstalled but the player still have the same issue.  I'll delete everything and start over and see how that goes.

 

Edit:  I deleted the entire folder and redownloaded everything and started over with the updater.bat and opening by double click or right click and open with is not an option now unless I use mpv-update.bat and chapters doesn't seem to load and skipping causes freezing.

  1. I've noticed that the most recent versions of mpv have been having issues when it comes to videos freezing when you seek through them. The most stable build that doesn't have this issue currently is this one: mpv-x86_64-20190616. I'm currently using this build on my computer and haven't encountered any issues with freezing or hanging when skipping through videos. Chapters also work fine for me as well.
  2. If you don't want the video player to always be on top, you can edit the mpv.conf file that's provided to fix this. All you have to do is remove the line that says "ontop" in the OSD / OSC section of the configuration file and it should stop the program from doing that.
  • Like 1

Share this post


Link to post
Share on other sites
Moodkiller
12 hours ago, ARMs said:

2. It keeps freezing when I use the arrow keys or even mouse clicks to skip.  Some times when I load up a video file and skip it works but other times it strait up freezes.  It never fails to freeze when skipping fast by using the arrow keys.

 

Edit:  So I tried testing it on the original mpv that is in the zip file and it has no issues of freezing when skipping and the chapters load but I can't skip by chapters.

 

Edit:  I'm pretty sure the chapter loading and skipping worked before I use MPV-install.bat, but It just didn't auto load every file in a folder to the player list.  So I uninstalled but the player still have the same issue.  I'll delete everything and start over and see how that goes.

 

Edit:  I deleted the entire folder and redownloaded everything and started over with the updater.bat and opening by double click or right click and open with is not an option now unless I use mpv-update.bat and chapters doesn't seem to load and skipping causes freezing.

@ARMs - I just did some quick troubleshooting, can you head into Scripts and rename or delete firequalizer15.lua and let me know if it works thereafter (running the latest mpv commit). It appears there is a weird audio driver bug (was originally reported in 2018). I was able to replicate what you were describing but as soon as I renamed that .lua script, it works fine.

 

13 hours ago, ARMs said:

3.  The player window is always on top which is annoying. 

If you head into the file that @LastReaction described (mpv/mpv.conf), there is a line that says "ontop" - Just comment that out.

NOTE: This will break the function of making the playing ontop when playing music but not when the music is paused (as script is reliant on that option being present) - I wasn't able to replicate this through to videos.

 

Regarding the chapters not loading, I have never experienced that not working - sure it's not the file?

 

Let me / us know how you go.

Share this post


Link to post
Share on other sites
ARMs
Posted (edited)

K I renamed the file and chapter loading works now and the freezing accures a lot less often now.  You have to really try alot to get it to freeze by randomly skipping with mouse clicks.  Chapter skipping sometimes causes a freeze.  I just guessing but I think it happens when you skip too far.  I haven't tried using the mpv-update.bat yet though so I'll see if there is issues after that.

 

Edit:  After using mpv-update.bat the freezing got a lot worse.  chapters load fine and skipping by chapters work.  Also auto load files on folder works.  But yeah the freezing is as bad as before.

 

Edit:  Oops I don't know why I call it mpv-update.bat  Its mpv-install.bat.

Edited by ARMs
  • Thanks 1

Share this post


Link to post
Share on other sites
Moodkiller
6 minutes ago, ARMs said:

K I renamed the file and chapter loading works now and the freezing accures a lot less often now.  You have to really try alot to get it to freeze by randomly skipping with mouse clicks.  Chapter skipping sometimes causes a freeze.  I just guessing but I think it happens when you skip too far.  I haven't tried using the mpv-update.bat yet though so I'll see if there is issues after that.

Excellent - sounds good. I can scrub through a video by either clicking at random intervals or by holding down the arrow keys - hasnt crashed / frozen during this. Might depend on your specific machine, also if you are doing this during the initial playback of a video, the thumbnail generator script will also be running in the background, so it will be like you are running 3 instances of MPV (because the thumbnail script is "multicore").

 

You could go into scripts and delete mpv_thumbnail_script_server-1.lua and mpv_thumbnail_script_server-2.lua to see if that helps at all.

Share this post


Link to post
Share on other sites
ARMs
Posted (edited)

I have an 8 core AMD 8350k which isn't too bad but my gpu is a very old radeon HD 6850.   Since it made no sense why it would freeze like that after using the mpv-install.bat, I deleted the file "firequalizer15" instead of renaming it and the player was still acting up with the freezing.  But one time it froze for a few seconds and the video starting playing after the freeze and ever since it no longer freezes and I can skip as much as I want now.  Even when I barely started the video.

 

Edit:  I kept the thumbnail scripts.

Edited by ARMs

Share this post


Link to post
Share on other sites
Moodkiller
30 minutes ago, ARMs said:

I have an 8 core AMD 8350k which isn't too bad but my gpu is a very old radeon HD 6850.   Since it made no sense why it would freeze like that after using the mpv-install.bat, I deleted the file "firequalizer15" instead of renaming it and the player was still acting up with the freezing.  But one time it froze for a few seconds and the video starting playing after the freeze and ever since it no longer freezes and I can skip as much as I want now.  Even when I barely started the video.

 

Edit:  I kept the thumbnail scripts.

Alright, one final test / modification you can do is - comment out line 10 and uncomment line 11

If the same thing happens, then just comment out everything under the heading of Quality related settings

 

The only thing the install.bat does it set MPV as the default player and associate it with common file types (music and videos).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...