{"id":13835204,"url":"https://github.com/detuur/mpv-scripts","last_synced_at":"2025-07-10T07:31:26.809Z","repository":{"id":43494087,"uuid":"148696413","full_name":"detuur/mpv-scripts","owner":"detuur","description":"This is a collection of my own mpv scripts.","archived":false,"fork":false,"pushed_at":"2023-08-27T03:02:16.000Z","size":35,"stargazers_count":57,"open_issues_count":5,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-20T20:39:02.574Z","etag":null,"topics":["boss-key","lua","mpv","mpv-script"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/detuur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-09-13T20:50:23.000Z","updated_at":"2024-11-18T17:29:52.000Z","dependencies_parsed_at":"2024-01-15T19:24:52.641Z","dependency_job_id":"f887668e-9089-4189-9453-576db6699619","html_url":"https://github.com/detuur/mpv-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/detuur/mpv-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detuur%2Fmpv-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detuur%2Fmpv-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detuur%2Fmpv-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detuur%2Fmpv-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/detuur","download_url":"https://codeload.github.com/detuur/mpv-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detuur%2Fmpv-scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545167,"owners_count":23625404,"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":["boss-key","lua","mpv","mpv-script"],"created_at":"2024-08-04T14:00:58.009Z","updated_at":"2025-07-10T07:31:21.800Z","avatar_url":"https://github.com/detuur.png","language":"Lua","readme":"# mpv-scripts\nThis is a collection of my own mpv scripts. Valuable contributions have been made by:  \n- [@zaza42](https://github.com/zaza42): Linux implementation of boss-key.lua\n- [@microraptor](https://github.com/microraptor): Bug fixes, streamlining,\n  and features to skiptosilence.lua and histogram.lua\n- [@vikas5914](https://github.com/vikas5914): macOS implementation of boss-key.lua\n\n## boss-key.lua (updated 2023-06-28)\nInstantly pauses and minimises the screen at the push of a button (by default\n`b`). Called like that because you'd want to hide whatever you're watching when\nyour boss (or mom) walks in.\n\nSupports Windows, macOS, and Linux (X11 only, see requirements).\n\nThe default keybind is `b`. You can change this by adding\nthe following line to your `input.conf`:\n```\nKEY script-binding boss-key\n```\n\n### Requirements:\n  - Linux users: `xdotool`. Wayland is currently unsupported. PRs welcome!\n\n## skiptosilence.lua (updated 2022-02-27)\nThis script skips to the next silence in the file. The\nintended use for this is to skip until the end of an\nopening or ending sequence, at which point there's often a short\nperiod of silence.\n\nThe default keybind is `F3`. You can change this by adding\nthe following line to your `input.conf`:\n```\nKEY script-binding skip-to-silence\n```\n\nIn order to tweak the script parameters, you can place the\ntext below in a new file at\n`script-opts/skiptosilence.conf` in mpv's user folder. The\nparameters will be automatically loaded on start.\n\n```\n# Maximum amount of noise to trigger, in terms of dB.\n# The default is -30 (yes, negative). -60 is very sensitive,\n# -10 is more tolerant to noise.\nquietness = -30\n\n# Minimum duration of silence to trigger.\nduration = 0.1\n\n# The fast-forwarded audio can sound jarring. Set to 'yes'\n# to mute it while skipping.\nmutewhileskipping = no\n```\n\n## histogram.lua (updated 2022-02-27)\nThis script exposes a configurable way to overlay ffmpeg histograms in mpv.  \nThere is a substantial amount of config available, but this script does *not*\nsupport config files, because of the nested options. Please edit the options\nin the `opts` array in the script itself.  \n\nThere are three default keybinds:\n - `h`: Toggle the histogram on/off\n - `H` (`Shift+h`): Cycle between the pixel formats available\n - `Alt+h`: Toggle between linear and logarithmic levels\n\nThese keybinds can be changed by placing the following lines\nin your `input.conf`:\n```\nKEY script-binding toggle-histogram\nKEY script-binding cycle-histogram-pixel-format\nKEY script-binding cycle-histogram-levels-mode\n```\n### A note on hardware decoding\nThe histogram filter is not compatible with hardware decoding. As a result, the\ndefault behaviour is to automatically disable any hardware decoding while the\nfilter is on. This behaviour can be changed in the aforementioned `opts` array.\n\n### Waveform version\nA version of this script adapted by [@MikelSotomonte](https://github.com/MikelSotomonte) for displaying waveforms instead can be found at [his repo](https://github.com/MikelSotomonte/mpv-waveform).\n\n![Shamelessly stolen example from ffmpeg's wiki](https://trac.ffmpeg.org/raw-attachment/wiki/Histogram/histogram_overlay.jpg)\n","funding_links":[],"categories":["Video","lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetuur%2Fmpv-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdetuur%2Fmpv-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetuur%2Fmpv-scripts/lists"}