A HTTP Live Streaming (HLS) manipulation tool
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file m3u8tool-0.1.1.tar.gz.
File metadata
- Download URL: m3u8tool-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d76a20acc7419502f50ef3a944696437787e6228c4b60b56730ac4c9b51f97
|
|
| MD5 |
e3988ba6c04bebb812d3ab15fd65ef5f
|
|
| BLAKE2b-256 |
838884714479e6486b4aa9710de45826d7ac987ffe86282f88e998a17a649b49
|
File details
Details for the file m3u8tool-0.1.1-py3-none-any.whl.
File metadata
- Download URL: m3u8tool-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1139da100b5d38d031aaf3503ce242d8cde8d2fd2913f6f6855cc453690ac50e
|
|
| MD5 |
26a45043050d262759d4cc529a89adf7
|
|
| BLAKE2b-256 |
61a9d5b682b28ae091934fd5f885ba2dedb7dfb43b76d4a8035d7f77ad07e215
|