{"id":21917597,"url":"https://github.com/dyphire/mpv-scripts","last_synced_at":"2025-04-07T17:08:29.582Z","repository":{"id":37337380,"uuid":"486564202","full_name":"dyphire/mpv-scripts","owner":"dyphire","description":"userscripts for mpv","archived":false,"fork":false,"pushed_at":"2025-03-21T11:24:38.000Z","size":150,"stargazers_count":78,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-31T16:17:50.202Z","etag":null,"topics":["faster-whisper","lua","lua51","mpv","mpv-script","mpv-scripts","script","scripts","trakt","whisper"],"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/dyphire.png","metadata":{"files":{"readme":"README.md","changelog":"history-bookmark.lua","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":"2022-04-28T11:23:25.000Z","updated_at":"2025-03-23T08:30:27.000Z","dependencies_parsed_at":"2023-12-03T17:24:09.609Z","dependency_job_id":"203c50ad-4596-41b3-95f0-1d407dbe722e","html_url":"https://github.com/dyphire/mpv-scripts","commit_stats":{"total_commits":125,"total_committers":3,"mean_commits":"41.666666666666664","dds":0.04800000000000004,"last_synced_commit":"9aa2fe19d79e4fb44df4a617bff33f927e37a558"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyphire%2Fmpv-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyphire%2Fmpv-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyphire%2Fmpv-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyphire%2Fmpv-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyphire","download_url":"https://codeload.github.com/dyphire/mpv-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694876,"owners_count":20980733,"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":["faster-whisper","lua","lua51","mpv","mpv-script","mpv-scripts","script","scripts","trakt","whisper"],"created_at":"2024-11-28T19:37:27.704Z","updated_at":"2025-04-07T17:08:29.537Z","avatar_url":"https://github.com/dyphire.png","language":"Lua","readme":"# mpv-scipts([中文介绍](README_zh.md))\n\n## adevice-list.lua\n\nInterractive audio-device list menu on OSD. Requires that [scroll-list.lua](https://github.com/CogentRedTester/mpv-scroll-list) be installed.\n\n## auto-save-state.lua\n\nPeriodically saves progress with write-watch-later-config, and also cleans up the watch later data after the file is finished playing (so playlists may continue at the correct file).\n\n## [clipboard.lua](https://github.com/dyphire/mpv-clipboard/blob/dev/clipboard.lua)\n\nProvides generic low-level clipboard commands for users and script writers.\n\nRequires `powershell` on Windows,`pbcopy`/`pbpaste` on MacOS, `xclip` on X11, and `wl-copy`/`wl-paste` on Wayland.\n\nModified from: [CogentRedTester/mpv-clipboard](https://github.com/CogentRedTester/mpv-clipboard)\n\n## chapter-list.lua\n\nInterractive chapter-list menu on OSD. Requires that [scroll-list.lua](https://github.com/CogentRedTester/mpv-scroll-list) be installed.\n\nModified from: [CogentRedTester/mpv-scroll-list/chapter-list.lua](https://github.com/CogentRedTester/mpv-scroll-list/blob/master/examples/chapter-list.lua)\n\n## chapter-make-read.lua\n\nTry to load an external `.chp` \"chapter sidecar file\" when opening a video. (Analog to an external subtitle file like .SRT).\n\nConfiguration:\n\n- `video.mp4.chp` is the chapter file for `video.mp4` with the option `basename_with_ext = true` in `chapter-make-read.lua`\n- `video.chp` for `video.mp4` with the option `basename_with_ext = false` in `chapter-make-read.lua`\n- You could change all parameters of the script by editing your `script-opts/chapter_make_read.conf`, see: [chapter-make-read.lua](chapter-make-read.lua)\n- Timestamps for external chapter files should use the 12-bit format of `hh:mm:ss.sss`.\n- The external chapter files encoding should be UTF-8 and the linebreak should be Unix(LF).\n\nThe script supports external chapter file content in the following formats:\n\n```\n00:00:00.000 A part\n00:00:40.312 OP\n00:02:00.873 B part\n00:10:44.269 C part\n00:22:40.146 ED\n```\n\n```\n00:00:00.000\n00:00:40.312\n00:02:00.873\n00:10:44.269\n00:22:40.146\n```\n\n```\n0:00:00 A part\n0:00:40 OP\n0:02:00 B part\n0:10:44 C part\n0:22:40 ED\n```\n\n```\n0:00:00.000,Title1\n0:17:02.148,Title2\n0:28:10.114,Title3\n```\n\n OGM format (`ogm`)\n\n```\nCHAPTER01=00:00:00.000\nCHAPTER01NAME=Intro\nCHAPTER02=00:02:30.000\nCHAPTER02NAME=Baby prepares to rock\nCHAPTER03=00:02:42.300\nCHAPTER03NAME=Baby rocks the house\n```\n\nMediaInfo format (`mediainfo`)\n\n```\nMenu\n00:00:00.000                : en:Contours\n00:02:49.624                : en:From the Sea\n00:08:41.374                : en:Bread and Wine\n00:12:18.041                : en:Faceless\n```\n\nThis script also supports manually load/refresh,marks,edits,remove and creates external chapter files(It can also be used to export the existing chapter information of the playback file). Usage：\n\nCustomize the following keybinds in your `input.conf`.\n\n```ini\n# Manually load/refresh chapter file\nkey script-message-to chapter_make_read load_chapter\n# Mark chapters\nkey script-message-to chapter_make_read create_chapter\n# Remove current chapter\nkey script-message-to chapter_make_read remove_chapter\n# Edit existing chapter's title\nkey script-message-to chapter_make_read edit_chapter\n# Export chp file\nkey script-message-to chapter_make_read write_chapter chp\n# Export ogm file\nkey script-message-to chapter_make_read write_chapter ogm\n```\n\n- if you want to have the ability to name/rename chapters, the minimum requirement for the mpv version is 0.38.0, or choose to install the [mpv-user-input](https://github.com/CogentRedTester/mpv-user-input)\n- Some recommendations\n\n  - another chapters script: [mar04/chapters_for_mpv](https://github.com/mar04/chapters_for_mpv)\n  - chapter format conversion tool：https://github.com/fireattack/chapter_converter\n\n## [chapterskip.lua](https://github.com/dyphire/chapterskip/blob/dev/chapterskip.lua)\n\nAutomatically skips chapters based on title.\n\nModified from [po5/chapterskip](https://github.com/po5/chapterskip)\n\n## drcbox.lua\n\nDynamic Audio Normalizer filter with visual feedback.\n\nModified from https://gist.github.com/richardpl/0c8011dc23d7ac7b7831b2e6d680114f\n\n## edition-list.lua\n\nInterractive edition-list menu on OSD. Requires that [scroll-list.lua](https://github.com/CogentRedTester/mpv-scroll-list) be installed.\n\n- Prints a message on the OSD if editions are found in the file, and temporarily switches the osd-playback-message to the editions-list property when switching. This makes it easier to tell the number and names while navigating editions.\n\nModified from [CogentRedTester/mpv-scripts/editions-notification.lua](https://github.com/CogentRedTester/mpv-scripts/blob/master/editions-notification.lua)\n\n## history-bookmark.lua\n\nThis script helps you to create a history file `.mpv.history` in the specified path. The next time you want to continue to watch it, you can open any videos in the folder. The script will lead you to the video played last time.\n\nModified from [yuukidach/history-bookmark.lua](https://github.com/yuukidach/mpv-scripts/blob/master/history_bookmark.lua)\n\n## mpv-animated.lua\n\nCreates high quality animated webp/gif using mpv hotkeys. Requires that FFmpeg be installed.\n\nModified from [DonCanjas/mpv-webp-generator](https://github.com/DonCanjas/mpv-webp-generator)\n\n## mpv-torrserver.lua\n\nsends torrent info to [TorrServer](https://github.com/YouROK/TorrServer) and gets playlist. Supports torrent files and magnet links. Requires curl and [TorrServer](https://github.com/YouROK/TorrServer).\n\n### Usage\n\nDrag \u0026 Drop torrent into mpv, or:\n\n```sh\nmpv \u003cmagent link or torrent file\u003e\n```\n\nModified from [kritma/mpv-torrserver](https://github.com/kritma/mpv-torrserver)\n\n## open_dialog.lua\n\nLoad folder/files/iso/clipboard (support url)/other subtitles/other audio tracks/other video tracks. (Windows)\n\n**Note**: Windows 10/11 users are recommended to use it with PowerShell 7. Advantages: better performance, more modern dialog styles.\n\n- Official Installation Command: `winget install Microsoft.PowerShell`\n\nInspiration from [rossy/mpv-open-file-dialog](https://github.com/rossy/mpv-open-file-dialog), [tsl0922/dialog.lua](https://github.com/tsl0922/mpv-menu-plugin/blob/main/lua/dialog.lua)\n\n## [playlistmanager.lua](https://github.com/dyphire/mpv-playlistmanager)\n\nMpv lua script to create and manage playlists\n\nModified from [jonniek/mpv-playlistmanager](https://github.com/jonniek/mpv-playlistmanager)\n\n## [recent.lua](https://github.com/dyphire/recent)\n\nLogs played files to a history log file with an interactive 'recently played' menu that reads from the log. Allows for automatic or manual logging if you want a file bookmark menu instead.\n\nModified from [hacel/recent](https://github.com/hacel/recent)\n\n## skiptosilence.lua\n\nThis script skips to the next silence in the file. The intended use for this is to skip until the end of an opening or ending sequence, at which point there's often a short period of silence.\n\nModified from [detuur-mpv-scripts/skiptosilence.lua](https://github.com/Eisa01/detuur-mpv-scripts/blob/master/skiptosilence.lua)\n\n## slicing_copy.lua\n\nThis script is for mpv to cut fragments of the video.. Requires that FFmpeg be installed.\n\nModified from [snylonue/mpv_slicing_copy](https://github.com/snylonue/mpv_slicing_copy)\n\n## sponsorblock_minimal.lua\n\nThis script skip/mute sponsored segments of YouTube and bilibili videos\n\nusing data from https://github.com/ajayyy/SponsorBlock and https://github.com/hanydd/BilibiliSponsorBlock\n\nModified from [jouni/mpv_sponsorblock_minimal](https://codeberg.org/jouni/mpv_sponsorblock_minimal)\n\n## sub_export.lua\n\nExport the internal subtitles of the playback file. Requires that FFmpeg be installed.\n\nThe script support subtitles in srt, ass, and sup formats.\n\nModified from [kelciour/mpv-scripts/sub-export.lua](https://github.com/kelciour/mpv-scripts/blob/master/sub-export.lua)\n\n## [sub-fastwhisper.lua](https://github.com/dyphire/mpv-sub-fastwhisper)\n\nGenerate srt subtitles through voice transcription using faster-whisper\n\n## track-list.lua\n\nInterractive track-list menu on OSD. Requires that [scroll-list.lua](https://github.com/CogentRedTester/mpv-scroll-list) be installed.\n\n## trackselect.lua\n\nAutomatically select your preferred tracks based on title, because --alang isn't smart enough.\n\nModified from [po5/trackselect](https://github.com/po5/trackselect)\n\n## [trakt-scrobble.lua](https://github.com/dyphire/trakt-scrobble)\n\nA MPV script that checks in your movies and shows with Trakt.tv\n\nModified from [LiTO773/trakt-mpv](https://github.com/LiTO773/trakt-mpv)\n\n## [uosc.lua](https://github.com/dyphire/uosc)\n\nFeature-rich minimalist proximity-based UI for [MPV player](https://mpv.io/).\n\nModified from [tomasklaen/uosc](https://github.com/tomasklaen/uosc)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyphire%2Fmpv-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyphire%2Fmpv-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyphire%2Fmpv-scripts/lists"}