Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60601cd

Browse files
committed
Add FFmpeg example to README
1 parent 6c66878 commit 60601cd

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
- [What is Broadcast Box](#what-is-broadcast-box)
77
- [Using](#using)
8-
- [Broadcasting](#broadcasting)
9-
- [Broadcasting (GStreamer, CLI)](#broadcasting-gstreamer-cli)
8+
- [OBS Broadcasting](#obs-broadcasting)
9+
- [FFmpeg Broadcasting](#ffmpeg-broadcasting)
10+
- [GStreamer Broadcasting](#gstreamer-broadcasting)
1011
- [Playback](#playback)
1112
- [Getting Started](#getting-started)
1213
- [Configuring](#configuring)
@@ -30,10 +31,10 @@ Want to contribute to the development of Broadcast Box? See [Contributing](./CON
3031

3132
## Using
3233

33-
To use Broadcast Box you don't even have to run it locally! A instance of Broadcast Box
34-
is hosted at [b.siobud.com](https://b.siobud.com). If you wish to run it locally skip to [Getting Started](#getting-started)
34+
A public instance of Broadcast Box is hosted at [b.siobud.com](https://b.siobud.com). Feel free to use this as
35+
much as you want. Go to [Getting Started](#getting-started) for instructions on running it locally.
3536

36-
### Broadcasting
37+
### OBS Broadcasting
3738

3839
To use Broadcast Box with OBS you must set your output to WebRTC and set a proper URL + Stream Key.
3940
You may use any Stream Key you like. The same stream key is used for broadcasting and playback.
@@ -56,7 +57,21 @@ page will look like this.
5657

5758
When you are ready to broadcast press `Start Streaming` and now time to watch!
5859

59-
### Broadcasting (GStreamer, CLI)
60+
### FFmpeg Broadcasting
61+
The following broadcasts a test feed to https://b.siobud.com with a Bearer Token of `ffmpeg-test`
62+
63+
```shell
64+
ffmpeg \
65+
-re \
66+
-f lavfi -i testsrc=size=1280x720 \
67+
-f lavfi -i sine=frequency=440 \
68+
-pix_fmt yuv420p -vcodec libx264 -profile:v baseline -r 25 -g 50 \
69+
-acodec libopus -ar 48000 -ac 2 \
70+
-f whip -authorization "ffmpeg-test" \
71+
"https://b.siobud.com/api/whip"
72+
```
73+
74+
### GStreamer Broadcasting
6075

6176
See the example script [here](examples/gstreamer-broadcast.nu).
6277

0 commit comments

Comments
 (0)