{"id":21320417,"url":"https://github.com/kurusugawa-computer/m3u8tool","last_synced_at":"2025-07-12T04:32:45.998Z","repository":{"id":57438963,"uuid":"189627612","full_name":"kurusugawa-computer/m3u8tool","owner":"kurusugawa-computer","description":"A HTTP Live Streaming (HLS) manipulation tool","archived":false,"fork":false,"pushed_at":"2020-03-03T03:16:23.000Z","size":845,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-02T22:21:17.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/kurusugawa-computer/m3u8tool","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kurusugawa-computer.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}},"created_at":"2019-05-31T16:42:53.000Z","updated_at":"2020-11-09T12:57:41.000Z","dependencies_parsed_at":"2022-09-11T14:40:21.266Z","dependency_job_id":null,"html_url":"https://github.com/kurusugawa-computer/m3u8tool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fm3u8tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fm3u8tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fm3u8tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurusugawa-computer%2Fm3u8tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurusugawa-computer","download_url":"https://codeload.github.com/kurusugawa-computer/m3u8tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225795392,"owners_count":17525316,"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":[],"created_at":"2024-11-21T19:47:49.527Z","updated_at":"2024-11-21T19:47:50.252Z","avatar_url":"https://github.com/kurusugawa-computer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# m3u8tool\nHTTP Live Streaming (HLS) フォーマットファイルを取り扱うための CLI ツールです。\n\n# Features\n* HLS フォーマットファイル (m3u8+ts) を分割 (split) できます。\n* HLS フォーマットファイル (m3u8+ts) を結合 (cat) できます。\n* HLS フォーマットファイル (m3u8+ts) を別の動画フォーマットと相互変換 (convert) できます。\n\n# Requirements\n* python 3.5+\n* ffmpeg 4.x (動画フォーマット変換する場合のみ)\n\n# Install\n\n```shell\n$ pip install m3u8tool\n```\n\nhttps://pypi.org/project/m3u8tool/\n\n# Usage\n\n## HLS フォーマットファイル (m3u8+ts) を分割 (split)\n\n`input.m3u8` を `{filename}-{index:04}.m3u8` に分割\n```shell\n$ m3u8tool split input.m3u8\n```\n\n`input.m3u8` を `3.0` 秒ごとに `output-{index:04}.m3u8` に分割\n```shell\n$ m3u8tool split -d 3.0 -m output-{index:04}.m3u8 input.m3u8\n```\n\n`input.m3u8` を `output-{index:04}.m3u8` と `output-{index:04}.ts` に分割\n```shell\n$ m3u8tool split -m output-{index:04}.m3u8 -t output-{index:04}.ts input.m3u8\n```\n\n## HLS フォーマットファイル (m3u8+ts) を結合\n`input-{index:04}.m3u8` を `output.m3u8` に結合\n```shell\n$ m3u8tool cat input-*.m3u8 output.m3u8\n```\n\n`input-{index:04}.m3u8` を `output.m3u8` と `output.ts` に結合\n```shell\n$ m3u8tool cat -t output.ts input-*.m3u8 output.m3u8\n```\n\n## HLS フォーマットファイル (m3u8+ts) を別の動画フォーマットと相互変換\n`input.mp4` を `output.m3u8` と `output.ts` に変換\n```shell\n$ m3u8tool convert input.mp4 output.m3u8\n```\n\n`input.m3u8` を `output.mp4` に変換\n```shell\n$ m3u8tool convert input.m3u8 output.mp4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurusugawa-computer%2Fm3u8tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurusugawa-computer%2Fm3u8tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurusugawa-computer%2Fm3u8tool/lists"}