Debug: log exact clip.py cmd in job + clip.py logs run_clip args
This commit is contained in:
parent
bc3fe1f9d4
commit
15ef4888a1
@ -205,6 +205,9 @@ def process_job(job_id):
|
||||
cmd += ["--no-subs"]
|
||||
cmd += ["--model", job.get("whisper_model", "small")]
|
||||
|
||||
# DEBUG: zapiši natanko kakšen ukaz se izvede
|
||||
update_job(job_id, debug_clip_cmd=" ".join(cmd))
|
||||
|
||||
if not run_subprocess_logged(cmd, job_id, "Reframe + subtitles"):
|
||||
return
|
||||
|
||||
|
||||
@ -47,6 +47,7 @@ SCRIPT_DIR = Path(__file__).parent
|
||||
|
||||
def run_clip(src, dst, start, duration, mode, lang, model, style, no_subs, quality):
|
||||
"""Naredi en klip src → dst."""
|
||||
print(f"🎯 run_clip args: src={src}, dst={dst}, start={start!r}, duration={duration!r}, mode={mode}", file=sys.stderr)
|
||||
tmp = tempfile.mkdtemp(prefix="reel_")
|
||||
try:
|
||||
reframed = Path(tmp) / "reframed.mp4"
|
||||
@ -62,6 +63,7 @@ def run_clip(src, dst, start, duration, mode, lang, model, style, no_subs, quali
|
||||
cmd += ["--start", str(start)]
|
||||
if duration is not None:
|
||||
cmd += ["--duration", str(duration)]
|
||||
print(f"🔧 REFRAME CMD: {' '.join(cmd)}", file=sys.stderr)
|
||||
print(f"\n▶ Klip: {dst.name}")
|
||||
r = subprocess.run(cmd)
|
||||
if r.returncode != 0:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user