{"id":13583984,"url":"https://github.com/occivink/mpv-scripts","last_synced_at":"2025-04-06T21:33:55.096Z","repository":{"id":40589181,"uuid":"72875919","full_name":"occivink/mpv-scripts","owner":"occivink","description":"Various scripts for mpv","archived":false,"fork":false,"pushed_at":"2025-03-09T09:35:17.000Z","size":117,"stargazers_count":453,"open_issues_count":40,"forks_count":39,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T15:01:49.668Z","etag":null,"topics":["blur","crop","encode","ffmpeg","lua","mpv","script","seek"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/occivink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-04T18:44:52.000Z","updated_at":"2025-04-01T03:58:43.000Z","dependencies_parsed_at":"2024-11-06T00:32:35.245Z","dependency_job_id":"7fd50d47-31cd-4467-b4b9-5b70596d39f8","html_url":"https://github.com/occivink/mpv-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/occivink%2Fmpv-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/occivink%2Fmpv-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/occivink%2Fmpv-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/occivink%2Fmpv-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/occivink","download_url":"https://codeload.github.com/occivink/mpv-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557060,"owners_count":20958036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blur","crop","encode","ffmpeg","lua","mpv","script","seek"],"created_at":"2024-08-01T15:03:56.461Z","updated_at":"2025-04-06T21:33:50.253Z","avatar_url":"https://github.com/occivink.png","language":"Lua","readme":"# Foreword\n\nThese 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](https://mpv.io/manual/master/#lua-scripting) for installation instructions).  \n\n[![demo](https://i.vimeocdn.com/filter/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F641523401_1280x720.jpg\u0026src1=https%3A%2F%2Ff.vimeocdn.com%2Fimages_v6%2Fshare%2Fplay_icon_overlay.png)](https://vimeo.com/222879214)\n\n## Bindings\n\nNone of these scripts come with default bindings. Instead, you should set your own in `input.conf`, see the example in this repo.\n\n# crop.lua\n\nCrop the current video in a visual manner. \n\nUX largely inspired by [this script](https://github.com/aidanholm/mpv-easycrop), 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.\n\nPress 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.  \n\nNote that [hardware decoding is in general not compatible with filters](https://mpv.io/manual/master/#options-hwdec), and will therefore not work with this script.\n\n# encode.lua\n\n**You need ffmpeg in your PATH (or in the same folder as mpv) for this script to work.**\n\nMake an extract of the video currently playing using `ffmpeg`. \n\nPress the configured binding to set the beginning of the extract. Then, press ENTER to set the end and start encoding.\n\nBy 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. \n\nSee `script-opts/encode_webm.conf` for the default options and a description of them. `script-opts/encode_slice.conf` contains another example profile. \n\n# seek-to.lua\n\nSeek to an absolute position in the current video by typing its timestamp.\n\nToggle with whatever binding you chose. Move the current cursor position with \u003ckbd\u003e←\u003c/kbd\u003e and \u003ckbd\u003e→\u003c/kbd\u003e,  Change the number currently selected with the number keys (duh). Press \u003ckbd\u003eEnter\u003c/kbd\u003e to seek to the entered position.\nHolds an internal history for timestamps that have been previously navigated, accessible with \u003ckbd\u003e↑\u003c/kbd\u003e and \u003ckbd\u003e↓\u003c/kbd\u003e.\n\n# blacklist-extensions.lua\n\nAutomatically remove playlist entries by extension according to a black/whitelist. Useful when opening directories with mpv.\n\nThe script doesn't do anything by default, you need to copy `script-opts/blacklist_extensions.conf` and modify it to your liking.\n\n# blur-edges.lua\n\nFills the black bars on the side of a video with a blurred copy of its edges.\n\nThe script defines a `toggle-blur` command that you can bind.  \nIt can be configured via `script-opts/blur_edges.conf`.\n\n# misc.lua\n\nSome commands that are too simple to warrant their own script. Have a look at the source in case you're curious.  \n","funding_links":[],"categories":["Lua","Other"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foccivink%2Fmpv-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foccivink%2Fmpv-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foccivink%2Fmpv-scripts/lists"}