{"id":15699648,"url":"https://github.com/kagami/ninnin","last_synced_at":"2025-07-04T18:05:05.455Z","repository":{"id":217379279,"uuid":"743710939","full_name":"Kagami/ninnin","owner":"Kagami","description":":film_strip: mpv-based video encoding tool","archived":false,"fork":false,"pushed_at":"2024-03-06T19:52:27.000Z","size":215,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T21:31:37.574Z","etag":null,"topics":["av1","avc","hevc","mpv-script"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Kagami.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}},"created_at":"2024-01-15T20:23:12.000Z","updated_at":"2025-02-20T09:43:35.000Z","dependencies_parsed_at":"2024-01-23T17:40:44.455Z","dependency_job_id":"cc2b0eba-1d8c-4f30-9ab3-bc672f9fa9cd","html_url":"https://github.com/Kagami/ninnin","commit_stats":null,"previous_names":["kagami/ninnin"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kagami%2Fninnin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kagami%2Fninnin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kagami%2Fninnin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kagami%2Fninnin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kagami","download_url":"https://codeload.github.com/Kagami/ninnin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253178854,"owners_count":21866617,"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":["av1","avc","hevc","mpv-script"],"created_at":"2024-10-03T19:41:15.056Z","updated_at":"2025-05-09T02:38:20.915Z","avatar_url":"https://github.com/Kagami.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ninnin\n\n[mpv](https://mpv.io/)-based video encoding tool. Allows you to quickly cut clips\nfrom video you're currently watching, including YouTube ones, without having to\ndownload it fully or open in another program. Currently supported encoders:\n\n- x264/aac\n- x265/aac\n- svtav1/opus (default)\n\nThe main focus is simplicity and speed/size/quality tuned towards speed (30fps+\nfor 1080p), thus resorting to modern codecs which allow to keep size/quality\nratio still bearable for the web.\n\n## Install\n\n### Windows\n\nTODO.\n\n### Linux\n\nInstall mpv (check out [Linux packages](https://mpv.io/installation/#:~:text=Linux%20packages)).  \nTo install nightly build of ninnin (for latest commit), run:\n\n```bash\nmkdir -p ~/.config/mpv/scripts\nwget https://github.com/Kagami/ninnin/releases/download/nightly/ninnin.js \\\n  -O ~/.config/mpv/scripts/ninnin.js\n```\n\nTo update the script, simply re-run the command above.\n\n### macOS\n\nTODO.\n\n## Formats\n\nWhich format to use for publishing on the web (2024)?\n\n|                                   | Chrome | Firefox | Safari | efficient |\n| --------------------------------: | :----: | :-----: | :----: | :-------: |\n|                             H.264 |   +    |    +    |   +    |     −     |\n| [H.265](https://caniuse.com/hevc) |   ±    |    −    |   +    |     +     |\n|    [AV1](https://caniuse.com/av1) |   +    |    +    |   ±    |     +     |\n\nH.265 if you care about Apple users more, AV1 if you care about Firefox users\nmore. However M3+/iPhone 15+ support AV1 and it's a bit more efficient than\nH.265 so it's more future-proof.\n\n## Development\n\nYou need fresh nodejs installed.\n\n- `npm run build` to build `ninnin.js`\n- `npm start` to watch updates and rebuild on changes\n- `npm test` to run tests\n\n## License\n\nSee [LICENSE](LICENSE). Initial code ported from [mpv-webm](https://github.com/ekisu/mpv-webm) (MoonScript) to TypeScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkagami%2Fninnin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkagami%2Fninnin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkagami%2Fninnin/lists"}