{"id":20797532,"url":"https://github.com/rlaphoenix/chapsnap","last_synced_at":"2025-05-06T18:42:22.951Z","repository":{"id":155677593,"uuid":"632695542","full_name":"rlaphoenix/ChapSnap","owner":"rlaphoenix","description":"Resync Chapters by snapping them to Scene Changes","archived":false,"fork":false,"pushed_at":"2023-04-30T19:50:33.000Z","size":36,"stargazers_count":31,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T01:41:36.804Z","etag":null,"topics":["chapters","matroska","python","scene-detection","video"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlaphoenix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-04-26T00:12:41.000Z","updated_at":"2025-03-09T13:55:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f54b19c-21fc-4db0-adb4-b53087657167","html_url":"https://github.com/rlaphoenix/ChapSnap","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaphoenix%2FChapSnap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaphoenix%2FChapSnap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaphoenix%2FChapSnap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlaphoenix%2FChapSnap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlaphoenix","download_url":"https://codeload.github.com/rlaphoenix/ChapSnap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252746907,"owners_count":21798045,"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":["chapters","matroska","python","scene-detection","video"],"created_at":"2024-11-17T16:34:20.807Z","updated_at":"2025-05-06T18:42:22.945Z","avatar_url":"https://github.com/rlaphoenix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChapSnap\r\n\r\nResync Chapters by snapping them to Scene Changes.\r\n\r\n## Usage\r\n\r\n```\r\nUsage: chapsnap [OPTIONS] VIDEO [CHAPTERS]\r\n\r\n  Snap Chapters to Scene Changes.\r\n\r\n  VIDEO       The video file to snap chapters to scene changes. All video formats are\r\n              supported. You may alternatively provide a directory path to process\r\n              video files in batch.\r\n  [CHAPTERS]  Optional chapters file if you want to use chapters from a file\r\n              rather than ones already muxed with the video.\r\n\r\nOptions:\r\n  -t, --threshold FLOAT  Threshold on Scene Change probability scores. The\r\n                         lower the value, the more unlikely the frame is to be\r\n                         a Scene Change. Range: 0.0 (Impossible) - 1.0\r\n                         (Definite).\r\n  -o, --offset FLOAT     Offset to apply to each Chapter. A negative offset\r\n                         may result in fewer Chapters.\r\n  --trim INTEGER         Remove n Chapters from the start of the Video. A\r\n                         negative value will remove n Chapters from the end of\r\n                         the Video. Timestamps will be offset respectively.\r\n  -nf, --no-forward      Do not try to resync Chapters forward in time.\r\n  -nb, --no-backward     Do not try to resync Chapters backward in time.\r\n  -k, --keyframes        Only sync to Scene Changes on Keyframes (I-frames).\r\n  -0, --zero             Force the first chapter to be at `00:00:00.000`, even\r\n                         after offsets and trims.\r\n  -c, --chain            Chain sync adjustments from one Chapter to the next.\r\n                         E.g., Chapter 1 had -2, so Chapter 2 will begin with\r\n                         an offset of -2. Chapter 2 with -2 has a change of\r\n                         -1, so Chapter 3 will begin with an offset of -3 and\r\n                         so on.\r\n  --overwrite            Apply new Chapters to the input video file in-place,\r\n                         without making a duplicate.\r\n  --help                 Show this message and exit.\r\n```\r\n\r\n## Contributors\r\n\r\n\u003ca href=\"https://github.com/rlaphoenix\"\u003e\u003cimg src=\"https://images.weserv.nl/?url=avatars.githubusercontent.com/u/17136956?v=4\u0026h=25\u0026w=25\u0026fit=cover\u0026mask=circle\u0026maxage=7d\" alt=\"\"/\u003e\u003c/a\u003e\r\n\r\n## License\r\n\r\n© 2023 rlaphoenix — [GNU General Public License, Version 3.0](LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlaphoenix%2Fchapsnap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlaphoenix%2Fchapsnap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlaphoenix%2Fchapsnap/lists"}