需求修改conf配置内容,节点内容如下
listen 1935;
max_connections 1000;
#daemon off;
#srs_log_tank console;
vhost defaultVhost {
ingest livestream {
enabled on;
input {
type file;
url rtsp://guest:guest@192.168.0.59:554/stream0/low;
}
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
engine {
enabled off;
output rtmp://192.168.0.45/live/10002-002-L;
}
}
ingest livestest {
enabled on;
input {
type file;
url rtsp://guest:guest@192.168.0.59:554/stream0/high;
}
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
engine {
enabled off;
output rtmp://192.168.0.45/live/10001-001-L;
}
}
}
创建实体对象
public class IngestModleVo {
private List<IngestVo> list; //节点信息
public IngestModleVo() {
this.list = new