-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Dumb pipe | ||
|
||
This is an example to use iroh-net to create a dumb pipe to connect two machines | ||
with a QUIC connection. | ||
|
||
It is also useful as a standalone tool for quick copy jobs. | ||
|
||
# Example | ||
|
||
Use dumbpipe to stream video using [ffmpeg / ffplay](https://ffmpeg.org/): | ||
|
||
## Sender side | ||
``` | ||
ffmpeg -f avfoundation -r 30 -i "0" -pix_fmt yuv420p -f mpegts - | dumbpipe listen | ||
``` | ||
outputs ticket | ||
|
||
## Receiver side | ||
``` | ||
dumbpipe connect nodeealvvv4nwa522qhznqrblv6jxcrgnvpapvakxw5i6mwltmm6ps2r4aicamaakdu5wtjasadei2qdfuqjadakqk3t2ieq | ffplay -f mpegts -fflags nobuffer -framedrop - | ||
``` | ||
|
||
- Adjust the ffmpeg options according to your local platform and video capture devices. | ||
- Use ticket from sender side |