From 958537b098979bc46a72b37697ff0e8cd49a1344 Mon Sep 17 00:00:00 2001 From: cailholm <> Date: Wed, 27 Nov 2024 15:46:48 +0000 Subject: [PATCH] Fix order of argument -rtsp-transport in ffmpeg command --- server/services/rtsp-camera/lib/getImage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/services/rtsp-camera/lib/getImage.js b/server/services/rtsp-camera/lib/getImage.js index ea5bbd8130..8a9640c154 100644 --- a/server/services/rtsp-camera/lib/getImage.js +++ b/server/services/rtsp-camera/lib/getImage.js @@ -43,8 +43,7 @@ async function getImage(device) { // For rtsp protocol, add tcp transport to avoid green band of pixels) if (cameraUrlParam.value.includes('rtsp')) { - args.push('-rtsp_transport'); - args.push('tcp'); + args.unshift('-rtsp_transport', 'tcp'); } args.push('-vf');