|
1 | 1 |
|
2 | 2 | <img src="https://user-images.githubusercontent.com/244265/200068510-7c24d5c7-6ba0-44ee-8e60-0f157f990b90.png" width="350" />
|
3 | 3 |
|
4 |
| -donut is a zero setup required SRT+MPEG-TS -> WebRTC Bridge powered by [Pion](http://pion.ly/). |
| 4 | +donut is a zero setup required SRT+MPEG-TS and RTMP -> WebRTC Bridge powered by [Pion](http://pion.ly/). |
5 | 5 |
|
6 | 6 | ### Install & Run Locally
|
7 | 7 |
|
8 |
| -Make sure you have the `libsrt` installed in your system. If not, follow their [build instructions](https://github.com/Haivision/srt#build-instructions). |
9 |
| -Once you finish installing it, execute: |
| 8 | +Make sure you have the `ffmpeg 5.x.x` (with SRT) installed in your system. |
10 | 9 |
|
| 10 | +You can have multiple versions of ffmpeg installed in your system. To find where the specific `ffmpeg 5.x.x` was installed, run: |
| 11 | + |
| 12 | +```bash |
| 13 | +sudo find /opt/homebrew -name avcodec.h |
| 14 | +``` |
| 15 | + |
| 16 | +Let's assume the prior command showed two entries: |
| 17 | + |
| 18 | +```bash |
| 19 | +sudo find /opt/homebrew -name avcodec.h |
| 20 | +/opt/homebrew/Cellar/ffmpeg/7.0_1/include/libavcodec/avcodec.h |
| 21 | +/opt/homebrew/Cellar/ffmpeg@5/5.1.4_6/include/libavcodec/avcodec.h |
11 | 22 | ```
|
12 |
| -$ go install github.com/flavioribeiro/donut@latest |
| 23 | + |
| 24 | +You must configure the CGO library path pointing it to **ffmpeg 5** (`5.1.4_6`) folder instead of the newest (`7.0_1`). |
| 25 | + |
| 26 | +```bash |
| 27 | +export CGO_LDFLAGS="-L/opt/homebrew/Cellar/ffmpeg@5/5.1.4_6/lib/" |
| 28 | +export CGO_CFLAGS="-I/opt/homebrew/Cellar/ffmpeg@5/5.1.4_6/include/" |
| 29 | +export PKG_CONFIG_PATH="/opt/homebrew/Cellar/ffmpeg@5/5.1.4_6/lib/pkgconfig" |
13 | 30 | ```
|
| 31 | + |
| 32 | +Once you finish installing, and setting it up, execute: |
| 33 | + |
| 34 | +```bash |
| 35 | + |
| 36 | +go install github.com/flavioribeiro/donut@latest |
| 37 | + |
| 38 | +``` |
| 39 | + |
14 | 40 | Once installed, execute `donut`. This will be in your `$GOPATH/bin`. The default will be `~/go/bin/donut`
|
15 | 41 |
|
| 42 | +Here are specific instructions [to run on MacOS](/MAC_DEVELOPMENT.md). |
| 43 | + |
16 | 44 | ### Run using docker-compose
|
17 | 45 |
|
18 |
| -Alternatively, you can use `docker-compose` to simulate an SRT live transmission and run the donut effortless. |
| 46 | +Alternatively, you can use `docker-compose` to simulate an [SRT live transmission and run the donut effortless](/DOCKER_DEVELOPMENT.md). |
19 | 47 |
|
20 |
| -``` |
21 |
| -$ make run |
22 |
| -``` |
23 | 48 |
|
24 | 49 | #### Open the Web UI
|
25 |
| -Open [http://localhost:8080](http://localhost:8080). You will see three text boxes. Fill in with the SRT listener configuration and hit connect. |
| 50 | +Open [http://localhost:8080/demo](http://localhost:8080/demo). You will see two text fields. Fill them with the your streaming info and hit connect. |
26 | 51 |
|
27 | 52 | 
|
28 | 53 |
|
|
0 commit comments