Adding more verbose logging to ffmpg
This commit is contained in:
+11
-4
@@ -1430,7 +1430,10 @@ def _import_narration_segments(narration_dir: Path, config, verbose: bool) -> No
|
||||
"source_file": f"processed/{video_file.name}",
|
||||
}
|
||||
narration_entry["use_audio_channels"] = "auto"
|
||||
narration_entry["defer_loudnorm"] = True
|
||||
# Loudnorm is applied per-segment during preprocess (not deferred to
|
||||
# stitch), so the processed files are already normalized and ready to be
|
||||
# concatenated directly at render time.
|
||||
narration_entry["defer_loudnorm"] = False
|
||||
|
||||
existing_narration[segment_id] = narration_entry
|
||||
added_count += 1
|
||||
@@ -1455,7 +1458,10 @@ def _import_narration_segments(narration_dir: Path, config, verbose: bool) -> No
|
||||
narration_entry["filter"] = "talkinghead"
|
||||
|
||||
narration_entry["use_audio_channels"] = "auto"
|
||||
narration_entry["defer_loudnorm"] = True
|
||||
# Loudnorm is applied per-segment during preprocess (not deferred to
|
||||
# stitch), so the processed files are already normalized and ready to be
|
||||
# concatenated directly at render time.
|
||||
narration_entry["defer_loudnorm"] = False
|
||||
|
||||
existing_narration[segment_id] = narration_entry
|
||||
added_count += 1
|
||||
@@ -2567,7 +2573,8 @@ def cmd_preprocess(
|
||||
filter=filter_list,
|
||||
output_file=output_file,
|
||||
use_audio_channels=existing_entry.get("use_audio_channels", "auto"),
|
||||
defer_loudnorm=existing_entry.get("defer_loudnorm", True),
|
||||
# Default False: apply loudnorm now (in preprocess), not deferred.
|
||||
defer_loudnorm=existing_entry.get("defer_loudnorm", False),
|
||||
)
|
||||
segments_to_process.append((segment_id, video_source))
|
||||
|
||||
@@ -2671,7 +2678,7 @@ def cmd_preprocess(
|
||||
# Always record the plain path; stitch shifts the base dir for low/tiny.
|
||||
entry["source_file"] = f"processed/{segment_id}_processed.mov"
|
||||
entry.setdefault("use_audio_channels", "auto")
|
||||
entry.setdefault("defer_loudnorm", True)
|
||||
entry.setdefault("defer_loudnorm", False)
|
||||
existing_narration[segment_id] = entry
|
||||
|
||||
with open(narration_json_path, "w", encoding="utf-8") as f:
|
||||
|
||||
Reference in New Issue
Block a user