perf(snap): 优化点播后 ffmpeg 截图使用的命令参数,解决部分情况下截图失败的问题

pull/1137/head
xiaoQQya 2023-11-01 17:15:19 +08:00
parent 8a9f8c6cab
commit f0d09d1808
1 changed files with 1 additions and 1 deletions

View File

@ -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","");