From 28aa663b7bc50dabb0ac6d3e606285f1e1c46598 Mon Sep 17 00:00:00 2001 From: Scott Register Date: Sat, 26 Jul 2025 09:31:50 -0700 Subject: [PATCH] debug data --- vr180_matting/vr180_processor.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/vr180_matting/vr180_processor.py b/vr180_matting/vr180_processor.py index a32ed33..102e580 100644 --- a/vr180_matting/vr180_processor.py +++ b/vr180_matting/vr180_processor.py @@ -68,6 +68,13 @@ class VR180Processor(VideoProcessor): if self.sbs_split_point == 0: self.sbs_split_point = frame.shape[1] // 2 + # Debug: Check if split point is valid for this frame + frame_width = frame.shape[1] + if self.sbs_split_point >= frame_width: + print(f"WARNING: Split point {self.sbs_split_point} >= frame width {frame_width}") + self.sbs_split_point = frame_width // 2 + print(f"Adjusted split point to {self.sbs_split_point}") + left_eye = frame[:, :self.sbs_split_point] right_eye = frame[:, self.sbs_split_point:] @@ -208,8 +215,9 @@ class VR180Processor(VideoProcessor): # Use ffmpeg to create video from images import subprocess - # Use the original video's framerate - original_fps = getattr(self, 'fps', 30.0) + # Use the original video's framerate - access through parent class + original_fps = self.fps if hasattr(self, 'fps') else 30.0 + print(f"Using framerate: {original_fps} fps") ffmpeg_cmd = [ 'ffmpeg', '-y', # -y to overwrite output file '-framerate', str(original_fps),