Skip to content

Commit 958537b

Browse files
author
cailholm
committed
Fix order of argument -rtsp-transport in ffmpeg command
1 parent 8fff0ca commit 958537b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/services/rtsp-camera/lib/getImage.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ async function getImage(device) {
4343

4444
// For rtsp protocol, add tcp transport to avoid green band of pixels)
4545
if (cameraUrlParam.value.includes('rtsp')) {
46-
args.push('-rtsp_transport');
47-
args.push('tcp');
46+
args.unshift('-rtsp_transport', 'tcp');
4847
}
4948

5049
args.push('-vf');

0 commit comments

Comments
 (0)