Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use it in OSX ? #8

Open
weqeo opened this issue Dec 11, 2018 · 1 comment
Open

how to use it in OSX ? #8

weqeo opened this issue Dec 11, 2018 · 1 comment

Comments

@weqeo
Copy link

weqeo commented Dec 11, 2018

I found that it has a OSX version,but i dn't know how to use it ,could u help me ,pls~

@dstd
Copy link

dstd commented Dec 30, 2022

  1. Have Go installed
  2. Download & extract the source code into folder
  3. Open Terminal, and execute
  4. cd Path-To-Folder-Where-The-Source-Code-Extracted
  5. echo "module github.com/kz26/gohls" > go.mod; go get github.com/kz26/m3u8; go get github.com/golang/groupcache; go build

To download execute the command in Terminal, it will download into result.ts:

./gohls https://url-of-your-hls-playlist.m3u8 ./result.ts

--
Steps above could be performed by one-liner:

wget https://github.com/kz26/gohls/archive/refs/tags/1.0.5.tar.gz -O - | tar xz; cd ./gohls-1.0.5/; echo "module github.com/kz26/gohls" > go.mod; go get github.com/kz26/m3u8; go get github.com/golang/groupcache; go build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants