Browse Source

修复bug

pull/110/head
64850858 4 years ago
parent
commit
a209ba77ea
  1. 4
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java

4
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRunner.java

@ -44,7 +44,7 @@ public class ZLMRunner implements CommandLineRunner {
@Value("${server.port}")
private String serverPort;
@Value("${server.ssl.enabled}")
@Value("${server.ssl.enabled:false}")
private boolean sslEnabled;
private boolean startGetMedia = false;
@ -115,7 +115,7 @@ public class ZLMRunner implements CommandLineRunner {
}
Map<String, Object> param = new HashMap<>();
param.put("api.secret",mediaConfig.getSecret()); // -profile:v Baseline
param.put("ffmpeg.cmd","%s -fflags nobuffer -rtsp_transport tcp -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s");
// param.put("ffmpeg.cmd","%s -fflags nobuffer -rtsp_transport tcp -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s");
param.put("hook.enable","1");
param.put("hook.on_flow_report","");
param.put("hook.on_play",String.format("%s/on_play", hookPrex));

Loading…
Cancel
Save