{"id":13622993,"url":"https://github.com/mar04/chapters_for_mpv","last_synced_at":"2026-01-31T17:12:21.907Z","repository":{"id":151121964,"uuid":"592415455","full_name":"mar04/chapters_for_mpv","owner":"mar04","description":"mpv script for adding/editing/removing/saving/loading chapters","archived":false,"fork":false,"pushed_at":"2025-01-29T10:29:17.000Z","size":21,"stargazers_count":58,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T10:42:45.950Z","etag":null,"topics":["mpv","mpv-player","mpv-script","mpv-scripts"],"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/mar04.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}},"created_at":"2023-01-23T17:26:23.000Z","updated_at":"2025-04-03T01:36:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"be53ea92-9e1a-4d8a-b704-bf7220832e75","html_url":"https://github.com/mar04/chapters_for_mpv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mar04/chapters_for_mpv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar04%2Fchapters_for_mpv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar04%2Fchapters_for_mpv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar04%2Fchapters_for_mpv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar04%2Fchapters_for_mpv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mar04","download_url":"https://codeload.github.com/mar04/chapters_for_mpv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar04%2Fchapters_for_mpv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["mpv","mpv-player","mpv-script","mpv-scripts"],"created_at":"2024-08-01T21:01:26.734Z","updated_at":"2026-01-31T17:12:21.893Z","avatar_url":"https://github.com/mar04.png","language":"Lua","readme":"\n# chapters for mpv\n\nIt's a script that lets you add, remove and edit chapters of the currently\nplayed media, be it video or audio, local file or a stream. Chapters you create\ncan be saved into a separate text file and automatically loaded when you open\nthe same media file again.\n\nThis version of the script requires mpv 0.38 or newer.\n\n## Features\n\n* add a new chapter, optionally with a title\n* edit existing chapter's title\n* remove current chapter\n* save chapters as a text file, either in the same directory as the media file\n  or in a global directory\n* save chapters as an xml or txt file\n* optionally can hash file paths in an attempt to uniquely identify media files\n  if chapter files are stored in a central directory\n* option to automatically save/load chapter files\n* option to use ffmpeg to put the chapters into the media file container as a\n  metadata, so that other media players, like vlc, can make use of them\n* embed chapters in place in mkv container using mkvpropedit\n* should work on Unix and Windows (tested on Archlinux and Windows 10)\n\n## Installation\n\n* place **chapters.lua** in your **~/.config/mpv/scripts** directory\n* optionally create a config file named **chapters.conf** in **~/.config/mpv/script-opts**, check out example config file\n* add keybindings to your **~/.config/mpv/input.conf**, example:\n\n  ```ini\n  n       script-binding chapters/add_chapter\n  ctrl+m  script-binding chapters/remove_chapter\n  ctrl+.  script-binding chapters/edit_chapter\n  N       script-binding chapters/write_chapters\n  ctrl+b  script-binding chapters/write_xml\n  B       script-binding chapters/write_txt\n  ctrl+,  script-binding chapters/bake_chapters\n  K       script-binding chapters/mkvpropedit\n  ```\n\n## Thanks\n\n* \u003chttps://github.com/shinchiro/mpv-createchapter\u003e - inspiration for writing this\n  script. At first I just wanted to add to it the ability to load the saved\n  chapters file, but then I wrote entirely new script with a lot more features.\n  Also check out \u003chttps://github.com/dyphire/mpv-scripts\u003e - as I was finishing\n  my script and thinking how to name it, I found out that someone already wrote\n  something similar. Duh... at least I got to lear some Lua in the process.\n* mpv, ffmpeg and other awesome open source projects\n","funding_links":[],"categories":["Playback","Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar04%2Fchapters_for_mpv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmar04%2Fchapters_for_mpv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar04%2Fchapters_for_mpv/lists"}