perf(snap): 优化点播后 ffmpeg 截图使用的命令参数,解决部分情况下截图失败的问题
parent
8a9f8c6cab
commit
f0d09d1808
|
@ -569,7 +569,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
|||
Map<String, Object> param = new HashMap<>();
|
||||
param.put("api.secret",mediaServerItem.getSecret()); // -profile:v Baseline
|
||||
if (mediaServerItem.getRtspPort() != 0) {
|
||||
param.put("ffmpeg.snap", "%s -rtsp_transport tcp -i %s -y -f mjpeg -t 0.001 %s");
|
||||
param.put("ffmpeg.snap", "%s -rtsp_transport tcp -i %s -y -f mjpeg -frames:v 1 %s");
|
||||
}
|
||||
param.put("hook.enable","1");
|
||||
param.put("hook.on_flow_report","");
|
||||
|
|
Loading…
Reference in New Issue