需求修改conf配置内容,节点内容如下
listen 1935;
max_connections 1000;
#daemon off;
#srs_log_tank console;
vhost defaultVhost {
ingest livestream {
enabled on;
input {
type file;
url rtsp://guest:[email protected]:554/stream0/low;
}
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
engine {
enabled off;
output rtmp://192.168.0.45/live/10002-002-L;
ingest livestest {
url rtsp://guest:[email protected]:554/stream0/high;
output rtmp://192.168.0.45/live/10001-001-L;
创建实体对象
public class IngestModleVo {
public class IngestVo {
private String keyName; //键的名称
private String isEnabled; //是否启用,即有效
private String type;
private String urlAdd;
private String ffmpeg;
private String enginEnabled;
private String enginOutput;
public class GeneralFileTest {