tangled
alpha
login
or
join now
mmatt.net
/
browser-stream
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
readme
mmatt.net
3 weeks ago
0a93950d
ca34d322
+30
-6
1 changed file
expand all
collapse all
unified
split
README.md
+30
-6
README.md
···
27
27
./scripts/fetch-sidecars.sh
28
28
```
29
29
30
30
-
PowerShell:
31
31
-
32
32
-
```powershell
33
33
-
./scripts/fetch-sidecars.ps1
34
34
-
```
35
35
-
36
30
2. Build:
37
31
38
32
```bash
···
67
61
docker build --target slim -t browser-stream:slim .
68
62
docker build --target full -t browser-stream:full .
69
63
```
64
64
+
65
65
+
## CLI arguments
66
66
+
67
67
+
`browser-stream` supports the following flags:
68
68
+
69
69
+
| Flag | Type | Default | Required | Notes |
70
70
+
| --- | --- | --- | --- | --- |
71
71
+
| `--url` | string | none | yes | Website URL. Must be `http` or `https`. |
72
72
+
| `--width` | u32 | `1920` | no | Frame width. Min `16`. |
73
73
+
| `--height` | u32 | `1080` | no | Frame height. Min `16`. |
74
74
+
| `--fps` | u32 | `30` | no | Frame rate. Range `1..=120`. |
75
75
+
| `--bitrate-kbps` | u32 | `4500` | no | Video bitrate in kbps. Min `100`. |
76
76
+
| `--keyint-sec` | u32 | `1` | no | GOP/keyframe interval in seconds. Range `1..=60`. |
77
77
+
| `--x264-opts` | string | `bframes=0` | no | Passed to x264 options. |
78
78
+
| `--rtmp-url` | string | none | conditional | Use with `--stream-key` if `--output` is not set. |
79
79
+
| `--stream-key` | string | none | conditional | Use with `--rtmp-url` if `--output` is not set. |
80
80
+
| `--output` | string | none | conditional | Full output URL (for example `rtmp://.../app/key`). Alternative to `--rtmp-url` + `--stream-key`. |
81
81
+
| `--retries` | u32 | `5` | no | Number of retry attempts after failure. |
82
82
+
| `--retry-backoff-ms` | u64 | `1000` | no | Delay between retries (milliseconds). |
83
83
+
| `--startup-delay-ms` | u64 | `2000` | no | Delay before starting frame capture (milliseconds). |
84
84
+
| `--frame-timeout-ms` | u64 | `30000` | no | Frame read timeout (milliseconds). Min `1000`. |
85
85
+
| `--no-audio` | bool flag | `false` | no | Disable silent audio track. |
86
86
+
| `--ffmpeg-path` | path | auto | no | Override ffmpeg binary path. |
87
87
+
| `--chromium-path` | path | auto | no | Override chromium/headless shell binary path. |
88
88
+
| `--verbose` | bool flag | `false` | no | Enable verbose logging. |
89
89
+
90
90
+
Output selection rules:
91
91
+
92
92
+
- Provide `--output`, or
93
93
+
- Provide both `--rtmp-url` and `--stream-key`.