fetch-scte-segments
v0.0.4
Published
CLI for parsing HLS media playlist and fetching SCTE35 CUE-OUT/IN segments
Downloads
16
Readme
fetch-scte-segments
CLI for parsing HLS media playlist and fetching SCTE35 CUE-OUT/IN segments
Install
Usage
Usage:
fetch-scte-segments manifest-url [options]
Options:
--cue-in-only
If set, only CUE-IN segments are fetched. The defalut behavior is fetching both CUE-OUT/IN segments.
--outdir=[relative path to the directory]
If specified, the fetched segment files are stored in the directory. The defalut outputdir path is "./log_YYYY-MM-DDTHH:MM:SS.SSSZ".
--outfile=[filename]
If specified, the fetched segment files are concatenated into a single file using FFmpeg. If not specified, the concatenation is skipped.
Example:
$ fetch-scte-segments "https://example.com/live.m3u8?last-hour=6" --cue-in-only --outdir=SCTE_2023-01-01 --outfile=concatenated.ts
$ open SCTE_2023-01-01/concatenated.ts
- Please make sure that FFmpeg is installed in case the
--outfile
option is specified.