From cbd8824e610e3150adf326423133c057553c0b68 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 1 Jun 2023 02:58:46 +0300 Subject: tools/ipcam_capture: spaces to tabs and support other extensions --- tools/ipcam_capture.sh | 111 ++++++++++++++++++++++++++----------------------- 1 file changed, 60 insertions(+), 51 deletions(-) (limited to 'tools') diff --git a/tools/ipcam_capture.sh b/tools/ipcam_capture.sh index d1c13c2..91b7f48 100755 --- a/tools/ipcam_capture.sh +++ b/tools/ipcam_capture.sh @@ -8,14 +8,15 @@ DEBUG=0 CHANNEL=1 FORCE_UDP=0 FORCE_TCP=0 +EXTENSION="mp4" die() { - echo >&2 "error: $@" - exit 1 + echo >&2 "error: $@" + exit 1 } usage() { - cat <