From 40249f7b89ab68f00219f2584833d7d0ec896567 Mon Sep 17 00:00:00 2001 From: Morgan Williams Date: Wed, 24 Dec 2025 18:23:08 +0100 Subject: [PATCH] Use quality-based encoding throughout pipeline for consistent high quality - SBS encoding: -q:v 65 (quality-based instead of fixed 12M bitrate) - Spatial output: -q 0.9 (high quality, ~48 Mbps for stereo) --- pipeline.py | 4 ++-- scripts/depth_to_stereo.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipeline.py b/pipeline.py index 42d7230..ee3906a 100644 --- a/pipeline.py +++ b/pipeline.py @@ -132,8 +132,8 @@ def run_pipeline( "sbs", "-o", str(output_path), - "-b", - "20M", # High bitrate for quality + "-q", + "0.9", # High quality (0.0-1.0), ~48 Mbps output "-y", ] print(f" Running: {' '.join(cmd)}") diff --git a/scripts/depth_to_stereo.py b/scripts/depth_to_stereo.py index 47204ca..d9ec78e 100644 --- a/scripts/depth_to_stereo.py +++ b/scripts/depth_to_stereo.py @@ -168,7 +168,7 @@ class DepthToStereoProcessor: "-r", str(fps), "-i", "-", # Read from stdin "-c:v", "hevc_videotoolbox", - "-b:v", "12M", + "-q:v", "65", # Quality-based encoding (0-100, higher = better) "-tag:v", "hvc1", str(output_path), ] -- knotmirror 0.0.1