Code Monkey home page Code Monkey logo

mpv-webp-please's Introduction

mpv webp plugin for linux

Lame implementation of mpv webp plugin for linux.

Creates high quality animated webp using mpv hotkeys. Based on mpv webp generator for windows.

Requirements

  • mpv
  • ffmpeg

Installation

Copy scripts, script-opts folders to ~/.config/mpv/.

cp -r scripts script-opts ~/.config/mpv/

Configuration

Edit preferences in ~/.config/mpv/script-opts/webp.conf file.

  • ffmpeg_path - path to ffmpeg.
  • dir - sets the output directory. Default is ~/.
  • rez - sets the resolution of the output webp. Default is 600 width.
  • fps - sets the framerate of the output webp. Default is 15.
  • lossless - set as 0 by default (lossy), change to 1 for lossless. When doing a lossless export, quality will no longer determine the quality, but the encoding efficiency.
  • quality - set as 90 out of 100. It will determine the quality of the webp.
  • compression_level - set as 6 out of 6. The process might take a while, so if you don't want to wait, you should lower it, but the lower the value, the bigger the filesize.
  • loop - number of loops. Use 0 to loop forever, or a specific number of loops. Default is 0.

Keybindings

Plugin provides 3 new commands: set_webp_start, set_webp_end, make_webp. Set custom hotkeys in ~/.config/mpv/input.conf file like so:

# webp bindings
F3  script-binding set_webp_start
F4  script-binding set_webp_end
F5  script-binding make_webp

NOTE: if you don't have input.conf file, copy default one.

Usage

Use hotkeys to define start/end timestamps and generate an image. Title "creating..." at the top right corner indicates that the webp is generating. It may takes a while, so be patient.

Use , and . keys to rewind/foward 1 frame at a time in order to select the desired starting and ending frames of the webp.

TODO

  • restore subtitles option

mpv-webp-please's People

Contributors

doncanjas avatar greqov avatar dyphire avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.