downhls

command module
v0.0.0-...-2bb536c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 5 Imported by: 0

README

Deprecated

FFmpeg can download HLS directly and it works great. I have no reason to reinvent the wheel.

downhls

This repository implements a tool for downloading HTTP Live Streaming (HLS), it is forked from oopsguy/m3u8. I made some changes to convert TS files to MP4 files using ffmpeg.

Install

Assuming you have the Golang environment ready:

go install github.com/chenen3/downhls@latest

Usage

Avaiable options:
  -c int
    	Maximum number of occurrences (default 25)
  -i string
    	M3U8 URL, required
  -o string
    	Output file path, required

Examples:
  output to TS file:
    	downhls -i "http://example.com/index.m3u8" -o output.ts

  output to MP4 file (required ffmpeg):
    	downhls -i "http://example.com/index.m3u8" -o output.mp4

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Partial reference https://github.com/grafov/m3u8/blob/master/reader.go
Partial reference https://github.com/grafov/m3u8/blob/master/reader.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL