User Scripts - troyp/mpv GitHub Wiki

User Scripts

Here is a list of scripts that users of mpv have published, adding functionality that is not part of the core mpv player. Most of these scripts are unofficial 3rd party scripts. Anyone can add their own script by editing this wiki.

Scripts are usually placed in:

OS Location
GNU/Linux or macOS ~/.config/mpv/scripts/
Windows C:/Users/Username/AppData/Roaming/mpv/scripts/

JavaScript

  • copyTime
    Get the current time of the video and copy it to the clipboard with the format HH:MM:SS.MS .

  • mpv-assrt
    Download subtitles from assrt.net, with interactive OSD menu.

  • mpv-chapters
    Display chapters and allow you to jump to them with a mouse click. (Preview)

  • mpvDLNA
    A plugin to allow mpv to browse and watch content hosted on DLNA servers. Also supports sending wake on lan packets by MAC Address.

  • screenshot-to-clipboard
    Generates a temp screenshot file on desktop then copy to clipboard. (Windows only)

  • seek-show-position
    Shows the position and duration when seeking formatted as 70:00 / 80:00 instead the built in 01:10:00 / 01:20:00.

  • store-shaders
    Store current glsl-shaders config on first run, this config will then be restored by subsequent calls.

  • switch-shader
    Provide a switch to disable/restore shaders and vf filters.

  • takeSsSequence
    Take a sequence of equispaced screenshots.

  • TypeScript definitions (for developers)
    Type definitions for builtin mp modules and globals.

  • webtorrent-mpv-hook
    Adds a hook that allows mpv to stream torrents. It also provides a osd overlay to show info/progress.

  • writeedits Writes a selection of filters (crop, rotate, flip, delogo, start/end loop time) to a file for later batch processing with ffmpeg.

  • VideoPlayerCode scripts (see Install-Notes below)

    • Blackbox - Advanced, modular media browser, file manager and playlist manager for mpv.

    • Colorbox - Apply color correction presets.

    • Gallerizer - Image gallery autoloader for mpv.

    • Leapfrog - Effortlessly jump through your playlist, with your own custom jump size and direction, including the ability to jump randomly. Excellent when queuing lots of images and using mpv as an image viewer.

    • JS Modules for developers - Tons of pre-written, open source JavaScript modules which helps you rapidly create your own JS user scripts (including a very helpful script config system based on mpv's Lua mp.options API). All modules are free to use (and extend) in your own scripts!

    VideoPlayerCode Install-Notes

    • The VideoPlayerCode scripts and modules use options at the dir ~~/script-settings/ (instead of the standard ~~/script-opts/ which is used by the builtin mp.options.read_options).

    • The original installation instructions for the scripts are outdated. To install one of the VideoPlayerCode scripts, e.g. Blackbox.js, do the following:

      • Inside your scripts dir create a dir Blackbox, and into it copy the file Blackbox.js from the original distribution, as well as the directory modules.js (with all the files it contains).
      • Inside the Blackbox dir: rename the file Blackbox.js to main.js, and rename the dir modules.js to modules.

Lua Scripts

  • acompressor
    Dynamic range compressor using acompressor ffmpeg filter with controls to dynamically adjust parameters.

  • always-play-on-startup
    Always play on startup, never start playback in a paused state.

  • audio-balance
    Port of mpv's balance property to FFmpeg lavfi pan filter.

  • audio-dupe
    Runs a child process to play a second audio stream. Synced through named pipe. Recommend using with cycle-adevice to change the output device of the parent process.

  • audio-file-keys
    Automatically apply key bindings when playing audio files.

  • Audio WebDAV & Sub WebDAV
    Auto connection of external subtitles and sound, using the "WEBDAV" protocol. The connection is explicit due to explicitly specifying folders on the WebDAV server.

  • autocrop
    Automatically crop the video by using lavfi's cropdetect filter to detect black bars.

  • autodeint
    Automatically deinterlace the video by using lavfi's idet filter to detect interlaced content.

  • auto-keep-gui-open
    Intelligently switches mpv's "keep-open" behavior based on whether you are running in video-mode or audio-only mode.

  • autoload
    Automatically load playlist entries before and after the currently playing file, by scanning the directory.

  • autoloop
    Automatically loops files that are under a given duration (default 5 seconds).

  • auto-save-state
    Periodically saves progress with write-watch-later-config, and also cleans up the watch later data after the file is finished playing (so playlists may continue at the correct file).

  • autosave
    Periodically saves "watch later" data during playback, rather than only saving on quit.

  • autospeed
    To adjust monitor refresh rate and video speed for almost 1:1 playback. (*nix)

  • autospeedwin
    To adjust monitor refresh rate and video speed for almost 1:1 playback. (Windows)

  • autosub
    Fully automatic subtitle downloading. No hotkeys required.
    Clear setup instructions for Windows, Mac and Linux.

  • autosub
    Automatically download subtitles using subliminal.

  • autosubsync
    Automatically sync subtitles using ffsubsync.

  • betterchapters (update)
    Loads the next or previous playlist entry if there are no more chapters in the seek direction.

  • blackout
    A fast crossplatform boss-key, but without window minimization (and possible problems with some VO drivers).

  • blur-edges
    Replace black bars with a blurry copy of the video

  • bookmarker-menu
    A bookmarker menu to manage all your bookmarks in MPV, based on mpv-bookmarker but with a menu

  • bookmark
    Record and resume last play in current playing folder

  • boss-key
    Minimise and pause video at the same time. Windows/Linux. Eliminated the time lag in previous versions.

  • btfs-hook
    Allows streaming torrents using FUSE via btfs.

  • btfs-stream
    Allows streaming torrents using btfs. As far as I can tell, it is much simpler than the above scripts (no long shell script execution) and much more configurable (the other scripts have no settings). This is much slower than using webtorrent though, so I recommend using webtorrent-hook instead.

  • channel mixer
    A set of keybindings using a modifier (Shift or Ctrl) and the function keys (F8-F12) to can adjust the mixing level of surround channels on the fly.

  • chapterskip
    Automatically skip chapters based on title.

  • censor
    Skip over parts of videos you don't want (others) to view

  • composition guides
    Overlay basic composition guides onto your video.

  • control
    Various features mainly for controlling playback.

  • copy to music
    Copies the current media file you're playing to a predefined directory, and plays the next entry in the playlist (Unix-like)

  • copyTime
    Get the current time of the video and copy it to the clipboard with the format HH:MM:SS.MS .

  • copy-paste-URL
    Paste URLs directly from clipboard into mpv

  • Tcl/Tk context menu
    Configurable context-menu based on Tcl/Tk, for *nix/Windows and probably macOS too.

  • clock
    Constantly show current time on the lower left corner of the video screen.

  • contact-sheet
    Display thumbnails of the current file in the style of a contact sheet

  • convert_script
    Script to quickly convert and crop videos from within mpv, with a GUI.

  • coverart
    Automatically load external music cover art

  • copy-permalink
    Copy mpv --time=<current-position> <path-playing> to clipboard. Useful for sharing when playing URLs.

  • copy-subtitle
    Copies currently displayed subtitle line to clipboard. Cross-platform (Mac, Windows, Linux)
    Video demonstration

  • copy-time
    Copies current timecode in HH:MM:SS.MS format to clipboard. Cross-platform (Mac, Windows, Linux)
    Based on Arieleg's mpv-copyTime
    Video demonstration

  • copy-time-in-seconds
    Copies current playback position in seconds with milliseconds to clipboard. Cross-platform (Mac, Windows, Linux)
    Based on Arieleg's mpv-copyTime
    Video demonstration

  • crop
    Crop the video by defining the target rectangle with the cursor

  • curvesman
    Manipulate color curves filter of FFmpeg with hotkeys. Brighten up color, change color temperature/tone, hopefully more. Adjust yellow light tone to white light tone.

  • cycle-audio-device
    Cycle through available audio devices with key binds.

  • cycle-commands
    Allows input.conf commands to be cycled through with keybinds.

  • cycle-deinterlace-pullup
    Cycle between deinterlacing, pullup (IVTC), and both filters off.

  • cycle-denoise
    Cycle between lavfi's denoise filters (press n)

  • cycle_messages
    Cycle between custom OSD messages.

  • cicle-through-existing
    Cycle through existing video/audio/subtitle tracks, skipping the "none" option.

  • cycle-video-rotate
    Allows you to perform video rotation which perfectly cycles through all 360 degrees without any glitches.

  • dbvol
    Replaces the default volume controls with a decibel (dB) scale instead of arbitrary percentages.

  • dessubdb
    Download automatically subtitles from the thesubdb.com using DESSubdb.

  • delete-file
    Provides the ability to delete files being played through mpv

  • locate-file
    Locate current media file on your OS file browser

  • delogo
    *** deprecated according to project page. tested and does not work.
    It removes the logo of the channels in a video (press n)

  • deframe
    It removes the frame of youtube videos (press g)

  • drag-to-pan
    Pan the current video or image with the cursor.

  • drcbox
    Dynamic Audio Normalizer filter with visual feedback.

  • dvd-browser
    A script to browse and load DVD titles using the lsdvd command-line utility

  • dynamic-crop
    Dynamically crop the video by using lavfi's cropdetect filter to detect hard-coded black bars for Ultra Wide Screen (21:9) or any screen different from 16:9 (phone/old TV).

  • easycrop
    Manually crop a video during playback.

  • encode
    Re-encode or remux part of the current video. Can also preserve some filters, such as "crop".

  • equalizer
    5-bands equalizer with colorful display.

  • excerpt
    Allows you to quickly create excerpts from media files, you just have to set begin and end markers.

  • excessive-history
    Excessive played media logger. Logs file name, time, and which parts were played. Will generate a history.txt in the mpv config folder. Only tested on Windows.

  • exit-fullscreen
    If you use --keep-open=yes, this script exits fullscreen mode when the playback reaches the end of file/playlist.

  • fastforward
    Instead of skipping forward in media files, speed up the playback for a few seconds. Playback speed decays back to 1x after a few seconds. Tap rapidly or hold down to go faster.

  • fast-forward
    Another fast-forward plugin with some added features and a bit more customization options.

  • filenavigator
    Navigate directories and open files from your system.

  • file-browser
    Another script that allows for file system navigation from within the player and allows for opening or appending files and folders. Requires no extra dependencies or terminal calls.

  • filter-test
    Test mpv/FFmpeg video filter(vf) strings with editable popup dialog.

  • find_subtitles
    (Down)load subtitles with subliminal.

  • firequalizer15
    Linear phase 15-bands equalizer.

  • fix_sub_timing
    Compute the correct speed/delay of subtitles by manually synching two points in time.

  • force-window-profile
    Applies the force-window profile when force-window is set (i.e. when starting mpv from the .desktop file)

  • fpsadjust
    Automatically adjust playback speed to synchronize the video to the display if possible (eg. by adjusting 23.976 Hz to 24 Hz for better compatibility with a 60 Hz display). Obsolete: mpv now has a native display-sync option.

  • fuzzydir
    Allows using wildcards for sub-file-paths and audio-file-paths.

  • gallery-dl_hook
    Load online image galleries (imgur, etc) as playlists using gallery-dl.

  • gestures
    Touchscreen and mouse gestures for mpv.

  • gnome-inhibit Prevent the screen from blanking under GNOME+Wayland while a video is playing.

  • gpufreq
    Show current and maximum GPU frequencies for GPUs using the DRM stack on Linux.

  • groupwatch_sync
    Quickly get back in sync with a group watch by adjusting playback speed.

  • histogram
    Exposes a configurable way to overlay ffmpeg histograms in mpv. There is a substantial amount of config available.

  • history-bookmark
    Create a history file to store the episode we watched last time. And let us easily jump to the video we watched last time.

  • KDialog-open-files
    Use KDE's KDialog to add files to playlist, subtitles to playing video or open URLs.

  • zenity-open-files
    Use GTK's zenity to add files to playlist, subtitles to playing video or open URLs.

  • image-config
    A configuration to use mpv as an image viewer.

  • image-viewer
    Configurations, scripts and tips for using mpv as an image viewer.

  • Immersive
    Versatile language learning script for generating Anki notes/cards with dictionary definitions, audio clips and screenshots from the current video, and word pronunciation audio. Also includes some other features that are useful for language immersion.

  • lang-learner Turn MPV into language learner tool. Includes: AB-loop current subtitle or auto loop each one, quick switch between lang you know and lang you are learning, forward to browser (dictionaries, translators), record for future extra learning, export to external script for integrations, and a bit more.

  • interactive-video
    Script for watching interactive videos (such as Netflix's Black Mirror: Bandersnatch).

  • interSubs
    Interactive subtitles. Instantly translate selected word/sentence. Works on Linux, macOS.

  • rikai-mpv
    Integrated Japanese dictionary and parser to translate by hovering over words. Works on Linux.

  • last.fm scrobbler
    Sends the information about playing tracks to last.fm, see http://www.last.fm/help/faq?category=99 for more info.

  • libass_sub_selector
    Visually select individual subtitles a la PotPlayer.

  • List chapters
    Shows chapters and their time at the bottom left corner. example

  • live-filters
    Add, remove or toggle ffmpeg video filters during mpv playback.

  • local-language
    Let the text displayed by mpv osd become the language you are most familiar with, that is, language localization, such as 【volume: 100%】 becomes 【音量:100%】.

  • lrc
    Synchronize lyrics with mpv and vim.

  • lua-mpris
    Adds mpris support to mpv.

  • matroska-crop
    Automatically crop video using the Matroska PixelCrop properties. Includes optional workaround for hardware decoding.

  • mark-chapter
    Use createchapter instead. See below.

  • createchapter
    Temporarily mark the current playback position as a chapter so you can seek to it later. Also allows writing current chapters as XML. Based on mark-chapter.

  • minesweeper
    Minesweeper game.

  • morden-x
    A modern OSC UI replacement for MPV that retains the functionality of the default OSC.

  • mpegts-truncate
    Removes beginning of MPEG TS file up to current position without re-writing the whole file.

  • mpv-acestream
    Add AceStream protocol handler to mpv. Let the user open streams by dropping Acestream links into mpv GUI or by passing them as command line argument.

  • mpv-bluetooth-av-delay
    Adds desired A-V delay automatically, if default audio sink is a bluetooth device.

  • mpv-bookmarker
    Bookmark your favorite time on media files

  • mpv-BoxToWide
    A simple mpv script to change 4:3 aspect-ratio of video files/streams to 16:9 automatically.

  • mpv-Change-OSD-Media-Title
    Displays filename, percentage watched, current chapter, and number of frames dropped in the OSD media title and updates it whenever one of the values has changed.

  • mpvcord
    Discord integration for mpv, using the Game SDK instead of the deprecated Discord RPC. The SDK wrapper is written entirely in Lua, which means it requires no compilation when customizing the script to your personal use. Supports: MacOS and Windows. (Linux is not supported by Game SDK)

  • mpv_crop_script
    Take cropped screenshots directly within mpv, without the need for external dependencies.

  • mpv_discordRPC
    Discord RPC integration for mpv using lua-discordRPC as base.

  • mpv_discordRPC (alternative version)
    Discord Rich Presence integration for mpv Media Player. Added some features and support: Linux, MacOS and Windows.

  • mpv-discord
    A cross-platform Discord Rich Presence integration for mpv with no external dependencies. Consists of a Go binary for updating the presence and a Lua script for launching it.

  • mpv_frame_info
    Show frame info, similar to ffdshow's OSD.

  • mpv-history
    Simple played media logger. Will generate a mpvhistory.log in the default mpv config folder (%APPDATA%/mpv/ or $HOME/.config/mpv/) in the format [$DATE $TIME] $PATH ($?MEDIA-TITLE). Only tested on Windows.

  • mpv-i3-floating-centered
    Show mpv window in the center of the display when it is in floating mode (i3wm)

  • mpv_manager
    User script and shader manager for mpv

  • mpv-manga-reader
    Script for using mpv as a manga reader.

  • mpv-pdf
    View PDFs in mpv using ImageMagick. Supports: Linux, MacOS

  • mpv_irc
    Display lines from an IRC channel or any text file.

  • mpv_sponsorblock
    Script to skip sponsored segments of YouTube videos.

  • mpv-webp-generator
    Creates high quality animated webp using mpv hotkeys. (For windows only)

  • mpv-yledl
    Watch videos from YLE Areena in mpv using yle-dl

  • mpv-ytdlAutoFormat
    A simple mpv LUA script to auto change ytdl-format for Youtube and Twitch or the domains you desire, to 480p or the quality you desire.

  • mpv2anki
    A simple way to add notes to Anki with Audio, screenshots and/or subtitles, with few dependencies.

  • mpvacious
    Make subs2srs-style Anki cards with automatically generated audio-clips and snapshots. Media files are saved in ogg/opus and webp formats to save space on AnkiWeb.

  • mpvSockets
    creates one IPC sockets per mpv instance, instead of one socket for the last started instance. Supports: Linux, MacOS and Windows.

  • mpv_sort_script
    Sort files and directories by name, age, size or randomly, recursively or when coming across a directory.

  • mpv_slicing
    Cut uncompressed fragments of the video.

  • mpv_slicing_copying
    A fork from mpv_slicing. It will cut fragments of the video in original format instead of RGB

  • mpv_thumbnail_script ⚠️ original, outdated release file
    mpv_thumbnail_script fork, updated release file
    Show preview thumbnails when hovering over the seekbar, without the need for external dependencies.

  • mpv-scripts

    • blackout - Couldn't find the "Boss key", but you don't want someone (or simply anyone) to see what you are watching?
    • fuzzydir - This script will read your paths from mpv.conf, find those which end with ** and explode them for good! For example, imagine we have a directory named subs, which contains a and b subdirectories.
    • reload - Sometimes you have unstable internet connection, or YouTube server dies, or your computer was sleeping for too long, or whatever. The thing is: you were watching something, you lost the connection, MPV doesn't want to play it further, you don't want to find the video again and then seek it to the moment you were watching.
  • mpv-twitch-chat
    Show Twitch chat messages as subtitles when watching Twitch VOD with mpv.

  • mpv-txt
    Play text files using text-to-speech (TTS). (Works on Linux, MacOS; see Dependencies).

  • mpv-volnorm
    Client-server setup to provide EBU R.128 volume leveling to MPV, even if files stored on a server and played on multiple machines. (Works on Linux, probably all Unix-like; server in Perl).

  • mpvcontextmenu
    Comprehensive context-menu forked from Tcl/Tk context menu. Uses other scripts (see Requirements).

  • mpvmenu
    Adds a pop-up menu to mpv, which can be bound to a key or button

  • multi-command-if
    Very powerful conditional logic and multiple action engine for your keybindings, without having to write a single line of code!

  • multiloop
    Loop over multiple A-B points (and save them for future use)

  • multisocket
    Creates a numbered socket for each instance of mpv

  • myshows
    Marks currently watched episode on MyShows website.

  • nextfile
    Force opens next or previous file in the currently playing files directory.

  • notify
    Adds desktop notifications to the mpv media player, which show metadata like artist, album name and track name when the track changes.

  • notify-send
    A simpler and more recent notifications script for libnotify-compatible (i.e. Unix-like) notifications daemons only. Supports cover art.

  • oled-screensaver
    To prevent burn-ins on OLED TVs, this script fades-in a black screen after 15 seconds when paused in fullscreen.

  • ontop-playback
    Disables the ontop property when pausing, and enables it again when unpausing the video, if it was disabled. Change it only when the player is not in fullscreen to prevent screen flickering.

  • ontop-only-while-playing Ontop is only active during video playback. Ontop is automatically disabled during idle, pause and is able to be dynamically disabled without having to restart unlike the previous script.

  • ontop-window
    Disables the ontop property when in fullscreen, and enables it again when in window mode, if it was disabled. Heavily inspired by ontop-playback.

  • open-anilist-page
    Opens the Anilist page that corresponds to the currently playing (anime) file.

  • open-imdb-page
    Opens the IMDb page that corresponds to the currently playing media file.

  • open-kinopoisk-page
    Opens the kinopoisk page that corresponds to the currently playing media file.

  • open-file-dialog
    (Windows) Launches a regular Windows file open dialog for loading videos.

  • osc-style
    Change the mpv osc to a more beautiful and practical look, which is the osc theme feature, a variety of styles to choose from,this is a tutorial and a preview.

  • osc-show-hide-hotkey
    Toggles the on-screen controller with a hotkey
    Video demonstration

  • osd-bar
    Always show osd progress bar, with the more beautiful color matching in the configuration file, you can make the osd progress bar display the current progress at the bottom of the window beautifully,this is a preview.

  • osd-clock
    Periodically shows OSD clock (many configurable options).

  • pause-indicator
    Displays a momentary icon that flashes in the middle of the screen, similar to YouTube.

  • pause-when-minimize
    Pauses the player video when minimizing, and unpauses it when brought up again.

  • peerflix-hook
    Allows streaming of magnet links using peerflix, similar to youtube-dl.

  • mpv-peerflix-hook
    Alternate version of the above gist that works with multiple running peerflix instances and only kills the correct peerflix instance when exiting.

  • webtorrent-hook
    Allows streaming torrents using webtorrent (same as mpv-peerflix-hook but using webtorrent instead). Webtorrent-cli can play in mpv with webtorrent --mpv, but this script allows using torrent identifiers as the file argument to mpv or pasting them into the current playlist using one of the pasting scripts listed here. It also supports additional functionality like automatic file cleanup and the ability to remember the last file played in the torrent. See the readme for more information. See here for a comparison with the other javascript webtorrent plugin. I recommend this plugin over my others (mpv-peerflix-hook and btfs-stream).

  • persist-properties
    Keeps volume and other properties between sessions

  • pitchcontrol
    Adjusts audio pitch in half-tone steps.

  • playlistmanager
    This script allows you to see and interact with your playlist in an intuitive way.

  • playlist-navigator OSD display features easy navigation with scrolling and search to select files to play or remove from playlist.

  • playlistnoplayback
    If you enable the save play history and progress function, this lua script can solve the problem of automatically jumping to the previous playback progress when playing the next file when playing the playlist, that is, let the playlist always play the next file from the beginning every time. the limitations of this script, please see the comments section in the content.

  • playlist-view
    Display and navigate the playlist in a grid view of thumbnails.

  • progressbar
    A minimalistic OSC replacement. It provides a small, unintrusive progress bar that persists at the bottom of the video window.

  • profile-cycle
    Cycle between your custom defined profiles while watching the video.

  • quack
    Temporarily lower the volume after a seek to save your ears from unpleasant sudden volume changes.

  • quick-scale
    Quickly scale the video player to a target size, with full control over target scale and max scale. Helps you effortlessly resize a video to fit on your desktop, or any other video dimensions you need!

  • radio-title
    Automatically fetch current playing title from webradio website when not provided by stream.

  • recent
    Recently played menu using a history log file in config directory, display using a hotkey or automatically when idle.

  • redshift_toggle
    Toggle redshift when loading a video file and when reaching the end of said file. Now also handles pause.

  • rewindPlaylist
    keybind to rewind to the end of the previous playlist entry

  • toggle-redshift-on-play (kill-restart-version)
    Based on the above one, this one also re-enables redshift when pausing and disables it again when unpausing.

    The alternative version achieves the same by killing and restarting redshift (more consistent).

  • trakt-mpv
    Connects trakt.tv with mpv and automatically scrobbles movies/shows. (Python is also needed for this script to function)

  • reload
    When an online video is stuck during buffering or got slow CDN source, restarting often helps. This script provides automatic reloading of videos that didn't have buffering progress for some time, keeping the current time position. It also adds Ctrl+r keybinding to reload video manually.

  • repl
    A REPL for input commands that is displayed on the video window.

  • review
    Allows to remove files viewed quickly from within mpv

  • rubberband_helper
    rubberband is great for keeping voices intelligible when the video playback is speed up, but it consumes a fair amount of CPU. This script allows you to degrade the audio filter back to scaletempo when playback speeds are high enough to make rubberband pointless. Note: mpv must be built with rubberband support; see mpv --af=rubberband=help

  • save-sub-delay
    This script saves the sub-delay quantity for each file. When next time the file is opened, sub-delay is automatically restored.

  • seek-to
    Seek to an absolute timestamp specified via keyboard input.

  • Serkio Tagger
    Annotate videos with tags while you watch.

  • scale-win
    Restore old "window-scale" behavior, so to make "add window-scale +/-" keybinds work again when any of the autofit-* options are defined.

  • search-page
    Allows users to search for keybinds, commands, options, and properties, and have the results display on the OSD. Good for reminding oneself about forgotten keybinds without leaving the player.

  • segment-linking
    Adds support for matroska next/prev segment linking using the mkvinfo commandline tool.

  • show-filename
    Show the name of the current playing file.

  • show-stream-title
    Show OSD stream/channel title when switching the IPTV channels from m3u playlist.

  • simple-loader
    (Linux) Browse dirs and files on OSD, and launch them with mpv.

  • simple-mpv-webui
    Web-based remote control.

  • skipchapters
    Automatically skip chapters matching a given list of regular expressions (eg. "OP" or "Opening").

  • skiptofade
    Seeks forward until a black screen appears. Built to skip openings. Uses the lavfi blackdetect filter.

  • skiptosilence
    This script skips to the next silence in the file. The intended use for this is to skip until the end of an opening or ending sequence, at which point there's often a short period of silence.

  • SmartCopyPaste
    Powerful copy paste features. Paste URL or local videos directly to mpv. Copy URL or currently playing video in mpv player then paste to access at a later time. Add videos to playlist simply by pasting. Much more explained in the link above.

  • SmartCopyPaste-II
    Powerful copy paste and bookmark features using a log file; log file location for Windows OS: %APPDATA%\mpv\mpvClipboard.log, for Linux OS and MAC OS: ~\.config\mpv\mpvClipboard.log. Paste URL or local videos directly to mpv. Copy URL or currently playing video in mpv player then paste to access at a later time. Bookmark video and its time by copying then paste to access bookmark. Much more explained in the link above.

  • SmartHistory
    Powerful history features that logs videos that you opened into a log file along with the time you have reached on each video; log file location for Windows OS: %APPDATA%\mpv\mpvHistory.log, for Linux OS and MAC OS: ~\.config\mpv\mpvHistory.log. Optional resume by [ctrl]+[r] for all videos you have played (auto bookmark). Immediately play last opened video by [ctrl]+[l]. Much more explained in the link above.

  • SimpleUndo
    Simple undo feature. If you accidentally seek/jump to a different time in the video, press undo [ctrl]+[z] to return to your previous time and vice-versa. More details in the link above.

  • UndoRedo
    Undo and Redo feature for mpv. If you seek/jump to a different time in the video, press undo [ctrl]+[z] to linearly undo the seeks/jumps in the video, and press redo [ctrl]+[y] to linearly return to previous undo positions. More details in the link above.

  • sopcast
    Adds support for sop:// urls.

  • speed-transition
    Increases playback speed if a subtitle will not be displayed soon. Resumes normal speed just before the subtitle shows up.

  • speed-transition-Audio
    Experiment similar to speed-transition. changes playback speed based on volume thresholds.

  • speed
    Changing speed based on regex of filename/path.

  • speed
    Always show current playback speed on the OSD

  • speed - adjusted timings
    Recalculates osd-msg3 timecodes with speed != 1

  • splice
    A script that helps you create a video out of cuts made in the current playing video.

  • spotify
    Add current playing title to an user defined Spotify playlist.

  • sub
    Select subtitle by id via input box (Windows)

  • stopCache
    stops the demuxer from downloading more if it is already past --end

  • subit
    Yet another script for downloading subtitles using subliminal. Supports better customization of options, such as easy language selection, authentication for providers that need it, and support for URLs.

  • subselect Tk
    Download subtitles with a GUI - select the one you want and automatically load them up in mpv. Supports searching for arbitrary names and different subtitle languages. Works on Windows and Linux, possibly macOS.

  • sub-cut
    Extract a part of the video as audio or video with subtitles.

  • sub-bilingual
    Generate bilingual subtitles.

  • sub-bookmarks
    Save current position and subtitles in .txt file.

  • sub-export
    Extract selected subtitles from .mkv file.

  • sub-playback
    Add interactive move, i.e. automatically pause at the end of the fragment with option to continue playback or replay it again with or without subtitles.

  • sub-replay
    Replay previous sentence.

  • sub-search
    Search for phrase in subtitles and skip to it.

  • sub-select
    An advanced subtitle track selector that utilises the current audio language, and the language and titles of the subtitle tracks.

  • sub-sentences
    Generate subtitles with sentences.

  • sub-voracious
    Reading and listening practice.

  • sub-pause
    Automatically pause just before the end of each subtitle line. Also allows replaying the currently active line.

  • sub-skip
    Automatically skip parts of a video that don't contain any subtitles. Does so by either fast-forwarding or seeking.

  • subs2srs
    Automatically add new card in Anki with audio, picture and text.

  • stats
    Display some statistics about the currently played file on-screen.

  • streamcache
    Provides for more network-glitch-robust caching of live streams by adjusting replay speed.

  • streamsave
    Save live streams and clip videos without encoding.

  • time
    Shows the current time or the time at which playback will end.

  • timer
    Allows the user to set a starting time and an ending time and see the time elapsed between those points with millisecond precision.

  • trackselect
    Automatically select your preferred tracks based on title.

  • tree-profiles
    Automatically apply profiles to certain directories or files.

  • trim.lua
    Adds trim mode for mpv — turn mpv into Lossless Audio / Video Editor.

  • total_playtime
    Shows total playtime of current playlist.

  • trueautosub
    Improved fork of autosub, Automatically downloads subtitles if not present using subliminal. (osx/linux only)

  • tts-subs
    Use voice synthesis to read subtitles out-loud (Currently uses say on MacOS. Could be adapted to use espeak. PR for windows support welcome.)

  • tv-output
    (Linux) TV output handling - activate on mpv playback and deactivate on mpv shutdown.

  • use-cpu
    If the width of the video is greater than 3000 or the height of the video is greater than 2000, it will automatically switch back to using cpu decoding. If you feel inappropriate, you can modify the default values of the video width and height.

  • unseen-playlistmaker
    Keeps track of watched files locally, and creates playlists of unwatched files.

  • uosc
    Minimalist proximity based UI replacement. Video preview.

  • videoclip
    Create video and audio clips with mpv. Supports mp4 and webm formats.

  • visualizer
    Various audio visualization.

  • vlcaspectratio
    Implements a VLC style aspect ratio hotkey 'a' that stretches the video to different aspect ratios.

  • vlccrop
    Implements a VLC style crop hotkey 'c' that cycles through crop settings, useful for cropping letter-boxed or pillar-boxed content.

  • vo_battery
    (Linux) Choose the VO based on if the laptop is on battery or not.

  • vr-reversal
    View 3D side-by-side video as a 2D video, allows you to look around and zoom within the video, logs the head motions to a file for later rendering out to a 2D video with ffmpeg.

  • writename Write the currently playing filename/path to a file, optionally skipping/removing from current playlist and muting.

  • webm
    Simple WebM maker for mpv, with no external dependencies.

  • when-to-loop
    Intelligently decide when mpv should loop, i.e. while shuffling or while playing a short file.

  • xrandr
    Automatically sets the display refresh rate to the one best suitable for the video played

  • Yomichampv
    A simple solution for integration with Yomichan - a browser-based japanese dictionay.

  • youtube-download
    Download youtube video or audio with one key press

  • youtube-quality
    A menu for changing youtube video quality (ytdl-format) on the fly, as though you were using the web player.

  • youtube-search
    A script that allows users to search youtube and open results from within mpv. Requires a couple of extra API scripts, along with curl and a personal youtube API key.

  • youtube-upnext
    A menu for (auto) playing youtube's "up next"/recommended videos, that show up on the right side on the website.

  • ytdl-preload
    Precache the next entry in your playlist if it is a network source by downloading it to a temp file ahead of time. Updated to download all streams in parallel so you can watch it while it downloads.

  • zones
    Handles commands depending on where the mouse pointer is at, mostly for mouse wheel handling.

  • abs-screenshot
    Uses Exiftool to get the "Date/Time Original" and saves a screenshot with the name being the actual time the video was taken.

If you want to write your own Lua scripts, have a look at the documentation of mpv's Lua interface.

User Shaders

  • Anime4K
    A series of shaders designed to scale and enhance anime. Includes shaders for line sharpening, artefact removal, denoising, upscaling, and more.

  • LumaSharpenHook
    A sharpen filter similar to using Unsharp Mask in Photoshop ported from SweetFX shader pack.

  • SSimDownscaler, SSimSuperRes, Krig, Adaptive Sharpen, etc.

    • SSimDownscaler: Perceptually based downscaler. More information is here.
    • SSimSuperRes: The aim of this shader is to make corrections to the image upscaled by mpv built-in scaler (removes ringing artifacts, restores original sharpness, etc).
    • Krig: Chroma scaler that uses luma information for high quality upscaling.
  • Noise
    Simplistic filter that adds a tunable amount of uniform white noise to the output.

  • Film Grain v1 and Film Grain v2
    Two configurable shaders for applying gaussian-weighted white noise to the image. v2 is a smoothed version of v1, which uses an extra gaussian blur pass to shift the grain frequency spectrum. Both versions can trivially be adapted to add film grain to other channels besides LUMA by just adding it to the list of hooks.

  • Antiringing
    This is an antiringing filter that works by clamping to the local neighbourhood. Sort of inspired by the mpv built-in antiringing algorithm, but it's extended in such a way that it also works well for polar (EWA) filters, which the mpv built-in algorithm does not support at all.

  • nnedi3 and ravu
    User shaders for prescaling.

  • FSRCNN
    Prescaler based on layered convolutional networks.

  • un360
    Converts equirectangular 360 degree video to be watchable, at a fixed perspective.

  • acme-0.5x
    Fastest 0.5x downscaler for mpv, useful for 4K video playback on FHD screen (bypass chroma upscaling and color conversion in 4K resolution).

  • Nonlinear stretch
    Non-linear stretch scaling. use with --no-keepaspect.

  • lensfix
    Fix radial distortion commonly found in wide angle action cameras.

  • hyperview
    Dynamic stretching filter aiming to bring effects similar to GoPro SuperView.

VapourSynth Scripts

  • mvtools
    Use MVTools's BlockFPS function to perform motion interpolation on the video in realtime.

  • nnedi3
    Use NNEDI3 to double the resolution of the video. This always performs a single doubling. Note that the vapoursynth-nnedi3 filter is so slow that this practically can't be used in realtime, so it's not much use in practice.

  • flash3kyuu
    Use flash3kyuu to deband the video, with reasonable (mildly grainy) default settings. Obsolete: mpv now ships with a similar debanding filter as shader.

  • neo_f3kdb_dither
    Use neo_f3kdb to dither the video, with dynamic grain as the default.

  • CCD
    Use CCD (Camcorder Color Denoise) to apply chroma denoise/derainbow to video.

C Plugins

  • mpv-mpris
    Adds support for MPRIS2 protocol

  • mpv-libunity
    Shows a progress bar on your panel/dock using libunity

  • shutup
    Set --quiet when stderr or stdout aren't connected to a terminal

  • mpv-limited-autoload
    Auto-load files in a lazy way by limiting how many are loaded into playlist at once

  • kde-do-not-disturb
    Disable the notifications while mpv is running

  • kde-night-color
    Disable Night Color while mpv is running

Other

  • play-with
    A WebExtension that can open a video stream on a web page with an external player.

  • playphrase
    Search and play phrases from movies and audiobooks.

  • mpv-sponsorblock
    Skip sponsor spots in youtube videos. A fully-featured port of the sponsorblock browser extension.

⚠️ **GitHub.com Fallback** ⚠️