Skip to content

Commit

Permalink
Camera: Fix order of argument -rtsp_transport in ffmpeg command (#2173)
Browse files Browse the repository at this point in the history
Co-authored-by: cailholm <>
  • Loading branch information
cailholm authored Nov 28, 2024
1 parent 8fff0ca commit 1643043
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/services/rtsp-camera/lib/getImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1643043

Please sign in to comment.