Files
monibuca/scripts
2024-12-04 14:07:22 +08:00
..
2024-06-05 18:05:56 +08:00
2024-11-26 09:10:24 +08:00
2024-10-03 15:19:50 +08:00
2024-11-26 09:10:24 +08:00

use protoc to generate the go code from the proto file

  1. cd to plugin/xxx
  2. sh ../../scripts/protoc.sh

use protoc_global to genertate the go code form the proto.file

  1. cd to the root
  2. sh scripts/protoc_global.sh

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