From f0c102ca5868b59ce70742c47dc51a204d193934 Mon Sep 17 00:00:00 2001 From: heymarcell <103508251+heymarcell@users.noreply.github.com> Date: Thu, 26 Jan 2023 23:22:14 +0100 Subject: [PATCH] Remove bracket from ffmpeg command's crop filter (#1294) remove bracket from ffmpeg command's crop filter Using bracket's in this situation causing syntax errors: /bin/sh: 1: Syntax error: "(" unexpected --- nerfstudio/process_data/insta360_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerfstudio/process_data/insta360_utils.py b/nerfstudio/process_data/insta360_utils.py index febdc7308..56e554e01 100644 --- a/nerfstudio/process_data/insta360_utils.py +++ b/nerfstudio/process_data/insta360_utils.py @@ -165,7 +165,7 @@ def convert_insta360_single_file_to_images( vf_cmds_front = vf_cmds.copy() vf_cmds_back.append( - f"crop=ih*{crop_percentage}:ih*{crop_percentage}:ih*({crop_percentage}/4):ih*({crop_percentage}/4)" + f"crop=ih*{crop_percentage}:ih*{crop_percentage}:ih*{crop_percentage}/4:ih*{crop_percentage}/4" ) vf_cmds_front.append( f"crop=ih*{crop_percentage}:ih*{crop_percentage}:iw/2+ih*{crop_percentage/4}:ih*{crop_percentage/4}"