Skip to main content

m3u8tool

HTTP Live Streaming (HLS) フォーマットファイルを取り扱うための CLI ツールです。

Features

  • HLS フォーマットファイル (m3u8+ts) を分割 (split) できます。
  • HLS フォーマットファイル (m3u8+ts) を結合 (cat) できます。
  • HLS フォーマットファイル (m3u8+ts) を別の動画フォーマットと相互変換 (convert) できます。

Requirements

  • python 3.5+
  • ffmpeg 4.x (動画フォーマット変換する場合のみ)

Install

pip

$ pip install git+https://github.com/kurusugawa-computer/m3u8tool

pipenv

$ pipenv install -e git+https://github.com/kurusugawa-computer/m3u8tool#egg=m3u8tool

Usage

HLS フォーマットファイル (m3u8+ts) を分割 (split)

input.m3u8 を {filename}-{index:04}.m3u8 に分割

$ m3u8tool split input.m3u8

input.m3u8 を 3.0 秒ごとに output-{index:04}.m3u8 に分割

$ m3u8tool split -d 3.0 -m output-{index:04}.m3u8 input.m3u8

input.m3u8 を output-{index:04}.m3u8 と output-{index:04}.ts に分割

$ m3u8tool split -m output-{index:04}.m3u8 -t output-{index:04}.ts input.m3u8

HLS フォーマットファイル (m3u8+ts) を結合

input-{index:04}.m3u8 を output.m3u8 に結合

$ m3u8tool cat input-*.m3u8 output.m3u8

input-{index:04}.m3u8 を output.m3u8 と output.ts に結合

$ m3u8tool cat -t output.ts input-*.m3u8 output.m3u8

HLS フォーマットファイル (m3u8+ts) を別の動画フォーマットと相互変換

input.mp4 を output.m3u8 と output.ts に変換

$ m3u8tool convert input.mp4 output.m3u8

input.m3u8 を output.mp4 に変換

$ m3u8tool convert input.m3u8 output.mp4

Metadata

Release files for m3u8tool 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for m3u8tool 0.1.1
File Size Uploaded Provenance Actions
m3u8tool-0.1.1.tar.gz 5.8 kB Without provenance Details for m3u8tool-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for m3u8tool 0.1.1
File Interpreter ABI Platform Actions
m3u8tool-0.1.1-py3-none-any.whl Python 3 none any Details for m3u8tool-0.1.1-py3-none-any.whl

Total release size: 19.1 kB

Release files / m3u8tool-0.1.1.tar.gz

Download URL m3u8tool-0.1.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
67d76a20acc7419502f50ef3a944696437787e6228c4b60b56730ac4c9b51f97
BLAKE2b-256 checksum
How to use checksums
838884714479e6486b4aa9710de45826d7ac987ffe86282f88e998a17a649b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Release files / m3u8tool-0.1.1-py3-none-any.whl

Download URL m3u8tool-0.1.1-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1139da100b5d38d031aaf3503ce242d8cde8d2fd2913f6f6855cc453690ac50e
BLAKE2b-256 checksum
How to use checksums
61a9d5b682b28ae091934fd5f885ba2dedb7dfb43b76d4a8035d7f77ad07e215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Security for m3u8tool 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page