{"id":43802207,"url":"https://github.com/harisekhon/mpv-scripts","last_synced_at":"2026-02-10T02:00:58.449Z","repository":{"id":336366772,"uuid":"1148616988","full_name":"HariSekhon/MPV-Scripts","owner":"HariSekhon","description":"Lua scripts to enhance the behaviour of the excellent open source MPV video player","archived":false,"fork":false,"pushed_at":"2026-02-04T03:52:36.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-06T05:53:45.717Z","etag":null,"topics":["lua","lua-script","lua-scripting","mplayer","mpv"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/HariSekhon.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-03T06:59:37.000Z","updated_at":"2026-02-04T03:52:40.000Z","dependencies_parsed_at":"2026-02-04T15:03:36.474Z","dependency_job_id":null,"html_url":"https://github.com/HariSekhon/MPV-Scripts","commit_stats":null,"previous_names":["harisekhon/mpv-scripts"],"tags_count":0,"template":false,"template_full_name":"HariSekhon/Template-Repo","purl":"pkg:github/HariSekhon/MPV-Scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HariSekhon%2FMPV-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HariSekhon%2FMPV-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HariSekhon%2FMPV-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HariSekhon%2FMPV-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HariSekhon","download_url":"https://codeload.github.com/HariSekhon/MPV-Scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HariSekhon%2FMPV-Scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29179560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T22:12:24.066Z","status":"ssl_error","status_checked_at":"2026-02-06T22:12:09.859Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["lua","lua-script","lua-scripting","mplayer","mpv"],"created_at":"2026-02-05T22:07:31.481Z","updated_at":"2026-02-06T23:00:27.296Z","avatar_url":"https://github.com/HariSekhon.png","language":"Shell","readme":"# Hari Sekhon - MPV-Scripts\n\n[![GitHub stars](https://img.shields.io/github/stars/HariSekhon/MPV-Scripts?logo=github)](https://github.com/HariSekhon/MPV-Scripts/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/HariSekhon/MPV-Scripts?logo=github)](https://github.com/HariSekhon/MPV-Scripts/network)\n[![LineCount](https://sloc.xyz/github/HariSekhon/MPV-Scripts/?badge-bg-color=2081C2)](https://github.com/boyter/scc/)\n[![Cocomo](https://sloc.xyz/github/HariSekhon/MPV-Scripts/?badge-bg-color=2081C2\u0026category=cocomo)](https://github.com/boyter/scc/)\n[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/HariSekhon/MPV-Scripts/blob/master/LICENSE)\n[![My LinkedIn](https://img.shields.io/badge/LinkedIn%20Profile-HariSekhon-blue?logo=data:image/svg%2bxml;base64,PHN2ZyByb2xlPSJpbWciIGZpbGw9IiNmZmZmZmYiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+TGlua2VkSW48L3RpdGxlPjxwYXRoIGQ9Ik0yMC40NDcgMjAuNDUyaC0zLjU1NHYtNS41NjljMC0xLjMyOC0uMDI3LTMuMDM3LTEuODUyLTMuMDM3LTEuODUzIDAtMi4xMzYgMS40NDUtMi4xMzYgMi45Mzl2NS42NjdIOS4zNTFWOWgzLjQxNHYxLjU2MWguMDQ2Yy40NzctLjkgMS42MzctMS44NSAzLjM3LTEuODUgMy42MDEgMCA0LjI2NyAyLjM3IDQuMjY3IDUuNDU1djYuMjg2ek01LjMzNyA3LjQzM2MtMS4xNDQgMC0yLjA2My0uOTI2LTIuMDYzLTIuMDY1IDAtMS4xMzguOTItMi4wNjMgMi4wNjMtMi4wNjMgMS4xNCAwIDIuMDY0LjkyNSAyLjA2NCAyLjA2MyAwIDEuMTM5LS45MjUgMi4wNjUtMi4wNjQgMi4wNjV6bTEuNzgyIDEzLjAxOUgzLjU1NVY5aDMuNTY0djExLjQ1MnpNMjIuMjI1IDBIMS43NzFDLjc5MiAwIDAgLjc3NCAwIDEuNzI5djIwLjU0MkMwIDIzLjIyNy43OTIgMjQgMS43NzEgMjRoMjAuNDUxQzIzLjIgMjQgMjQgMjMuMjI3IDI0IDIyLjI3MVYxLjcyOUMyNCAuNzc0IDIzLjIgMCAyMi4yMjIgMGguMDAzeiIvPjwvc3ZnPgo=)](https://www.linkedin.com/in/HariSekhon/)\n[![GitHub Last Commit](https://img.shields.io/github/last-commit/HariSekhon/MPV-Scripts?logo=github)](https://github.com/HariSekhon/MPV-Scripts/commits/master)\n\n[![Codacy](https://app.codacy.com/project/badge/Grade/2301baad8cde440ea1c27889a936bf28)](https://app.codacy.com/gh/HariSekhon/MPV-Scripts/dashboard)\n[![CodeFactor](https://www.codefactor.io/repository/github/harisekhon/MPV-Scripts/badge)](https://www.codefactor.io/repository/github/harisekhon/MPV-Scripts)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=HariSekhon_MPV-Scripts\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=HariSekhon_MPV-Scripts)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=HariSekhon_MPV-Scripts\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=HariSekhon_MPV-Scripts)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=HariSekhon_MPV-Scripts\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=HariSekhon_MPV-Scripts)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=HariSekhon_MPV-Scripts\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=HariSekhon_MPV-Scripts)\n\n[![CI Builds Overview](https://img.shields.io/badge/CI%20Builds-Overview%20Page-blue?logo=circleci)](https://harisekhon.github.io/CI-CD/)\n[![Linux](https://img.shields.io/badge/OS-Linux-blue?logo=linux)](https://github.com/HariSekhon/DevOps-Bash-tools#hari-sekhon---devops-bash-tools)\n[![Mac](https://img.shields.io/badge/OS-Mac-blue?logo=apple)](https://github.com/HariSekhon/DevOps-Bash-tools#hari-sekhon---devops-bash-tools)\n\n[![Mac Homebrew](https://img.shields.io/badge/Mac-Homebrew-999999?logo=apple\u0026logoColor=white)](https://brew.sh/)\n[![Alpine](https://img.shields.io/badge/Linux-Alpine-0D597F?logo=alpine%20linux)](https://alpinelinux.org/)\n[![CentOS](https://img.shields.io/badge/Linux-CentOS-262577?logo=centos\u0026logoColor=white)](https://www.centos.org/)\n[![Debian](https://img.shields.io/badge/Linux-Debian-A81D33?logo=debian)](https://www.debian.org/)\n[![Fedora](https://img.shields.io/badge/Linux-Fedora-294172?logo=fedora\u0026logoColor=white)](https://getfedora.org/)\n[![Redhat](https://img.shields.io/badge/Linux-Redhat-EE0000?logo=red%20hat)](https://www.redhat.com/en)\n[![Rocky](https://img.shields.io/badge/Linux-Rocky-10B981?logo=rockylinux\u0026logoColor=white)](https://rockylinux.org/)\n[![Ubuntu](https://img.shields.io/badge/Linux-Ubuntu-E95420?logo=ubuntu\u0026logoColor=white)](https://ubuntu.com/)\n\n[![Repo on GitHub](https://img.shields.io/badge/repo-GitHub-2088FF?logo=github)](https://github.com/HariSekhon/MPV-Scripts)\n[![Repo on GitLab](https://img.shields.io/badge/repo-GitLab-FCA121?logo=gitlab)](https://gitlab.com/HariSekhon/MPV-Scripts)\n[![Repo on Azure DevOps](https://img.shields.io/badge/repo-Azure%20DevOps-0078D7?logo=azure%20devops)](https://dev.azure.com/HariSekhon/GitHub/_git/MPV-Scripts)\n[![Repo on BitBucket](https://img.shields.io/badge/repo-BitBucket-0052CC?logo=bitbucket)](https://bitbucket.org/HariSekhon/MPV-Scripts)\n\n[![Markdown](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/markdown.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/markdown.yaml)\n[![Validation](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/validate.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/validate.yaml)\n[![Kics](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/kics.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/kics.yaml)\n[![Grype](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/grype.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/grype.yaml)\n[![Semgrep](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/semgrep.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/semgrep.yaml)\n[![Semgrep Cloud](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/semgrep-cloud.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/semgrep-cloud.yaml)\n[![SonarCloud](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/sonarcloud.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/sonarcloud.yaml)\n[![Trivy](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/trivy.yaml/badge.svg)](https://github.com/HariSekhon/MPV-Scripts/actions/workflows/trivy.yaml)\n\n\u003c!-- INDEX_START --\u003e\n\n- [Summary](#summary)\n- [MPV](#mpv)\n- [MPV Config](#mpv-config)\n- [MPV Scripts](#mpv-scripts)\n\n\u003c!-- INDEX_END --\u003e\n\n## Summary\n\nLua code to control the behaviour of the excellent open source `mpv` video player.\n\nSee the `scripts/` directory for the Lua code to control MPV.\n\n## MPV\n\n\u003chttps://mpv.io/\u003e\n\n[:octocat: mpv-player/mpv](https://github.com/mpv-player/mpv)\n\n## MPV Config\n\n- `mpv.conf` - MPV settings such as saving position on quit\n\n## MPV Scripts\n\nUnder the `scripts/` directory:\n\n- `resume-conditions.lua` - only resume videos that:\n  - are at least 10 minutes long\n  - have been playing for at least 5 minutes\n  - have a certain file extension\n  - are under a specific directory tree\n- `speed.lua` - sets playback speed if environment variable `MPV_SPEED` is set\n- `delete_on_eof.lua` - delete a video after completed playback if environment variable `MPV_DELETE_ON_EOF` is set to any value\n  - for those videos you downloaded to only watch once\n  - this automatic cleanup helps to save space and reduces you needing to manually delete the video\n\nThe environment variables above are useful when used with direnv for specific video directories\n(eg. I always watch all YouTube videos at double speed and delete them after one complete play).\n\nMigrated from [:octocat: DevOps-Bash-tools](https://github.com/HariSekhon/DevOps-Bash-tools) repo.\n\nRelated Docs:\n\n[:octocat: HariSekhon/Knowledge-Base - Lua page](https://github.com/HariSekhon/Knowledge-Base/blob/main/lua.md)\n\n[:octocat: HariSekhon/Knowledge-Base - MPV page](https://github.com/HariSekhon/Knowledge-Base/blob/main/mpv.md)\n\n## More Core Repos\n\n\u003c!-- OTHER_REPOS_START --\u003e\n\n### Knowledge\n\n[![Knowledge-Base](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Knowledge-Base\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Knowledge-Base)\n[![Diagrams-as-Code](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Diagrams-as-Code\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Diagrams-as-Code)\n\n\u003c!--\n\nNot support on GitHub Markdown:\n\n\u003ciframe src=\"https://raw.githubusercontent.com/HariSekhon/HariSekhon/main/knowledge.md\" width=\"100%\" height=\"500px\"\u003e\u003c/iframe\u003e\n\nDoes nothing:\n\n\u003cembed src=\"https://raw.githubusercontent.com/HariSekhon/HariSekhon/main/knowledge.md\" width=\"100%\" height=\"500px\" /\u003e\n\n--\u003e\n\n### DevOps Code\n\n[![DevOps-Bash-tools](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=DevOps-Bash-tools\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/DevOps-Bash-tools)\n[![DevOps-Python-tools](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=DevOps-Python-tools\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/DevOps-Python-tools)\n[![DevOps-Perl-tools](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=DevOps-Perl-tools\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/DevOps-Perl-tools)\n[![DevOps-Golang-tools](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=DevOps-Golang-tools\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/DevOps-Golang-tools)\n\n\u003c!--\n[![Gist Card](https://github-readme-stats-fast.vercel.app/api/gist?id=f8f551332440f1ca8897ff010e363e03)](https://gist.github.com/HariSekhon/f8f551332440f1ca8897ff010e363e03)\n--\u003e\n\n### Containerization\n\n[![Kubernetes-configs](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Kubernetes-configs\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Kubernetes-configs)\n[![Dockerfiles](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Dockerfiles\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Dockerfiles)\n\n### CI/CD\n\n[![GitHub-Actions](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=GitHub-Actions\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/GitHub-Actions)\n[![Jenkins](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Jenkins\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Jenkins)\n\n### Databases - DBA - SQL\n\n[![SQL-scripts](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=SQL-scripts\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/SQL-scripts)\n\n### DevOps Reloaded\n\n[![HAProxy-configs](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=HAProxy-configs\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/HAProxy-configs)\n[![Terraform](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Terraform\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Terraform)\n[![Packer](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Packer\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Packer)\n[![Ansible](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Ansible\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Ansible)\n[![Environments](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Environments\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Environments)\n\n### Monitoring\n\n[![Nagios-Plugins](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Nagios-Plugins\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Nagios-Plugins)\n[![Nagios-Plugin-Kafka](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Nagios-Plugin-Kafka\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Nagios-Plugin-Kafka)\n[![Prometheus](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Prometheus\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Prometheus)\n\n### Templates\n\n[![Templates](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Templates\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Templates)\n[![Template-repo](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Template-repo\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Template-repo)\n\n### Desktop\n\n[![TamperMonkey](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=TamperMonkey\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/TamperMonkey)\n[![Hammerspoon](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Hammerspoon\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Hammerspoon)\n[![MPV-Scripts](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=MPV-Scripts\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/MPV-Scripts)\n\n### Spotify\n\n[![Spotify-tools](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Spotify-tools\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Spotify-tools)\n[![Spotify-playlists](https://github-readme-stats-fast.vercel.app/api/pin/?username=HariSekhon\u0026repo=Spotify-playlists\u0026theme=ambient_gradient\u0026description_lines_count=3)](https://github.com/HariSekhon/Spotify-playlists)\n\nThe rest of my original source repos are\n[here](https://github.com/HariSekhon?tab=repositories\u0026q=\u0026type=source\u0026language=\u0026sort=stargazers).\n\nPre-built Docker images are available on my [DockerHub](https://hub.docker.com/u/harisekhon/)\nand can be re-generated using the my [Dockerfiles](https://github.com/HariSekhon/Dockerfiles) repo.\n\n\u003c!-- OTHER_REPOS_END --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharisekhon%2Fmpv-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharisekhon%2Fmpv-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharisekhon%2Fmpv-scripts/lists"}