Skip to content

Simple WebM maker for mpv, with no external dependencies.

License

Notifications You must be signed in to change notification settings

serenae-fansubs/mpv-webm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This is a slightly improved fork of ekisu/mpv-webm.

Improvements:

  • Tweaked defaults and added better support for VP9.
  • New "Multiple Attempts" feature:
    • The encoder can automatically try over and over again with successively higher CRF values until it reaches your target filesize.
    • Abort Factor (default: 4) will cancel multiple attempts if the output filesize is more than 4x the target.
    • Allows you to easily create webms that adhere to a maximum filesize (e.g. 3 MB) but without needing to use the "strict mode" encoding.
  • New "Snap to edges" feature for crop page:
    • Press "s" to automatically snap the crop selection to the edges, if the current point is close.
  • New "Fine-shifting" feature for Scale Height on options page:
    • Hold Ctrl while pressing Left or Right to shift the Scale Height by 1 instead of being constrained by the default options list.

mpv-webm

Simple WebM maker for mpv, with no external dependencies.

sample

Installation

Place this in your mpv scripts folder. The scripts folder can be found (or created, if it does not already exist) in the following paths:

  • Linux/macOS: ~/.config/mpv/scripts, where ~ is your user's home folder;
  • Windows: mpv will try to load scripts from %APPDATA%\mpv\scripts, followed by <mpv binary folder>\portable_config\scripts and <mpv binary folder>\mpv\scripts; where %APPDATA% is a Windows-specific directory (typing %APPDATA% on Windows + R should take you to that folder), and <mpv binary folder> is the folder that contains the mpv.exe binary.

Additional details about the folder structure can be found in the mpv's manual.

By default, the script is activated by the W (shift+w) key.

Usage

Follow the on-screen instructions. Encoded WebM files will have audio/subs based on the current playback options (i.e. will be muted if no audio, won't have hardcoded subs if subs aren't visible).

Configuration

You can configure the script's defaults by either changing the options at the beginning of the script, or placing a webm.conf inside the script-opts directory. A sample webm.conf file with the default options can be found here. Note that you don't need to specify all options, only the ones you wish to override.

Building (development)

Building requires moonc, the MoonScript compiler, added to the PATH, and a GNUMake compatible make. Run make on the root directory. The output files will be placed under the build directory.

About

Simple WebM maker for mpv, with no external dependencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • MoonScript 70.3%
  • Python 12.0%
  • Nix 7.8%
  • Lua 7.8%
  • Makefile 2.1%