Peanutccino / Random-Video-Player

Video player that plays random videos, based on libmpv
MIT License
6 stars 1 forks source link

Random Video Player - RVP

Logo

Hello everyone,

RVP is a clean media player based on the powerful MPV. As the title suggests, it's built to play random videos first and foremost, in an easy-to-use and intuitive way.

My goal was to create a good-looking, fast, and efficient way to play random videos from any directory or even custom-made lists. I've tried all the big players like VLC, MPC, etc., but they all make it surprisingly difficult to execute this task.

RVP doesn't stop there, though, as it's got quite the feature set:

Features:

Prerequisites (When compiling yourself)

The player uses Mpv.Net-lib- which I've modified to make use of the latest 'libmpv-2.dll' instead of the outdated mpv-1.dll. (The project is sadly abandoned)

  1. Download 'libmpv-2.dll' from here: https://sourceforge.net/projects/mpv-player-windows/files/libmpv/

    • Use 64-bit version e.g. mpv-dev-x86_64
  2. Create a folder called 'lib' in the projects folder.

  3. Extract 'libmpv-2.dll' from the archive and move it to your 'lib' folder or drag it into visual studio directly.

  4. In your Solution Explorer, click on 'libmpv-2.dll' and select 'Properties'. Change the value for "Copy to Output Directory" to "Copy Always".

  5. Download a Mpv.NET.dll from one of my latest releases

  6. In visual studio with Random Video Player project open, go to project, add dependency, browse for the 'Mpv.NET.dll' and add it

  7. Activate the .dll and press ok

  8. It should now be added to dependencies within your solution explorer under assemblys. From there you can choose to create a local copy.

First run

  1. On it's first run, every setting will be at default and the application will create a config file next to it's executable called 'RVP-Config.json' where settings will be stored from now on.
  2. Click on the cog-wheel icon to setup everything.
  3. Typical usage would be something like:
    • Open Player with your default folder, either press play or
    • Open the FileBrowser / ListBrowser to choose which folder to play from / create a list to play from
    • Switch the toggle for 'Folder/List' depending on what you want to play
  4. You can also open videos with RVP right away, simply choose 'open with' and search for RandomVideoPlayer.exe (where you saved it)
  5. Or simply drag files onto it

Synchronize with MultiFunPlayer(MFP)

  1. Download MFP if you don't already have it https://github.com/Yoooi0/MultiFunPlayer
  2. In RVP under settings, activate 'Timecode Server'
  3. In MFP, activate 'MPC-HC' as a source
  4. While RVP is running, press connect on MFP and it starts synchronizing
  5. You need to play videos from your folder with scripts ofc.
  6. Have Fun!

Hotkeys

There are multiple shortcuts for ease of use:

Most of the hotkeys can be changed in the settings:

Logo

Outro:

I've worked on this player for quiet some time and added functionality continuosly. I'm a rookie developer so the structure might be terrible and not all checks are there. Anyways I'm constantly trying to improve it and add functionality based on user feedback and my own ideas. So far, RVP works pretty good!

Credits: