remotion-ffmpeg-skill 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/analyze.py +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion-ffmpeg-skill",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Agent Skill: ffmpeg-skill measures the footage, Remotion draws the motion graphics from those measurements, ffmpeg-skill checks and delivers the result. Timeline-driven captions, silence jump cuts and audio-peak motion with probe-first / verify-last rendering. Local, no API keys.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"remotion",
|
package/scripts/analyze.py
CHANGED
|
@@ -542,6 +542,15 @@ def read_text_inputs(a: argparse.Namespace) -> Tuple[List[Dict[str, Any]], List[
|
|
|
542
542
|
return captions, words, transcript, emphasis, emphasis_warnings
|
|
543
543
|
|
|
544
544
|
|
|
545
|
+
def build_join_args(inputs: List[Path], joined: Path, transition: str, duration: float, overwrite: bool) -> List[str]:
|
|
546
|
+
"""ffmpeg-skill join.py arguments. --duration is a transition's length: ffmpeg-skill 4.26+ refuses it with
|
|
547
|
+
--transition none (4.25 and earlier ignored it), so it is passed only with a real transition."""
|
|
548
|
+
args = [*map(str, inputs), "-o", str(joined), "--transition", transition]
|
|
549
|
+
if transition != "none":
|
|
550
|
+
args += ["--duration", str(duration)]
|
|
551
|
+
return args + (["--overwrite"] if overwrite else [])
|
|
552
|
+
|
|
553
|
+
|
|
545
554
|
def main() -> None:
|
|
546
555
|
a = parse_with_blank(build_parser())
|
|
547
556
|
apply_common(a)
|
|
@@ -567,8 +576,7 @@ def main() -> None:
|
|
|
567
576
|
|
|
568
577
|
captions, words, transcript, emphasis, emphasis_warnings = read_text_inputs(a)
|
|
569
578
|
|
|
570
|
-
join_args =
|
|
571
|
-
"--duration", str(a.join_duration)] + (["--overwrite"] if STATE.overwrite else [])
|
|
579
|
+
join_args = build_join_args(inputs, joined, a.join_transition, a.join_duration, STATE.overwrite)
|
|
572
580
|
plan = ([shell_join(ffskill_cmd("join", join_args))] if len(inputs) > 1 else []) + \
|
|
573
581
|
[shell_join(ffskill_cmd("probe", [str(joined if len(inputs) > 1 else src)]))]
|
|
574
582
|
if STATE.dry_run:
|