You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conceptually, HTTP Live Streaming consists of three parts: the server component, the distribution component, and the client software.
97
+
In a typical configuration, a hardware encoder takes audio-video input, encodes it as HEVC video and AC-3 audio, and outputs a fragmented MPEG-4 file or an MPEG-2 transport stream. A software stream segmenter then breaks the stream into a series of short media files, which are placed on a web server. The segmenter also creates and maintains an index file containing a list of the media files. The URL of the index file is published on the web server. Client software reads the index, then requests the listed media files in order and displays them without any pauses or gaps between segments.
{: width="972" height="589" .normal}_HLS Go Server_
104
+
`brew install go`,安装 `go`,然后启动该服务
105
+
106
+
```bash
107
+
# tony @ tonyMBP in ~/Desktop/hls_server [14:48:18]
108
+
$ go run ll-hls-origin-example.go
109
+
ll-hls-origin-example.go:43:2: no required module provides package github.com/fsnotify/fsnotify: go.mod file not found in current directory or any parent directory; see 'go help modules'
110
+
111
+
112
+
# tony @ tonyMBP in ~/Desktop/hls_server [14:48:25] C:1
113
+
$ go mod init hls_server
114
+
go: creating new go.mod: module hls_server
115
+
go: to add module requirements and sums:
116
+
go mod tidy
117
+
118
+
119
+
# tony @ tonyMBP in ~/Desktop/hls_server [14:49:23]
120
+
$ go build
121
+
ll-hls-origin-example.go:43:2: no required module provides package github.com/fsnotify/fsnotify; to add it:
122
+
go get github.com/fsnotify/fsnotify
123
+
124
+
125
+
# tony @ tonyMBP in ~/Desktop/hls_server [14:49:28] C:1
0 commit comments