Fxing the cache path
This commit is contained in:
+7
-4
@@ -1300,7 +1300,9 @@ def cmd_preprocess(
|
||||
# process_cache: write processed outputs to external disk to save laptop space
|
||||
cache_root = _resolve_process_cache(project_path, config)
|
||||
if cache_root:
|
||||
cache_narration_dir = cache_root / "narration"
|
||||
# Mirror the project's media/ structure so GnommoCache (resolve_with_cache)
|
||||
# finds these files transparently during render/stitch.
|
||||
cache_narration_dir = cache_root / "media" / "narration"
|
||||
cache_narration_dir.mkdir(parents=True, exist_ok=True)
|
||||
(cache_narration_dir / "processed").mkdir(parents=True, exist_ok=True)
|
||||
print(f" Using process cache: {cache_root}")
|
||||
@@ -2063,12 +2065,13 @@ def cmd_stitch(
|
||||
else:
|
||||
videos_dir = project_path / "media" / "videos"
|
||||
|
||||
# When process_cache is set, redirect processed segment reads and combined output
|
||||
# When process_cache is set, redirect processed segment reads and combined output.
|
||||
# Mirror media/ structure so GnommoCache (resolve_with_cache) finds files during render.
|
||||
cache_root = _resolve_process_cache(project_path, config)
|
||||
if cache_root:
|
||||
narration_dir = cache_root / "narration"
|
||||
narration_dir = cache_root / "media" / "narration"
|
||||
narration_dir.mkdir(parents=True, exist_ok=True)
|
||||
videos_dir_out = cache_root / "videos"
|
||||
videos_dir_out = cache_root / "media" / "videos"
|
||||
videos_dir_out.mkdir(parents=True, exist_ok=True)
|
||||
print(f" Using process cache: {cache_root}")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user