streamingriver / go-hls-proxy

Simple hls proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to bind to port

CHJ85 opened this issue · comments

commented

Hi there. Great script. But I'm not able to bind to port. My command is hls-server -url http://***.m3u8 --bind-to 38613. The script starts but stops immediately. This only happens when I include the --bind-to command.
Any idea? Because I can't really use this script if the port keeps changing.

commented

hello,
is url "master playlist" or that url m3u8 holds ts files list?

commented

you could try: hls-server --url [url] --name "test" --frontend = "http://localhost"
because hls-proxy is more like part or the system than standalone service

commented

Thanks. I'll try that. As for your question, it's not a master, but a tracks-v1a1/mono.m3u8. And yes, it holds a ts list.

commented

That did not work.
I tried --url https://*****/tracks-v1a1/mono.m3u8 --name "Smithsonian" --frontend = "http://localhost:64646"
This gave "unsupported protocol scheme".

commented

i am redesigning system, so current solution is a bit abandoned. but i have plans on v2 and diffrent design probably with docker support.
ok. to your last post - i will check code tomorow, and give you response

commented

Okay. Thank you!

-bind-to ":38613"

Hi there. Great script. But I'm not able to bind to port. My command is hls-server -url http://***.m3u8 --bind-to 38613. The script starts but stops immediately. This only happens when I include the --bind-to command. Any idea? Because I can't really use this script if the port keeps changing.

hls-server -url http://***.m3u8 -bind-to ":38613"
go run ./ -url http://***.m3u8 -bind-to ":38613"
commented

Ah I see. Thank you!