Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Dec 1, 2023
1 parent 42ca8cb commit 4d70811
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
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

0 comments on commit 4d70811

Please sign in to comment.