Fixing black formatting
This commit is contained in:
+7
-2
@@ -307,6 +307,7 @@ def build_ffmpeg_command(plan: RenderPlan, output_path: Path) -> list[str]:
|
||||
# in the filter graph (one per video layer) spawns one swscaler thread per CPU core,
|
||||
# causing OOM on Apple Silicon where av_cpu_count() returns 10-11.
|
||||
from .cache import get_ffmpeg_thread_count
|
||||
|
||||
_tc = str(get_ffmpeg_thread_count())
|
||||
cmd.extend(["-threads", _tc, "-filter_threads", _tc])
|
||||
|
||||
@@ -463,7 +464,9 @@ def build_ffmpeg_command(plan: RenderPlan, output_path: Path) -> list[str]:
|
||||
for event in plan.audio_events:
|
||||
if event.audio_id not in audio_inputs:
|
||||
if event.audio_def.is_shared and plan.shared_assets_dir:
|
||||
audio_path = plan.shared_assets_dir / "media" / "audio" / event.audio_def.file
|
||||
audio_path = (
|
||||
plan.shared_assets_dir / "media" / "audio" / event.audio_def.file
|
||||
)
|
||||
else:
|
||||
audio_path = audio_dir / event.audio_def.file
|
||||
audio_path, _ = resolve_with_cache(audio_path, project_path)
|
||||
@@ -933,7 +936,9 @@ def build_filter_complex(
|
||||
plan.narration_pauses, plan.total_duration
|
||||
)
|
||||
|
||||
for seg_idx, (src_start, src_end, out_start, out_end) in enumerate(segments):
|
||||
for seg_idx, (src_start, src_end, out_start, out_end) in enumerate(
|
||||
segments
|
||||
):
|
||||
seg_label = f"av{i}_seg{seg_idx}"
|
||||
pts_offset = out_start
|
||||
filters.append(
|
||||
|
||||
Reference in New Issue
Block a user