SVP:mpv

From SmoothVideo Project
Jump to: navigation, search

Mpv-logo.png

Setting up mpv

mpv and mpv-based video players are supported by

  • SVP 4 Pro
  • SVP 4 Linux
  • SVP 4 Mac

and they require mpv to be built with Vapoursynth support.

Installation - Linux

This will install both Vapoursynth and mpv in Ubuntu 14.04 and later:

sudo add-apt-repository ppa:djcj/vapoursynth 
sudo apt-get update 
sudo apt-get install mpv

Installation - OS X

brew tap mpv-player/mpv
brew install --with-vapoursynth mpv
brew linkapps mpv

Installation - Windows

Since developer's web site doesn't provide Vapoursynth-enabled Windows version you have to use our custom build of mpv.exe and/or mpv-1.dll.

Please install the following packages via SVP's "Additional programs and features":

  • [VPS_64] mpv video player and/or
  • [VPS_64] mpv shared library

Compiling mpv from sources

To use Vapoursynth filters you have to install the Vapoursynth package and build mpv 0.17.0 or later with the --enable-vapoursynth build flag.

Basic settings

The only necessary mpv option is (Linux and OS X)

input-ipc-server=/tmp/mpvpipe

or (Windows)

input-ipc-server=mpvpipe

You can put this line into mpv.conf (usually located in ~/.config/mpv on OS X and Linux and in %APPDATA%\mpv on Windows)

input-ipc-server=/tmp/mpvsocket
# or
input-ipc-server=mpvpipe

Only "copy-back" hardware video decoders are compatible with Vapoursynth filters, use

hwdec=auto-copy
hwdec-codecs=all

This one fixes audio desync

hr-seek-framedrop=no

"Watch later" feature is not compatible with SVP, set

no-resume-playback

More useful options:

# Can fix stuttering in some cases, in other cases probably causes it. Try it if you experience stuttering on macOS.
opengl-early-flush=no

Since mpv has tons of options it's recommended to use SMPlayer instead of plain mpv (sadly NOT for OS X users).

Advanced features

  • autospeedwin - the script to adjust monitor refresh rate to match video speed
  • autospeed - the same script for Linux