Skip to content

Commit 3598484

Browse files
committed
add docs
1 parent 8cc2b8d commit 3598484

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

iroh-livestream/README.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# iroh-livestreamer
2+
3+
Stream video between nodes.
4+
5+
This uses [Media over Quic](https://github.com/kixelated/moq-rs) to transfer `mp4` streams over `iroh-net` QUIC connections.
6+
7+
## Usage
8+
9+
This tool needs `ffmpeg` and `ffplay`. Make sure that these are installed.
10+
11+
Publish a video stream from your camera and default audio input:
12+
```
13+
$ cargo run --release -- pub
14+
Accepting direct subscribe requests on URL:
15+
iroh:nodeaa../dev
16+
```
17+
18+
Subscribe to a video stream and play it in a window:
19+
```
20+
$ cargo run --release -- sub iroh:nodeaa../dev
21+
```
22+
23+
24+
Run a relay
25+
```
26+
$ cargo run --release -- relay
27+
...
28+
Relay URL:
29+
iroh:nodebb../
30+
```
31+
32+
Publish to a relay and do not accept direct connections:
33+
```
34+
$ cargo run --release -- pub iroh:nodebb../mystream --no-accept
35+
```
36+
37+
Subscribe to a stream from a relay works the same as subscribing to a publisher directly:
38+
```
39+
$ cargo run --release -- sub iroh:nodebb../mystream
40+
```
41+
42+
Overview:
43+
```
44+
$ cargo run --release
45+
Commands:
46+
pub Publish a video stream
47+
sub Subscribe and play a video stream
48+
relay Run a relay
49+
pipe-loop Local pipethrough through direct pipe
50+
network-loop Local pipethrough through iroh-net
51+
help Print this message or the help of the given subcommand(s)
52+
53+
Options:
54+
-s, --secret-key <SECRET_KEY>
55+
-h, --help Print help
56+
57+
$ cargo run --release -- help pub
58+
Publish a video stream
59+
60+
Usage: iroh-livestream pub [OPTIONS] [RELAYS]...
61+
62+
Arguments:
63+
[RELAYS]...
64+
Relays to publish to (must be cast tickets)
65+
66+
Options:
67+
-i, --input <INPUT>
68+
Input
69+
70+
[default: camera]
71+
72+
Possible values:
73+
- camera: Camera and default audio
74+
- desktop: Desktop and default audio
75+
- stdin: Receive a video file from stdin
76+
77+
-n, --no-accept
78+
Do not accept direct connections and only publish to relays
79+
80+
-h, --help
81+
Print help (see a summary with '-h')
82+
83+
$ cargo run --release -- help sub
84+
Subscribe and play a video stream
85+
86+
Usage: iroh-livestream sub [OPTIONS] <URL>
87+
88+
Arguments:
89+
<URL>
90+
Iroh URL to video stream
91+
92+
Options:
93+
-o, --output <OUTPUT>
94+
[default: ffplay]
95+
96+
Possible values:
97+
- ffplay: Render with ffplay
98+
- mpv: Render with mpv
99+
- stdout: Pipe mp4 to stdout
100+
101+
-h, --help
102+
Print help (see a summary with '-h')
103+
```
104+

0 commit comments

Comments
 (0)