{"repo":"occivink/mpv-scripts","free":true,"listed":false,"github":"https://github.com/occivink/mpv-scripts","clone":"git clone https://github.com/occivink/mpv-scripts.git","description":"Various scripts for mpv","language":"Lua","stars":491,"topics":["mpv","script","lua","encode","crop","blur","seek","ffmpeg"],"license":"Unlicense","category":"media-processing","readme_excerpt":"Foreword These scripts are completely independent. Some of them work together nicely (e.g. scripts/crop.lua and scripts/encode.lua ) but that's it. Just copy whichever scripts you're interested in to your scripts/ directory (see here for installation instructions). Bindings None of these scripts come with default bindings. Instead, you should set your own in input.conf , see the example in this repo. crop.lua Crop the current video in a visual manner. UX largely inspired by this script, code is original. The main difference is that this script supports recursively cropping and is aware of some properties like pan or zoom, there are other subtleties. Press the binding to enter crop mode. Click once to define the first corner of the cropped zone, click a second time to define the second corner. Note that hardware decoding is in general not compatible with filters, and will therefore not work with this script. encode.lua You need ffmpeg in your PATH (or in the same folder as mpv) for this script to work. Make an extract of the video currently playing using ffmpeg . Press the configured binding to set the beginning of the extract. Then, press ENTER to set the end and start encoding. By default, the script creates a webm compatible with certain imageboards. You can create different profiles depending on the type of encode you want to create. In particular, you can change the codecs used, which tracks are active and the filters to apply. See script-opts/encode webm.conf for the def","default_branch":null,"files":null,"tree":[],"storefront":"/r/occivink","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/occivink/mpv-scripts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}