Skip to content

rain-dl/hls-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hls-proxy-server

A simple http server to automatic proxy hls streams.

Usage: python3 hls-proxy-server.py [-h] -p PORT -d DIRECTORY -c CONF
  PORT: The server will listen on 0.0.0.0:PORT.
  DIRECTORY: The root directory of the http server. All m3u8 and ts files downloaded from original hls url will stored in sub directories of this directory.
  CONF: A file in json format to store the proxy http path, original hls url and clean up time of the proxy that no client accessed.

The format of proxy configuration file:

{
	"hls_proxies": {
		"/stream1.m3u8": {
			"url": "http://xxx.xxx.xxx.xxx/xxx/1.m3u8",
			"cleanup": 180
		},
		"/stream2.m3u8": {
			"url": "http://xxx.xxx.xxx.xxx/xxx/2.m3u8",
			"cleanup": 180
		}
}

File hls-downloader.py is the modified version of project hls-downloader-annotated. Added support for regenerate the m3u8 file.

About

A simple http server to automatic proxy hls stream.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages