{"id":14979828,"url":"https://github.com/cogentredtester/mpv-scripts","last_synced_at":"2025-04-09T12:04:42.434Z","repository":{"id":50410055,"uuid":"248175494","full_name":"CogentRedTester/mpv-scripts","owner":"CogentRedTester","description":"A collection of scripts for mpv player","archived":false,"fork":false,"pushed_at":"2024-01-18T09:36:40.000Z","size":359,"stargazers_count":270,"open_issues_count":3,"forks_count":18,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-09T12:04:39.009Z","etag":null,"topics":["commands","cycle","editions","ftp","mpv","mpv-player","mpv-script","mpv-scripts","nircmd","ordered-chapters","osd","playlist","profiles","sessions","syncplay","youtube-search"],"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/CogentRedTester.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}},"created_at":"2020-03-18T08:23:54.000Z","updated_at":"2025-04-08T14:31:27.000Z","dependencies_parsed_at":"2023-11-07T08:30:05.171Z","dependency_job_id":"ecb7771a-48ef-4f94-8a59-17244e405012","html_url":"https://github.com/CogentRedTester/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/CogentRedTester%2Fmpv-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CogentRedTester","download_url":"https://codeload.github.com/CogentRedTester/mpv-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036063,"owners_count":21037092,"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":["commands","cycle","editions","ftp","mpv","mpv-player","mpv-script","mpv-scripts","nircmd","ordered-chapters","osd","playlist","profiles","sessions","syncplay","youtube-search"],"created_at":"2024-09-24T14:00:44.831Z","updated_at":"2025-04-09T12:04:42.404Z","avatar_url":"https://github.com/CogentRedTester.png","language":"Lua","readme":"# My Lua scripts\n\nA collection of scripts I have written for mpv over the years. Small ones are kept in this repository, larger ones have their own.\nPlease keep in mind that not all of these scripts are maintained, and some of these were experiments which didn't pan out.\nNevertheless, feel free to submit issues if something breaks, and if you have any interesting script ideas feel free to make a\nsuggestion in the discussions tab.\n\n## after-playback\n\nSends commands to nircmd (windows only) on playback finish. Commands include sleep, hibernate, shutdown, lock. Full list is in the file\n\n## [change-refresh](https://github.com/CogentRedTester/mpv-changerefresh)\n\nUses nircmd (windows only) to change the resolution and refresh rate of the monitor to match the playing video.\nSaves the original monitor resolution and reverts changes on exit and when hotkey is pressed.\nFull description in file.\n\n## [chapter-list](https://github.com/CogentRedTester/mpv-scroll-list/blob/master/examples/chapter-list.lua)\n\nCreates an scrollable list of chapters to allow more granular chapter selection.\nRequires [scroll-list](#scroll-list)\n\n## command-timeout\n\nSends an input command after a specified delay. I suggest using the newer `delay-command.lua` instead. This script is deprecated.\n\n## [coverart](https://github.com/CogentRedTester/mpv-coverart)\n\nAutomatically scans the directory of the currently loaded file and loads any valid cover art into mpv as additional video tracks.\nHas options for selecting what file names and types are considered valid.\n\n## cycle-commands\n\nCycles through a series of commands on a keypress. Each iteration of the cycle can contain as many commands as one wants. Syntax details are at the top of the file.\n\n## cycle-profile\n\nCycles through a list of profiles sent via a script message and prints the profile-desc to the OSD. More details at the top of the file\n\n## delay-command\n\nAn extremely simple script which executes an input.conf command only after a set delay.\n\n## display-profiles\n\nAutomatically applies profiles when the mpv window is moved to a new display\n\n## display-name\n\nA simple script designed for windows that saves the name of the monitor that mpv is using into\nthe `display_name` field of the `shared_script_properties` and `user-data` properties.\nThis means that one can use conditional auto profiles with the name of the monitor.\nThis is necessary on windows because the default display names that mpv uses\nare in the form `\\\\.\\DISPLAY#`, which are completely useless for setting persistent profiles\nas the numbers can change between boots or display configurations.\n\n## [dvd-browser](https://github.com/CogentRedTester/mpv-dvd-browser)\n\nThis script uses the `lsdvd` commandline utility to allow users to view and select titles for DVDs from directly within mpv. The browser is interractive and allows for both playing the selected title, or appending it to the playlist. It is designed to be used stand-alone, or as an addon for file-browser. It also has automatic playlist support for DVDs.\n\n## editions-notification\n\nPrints a message on the OSD if editions are found in the file, and temporarily switches the osd-playing-message to the editions-list property when switching. This makes it easier to tell the number and names while navigating editions.\n\n## [file-browser](https://github.com/CogentRedTester/mpv-file-browser)\n\nA universal no-dependency file browser that uses mpv's OSD.\n\n## ftp-compat\n\nChanges some options when using the ftp protocol for better user experience\n\n## keep-session\n\nAutomatically saves the current playlist on exit and allows the user to reload it next time they boot mpv\n\n## music-mode\n\nSwitches to a music profile when an audio file is being played and switches back when a non-audio file is played\n\n## onedrive-hook\n\nAutomatically converts a onedrive share link into a direct path which mpv can play, Windows only.\n\n## [open-file](https://github.com/CogentRedTester/mpv-user-input/blob/master/examples/open-file.lua)\n\nUses [mpv-user-input](#user-input) to create an open file dialogue box.\n\n## ordered-chapters-playlist\n\nA script to point the player towards an ordered chapters playlist for devices which don't have direct access to their file systems.\n\n## pause-indicator\n\nPrints a pause icon in the middle of the screen when mpv is paused\n\n## playlist-shuffle\n\nshuffles the playlist and moves the current file to the start of the playlist\n\n## profile-command\n\nParses a script-opt and sends it as a command. Allows input commands to be sent via profiles.\n\n## [read-file](https://github.com/CogentRedTester/mpv-read-file)\n\nAn API that provides scripts with a universal interface for reading text files.\nThis allows scripts to easily read network files over a variety of protocols.\n\n## save-playlist\n\nA script for saving m3u playlists based on mpvs current internal playlist.\nUsers can set the name and directory to save the file in the initial script message,\nor can enter custom strings in the osd.\n\nThis script requires [mpv-user-input](#user-input).\n\n## [scroll-list](https://github.com/CogentRedTester/mpv-scroll-list)\n\nA lua module to easily allow the creation of interactive scrollable lists.\n\n## [search-page](https://github.com/CogentRedTester/mpv-search-page)\n\nAllows in-player searching of keybinds, commands, properties, and options, and displays the results on the OSD.\n\nRequires [scroll-list](#scroll-list) and [user-input](#user-input).\n\n## [segment-linking](https://github.com/CogentRedTester/mpv-segment-linking)\n\nImplements support for Matroska [hard segment linking](https://www.ietf.org/archive/id/draft-ietf-cellar-matroska-06.html#name-hard-linking).\nThis is **not** the same as [ordered chapters](https://www.ietf.org/archive/id/draft-ietf-cellar-matroska-06.html#name-medium-linking), which mpv already supports natively.\n\n## show-errors\n\nPrints error messages onto the OSD\n\n## [sub-select](https://github.com/CogentRedTester/mpv-sub-select)\n\nAllows you to configure advanced subtitle track selection based on\nthe current audio track and the names and language of the subtitle tracks.\n\n## syncplay-compat\n\nChanges some settings to work well with [Syncplay](https://syncplay.pl/). Currently designed to provide support for local playlists.\n\n## temp-profiles\n\nAllows you to apply a profile with a timeout, after which another profile is called to revert the changes. Works well with osc layout changes.\n\n## [user-input](https://github.com/CogentRedTester/mpv-user-input)\n\nAn API to allow scripts to request text input from the user over the OSD.\nThe script is built around a modified version of mpv's console.lua, so supports almost all the same keybinds.\n\n## [user-data-loader](https://github.com/CogentRedTester/mpv-user-data-loader/tree/master)\n\nA script that allows the mpv `user-data` property to be set at launch and runtime using config files and `script-opts`.\n\n## vars\n\nThis script allows users to set custom variables which can be used in commands and profiles.\n\n## youtube-search\n\nA script that allows users to search and open youtube results from within mpv.\nRequires [scroll-list](#scroll-list), [user-input](#user-input), curl, and a youtube API key.\nAlternatively, an Invidious frontend can be used for searches without requiring an API key.\nSee the file header for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogentredtester%2Fmpv-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcogentredtester%2Fmpv-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogentredtester%2Fmpv-scripts/lists"}