Files
monibuca/scripts
2024-12-25 17:34:07 +08:00
..
2024-06-05 18:05:56 +08:00
2024-11-26 09:10:24 +08:00
2024-12-25 17:34:07 +08:00
2024-12-17 16:05:36 +08:00

use protoc.sh to generate the go code from proto files

  1. For global proto file:
sh scripts/protoc.sh
  1. For plugin proto file:
sh scripts/protoc.sh plugin_name

use loop.py to loop the ffmpeg command

  1. python scripts/loop.py

use mock.py to mock the tcp server

使用方法:

  1. 作为服务器运行 (监听端口 8554 并发送 peer 1 的数据):
python scripts/mock.py dump.rtsp 1 -l 8554
  1. 作为客户端运行 (连接到 192.168.1.100:554 并发送 peer 0 的数据):
python scripts/mock.py dump.rtsp 0 -c 192.168.1.100:554