debug data
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user