From f0d09d1808d81a3593f2f8e060477ba8746b6762 Mon Sep 17 00:00:00 2001 From: xiaoQQya Date: Wed, 1 Nov 2023 17:15:19 +0800 Subject: [PATCH] =?UTF-8?q?perf(snap):=20=E4=BC=98=E5=8C=96=E7=82=B9?= =?UTF-8?q?=E6=92=AD=E5=90=8E=20ffmpeg=20=E6=88=AA=E5=9B=BE=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=91=BD=E4=BB=A4=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=83=A8=E5=88=86=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=E6=88=AA=E5=9B=BE=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java index 6bbb4bc3..347d0e63 100755 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java @@ -569,7 +569,7 @@ public class MediaServerServiceImpl implements IMediaServerService { Map 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","");