Removing an audio probe that made dry-run take 28 seconds
This commit is contained in:
+8
-5
@@ -1292,17 +1292,20 @@ def build_filter_complex(
|
|||||||
_, first_video_source, _ = plan.narration_videos[0]
|
_, first_video_source, _ = plan.narration_videos[0]
|
||||||
use_channels = first_video_source.use_audio_channels
|
use_channels = first_video_source.use_audio_channels
|
||||||
if use_channels == "auto":
|
if use_channels == "auto":
|
||||||
# Probe the real narration audio to pick left/right/both. In concat
|
# Concat mode = pre-processed segments: preprocess already resolved
|
||||||
# mode that's the first processed segment; otherwise the single
|
# the channel and baked it into the audio, so play it as-is ("both").
|
||||||
# narration input. (plan carries the dirs — this function doesn't.)
|
# Re-probing here means a full-file volumedetect pass on the narration
|
||||||
|
# (tens of seconds on a long take) for no benefit — that was the render
|
||||||
|
# command taking ~30s to build.
|
||||||
if narration_concat and plan.narration_segments:
|
if narration_concat and plan.narration_segments:
|
||||||
narration_path = plan.narration_segments[0].source_path
|
use_channels = "both"
|
||||||
else:
|
else:
|
||||||
|
# Legacy single-input narration (not preprocessed): resolve once.
|
||||||
narration_path = _resolve_video_path(
|
narration_path = _resolve_video_path(
|
||||||
plan.videos_dir, first_video_source,
|
plan.videos_dir, first_video_source,
|
||||||
plan.shared_assets_dir, plan.project_path,
|
plan.shared_assets_dir, plan.project_path,
|
||||||
)
|
)
|
||||||
use_channels = _resolve_auto_channel(narration_path)
|
use_channels = _resolve_auto_channel(narration_path)
|
||||||
channel_filter = _build_audio_channel_filter(use_channels)
|
channel_filter = _build_audio_channel_filter(use_channels)
|
||||||
narration_volume = first_video_source.volume
|
narration_volume = first_video_source.volume
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user