debug data

This commit is contained in:
2025-07-26 09:31:50 -07:00
parent 0244ba5204
commit 28aa663b7b

View File

@@ -68,6 +68,13 @@ class VR180Processor(VideoProcessor):
if self.sbs_split_point == 0: if self.sbs_split_point == 0:
self.sbs_split_point = frame.shape[1] // 2 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] left_eye = frame[:, :self.sbs_split_point]
right_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 # Use ffmpeg to create video from images
import subprocess import subprocess
# Use the original video's framerate # Use the original video's framerate - access through parent class
original_fps = getattr(self, 'fps', 30.0) original_fps = self.fps if hasattr(self, 'fps') else 30.0
print(f"Using framerate: {original_fps} fps")
ffmpeg_cmd = [ ffmpeg_cmd = [
'ffmpeg', '-y', # -y to overwrite output file 'ffmpeg', '-y', # -y to overwrite output file
'-framerate', str(original_fps), '-framerate', str(original_fps),