mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-26 23:05:55 +08:00
use protoc.sh to generate the go code from proto files
- For global proto file:
sh scripts/protoc.sh
- For plugin proto file:
sh scripts/protoc.sh plugin_name
use loop.py to loop the ffmpeg command
- python scripts/loop.py
use mock.py to mock the tcp server
使用方法:
- 作为服务器运行 (监听端口 8554 并发送 peer 1 的数据):
python scripts/mock.py dump.rtsp 1 -l 8554
- 作为客户端运行 (连接到 192.168.1.100:554 并发送 peer 0 的数据):
python scripts/mock.py dump.rtsp 0 -c 192.168.1.100:554