tcplexer/readme.md

19 lines
512 B
Markdown
Raw Permalink Normal View History

2022-06-24 23:11:49 -05:00
# tcplexer
`tcplexer` is a tiny Deno app that receives TCP packets from one socket and
copies those packets' contents to them all connected clients on another socket.
# Example Usage
```bash
SOURCE_PORT=7517 CLIENT_PORT=7518 deno run --allow-net --allow-env tcplexer.ts &
ffmpeg -i 'rtsp://admin:pass@10.0.0.104' -vn \
-i 'rtsp://admin:pass@10.0.0.222' -vn \
-ac 1 -filter_complex amerge=inputs=2 \
-hide_banner -loglevel error -f mp3 - \
2022-06-24 23:12:55 -05:00
| netcat localhost 7517 &
2022-06-24 23:11:49 -05:00
2022-06-24 23:26:24 -05:00
cvlc 'tcp://localhost:7518'
2022-06-24 23:11:49 -05:00
```