Skip to content

Commit 7d11f59

Browse files
committed
Changelog and Readme
1 parent defa348 commit 7d11f59

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4848
- Using method `.Get(queryParamName)` to get an url query param.
4949
- Replaced `errors.New(...)` to `fmt.Errorf(...)`.
5050
- Replaced types string on config params `liveon` and `hlson` to booleans `live: true/false` and `hls: true/false`
51+
- Using viper for config, allow use file, cloud providers, environment vars or flags.
52+
- Using yaml config by default.

Diff for: README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,24 @@ Run `docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -d --name livego gwuhaoli
3030

3131
#### Compile from source
3232
1. Download the source code `git clone https://github.com/gwuhaolin/livego.git`
33-
2. Go to the livego directory and execute `go build` or `make run`
33+
2. Go to the livego directory and execute `go build` or `make build`
3434

3535
## Use
36-
2. Start the service: execute the livego binary file to start the livego service;
36+
```bash
37+
./livego -h
38+
Usage of ./livego:
39+
--api_addr string HTTP manage interface server listen address (default ":8090")
40+
--config_file string configure filename (default "livego.yaml")
41+
--flv_dir string output flv file at flvDir/APP/KEY_TIME.flv (default "tmp")
42+
--gop_num int gop num (default 1)
43+
--hls_addr string HLS server listen address (default ":7002")
44+
--httpflv_addr string HTTP-FLV server listen address (default ":7001")
45+
--level string Log level (default "info")
46+
--read_timeout int read time out (default 10)
47+
--rtmp_addr string RTMP server listen address (default ":1935")
48+
--write_timeout int write time out (default 10)
49+
```
50+
2. Start the service: execute the livego binary file or `make run` to start the livego service;
3751
3. Upstream push: Push the video stream to `rtmp://localhost:1935/live/movie` through the` RTMP` protocol, for example, use `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/movie` push;
3852
4. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
3953
-`RTMP`:`rtmp://localhost:1935/live/movie`

0 commit comments

Comments
 (0)