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
Copy file name to clipboardExpand all lines: README.md
+20-5Lines changed: 20 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Simple and efficient live broadcast server:
20
20
#### Supported encoding formats
21
21
- H264
22
22
- AAC
23
-
-sMP3
23
+
-MP3
24
24
25
25
## Installation
26
26
After directly downloading the compiled [binary file](https://github.com/gwuhaolin/livego/releases), execute it on the command line.
@@ -30,12 +30,27 @@ Run `docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -d --name livego gwuhaoli
30
30
31
31
#### Compile from source
32
32
1. Download the source code `git clone https://github.com/gwuhaolin/livego.git`
33
-
2. Go to the livego directory and execute `go build`
33
+
2. Go to the livego directory and execute `go build` or `make build`
34
34
35
35
## Use
36
-
2. Start the service: execute the livego binary file to start the livego service;
37
-
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;
38
-
4. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
36
+
```bash
37
+
./livego -h
38
+
Usage of ./livego:
39
+
--api_addr string HTTP manage interface server listen address (default ":8090")
--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 readtime 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;
51
+
3. Get a channelkey `curl http://localhost:8090/control/get?room=movie` and copy data like your channelkey.
52
+
4. Upstream push: Push the video stream to `rtmp://localhost:1935/live/movie`(`rtmp://localhost:1935/{appname}/{channelkey}`) through the` RTMP` protocol, for example, use `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/movie` push;
53
+
5. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
0 commit comments