Probe duration via demux fallback (webm N/A); run one flow at a time, queue the rest

This commit is contained in:
Stefano Zini
2026-11-02 18:06:53 +01:00
parent 248c04c7ec
commit 7f4e6e73b6
4 changed files with 51 additions and 34 deletions
+1 -3
View File
@@ -11,7 +11,5 @@ def run(name):
"-af", "highpass=f=80,loudnorm=I=-18:TP=-2:LRA=11", "-c:a", "libopus", "-b:a", "24k", str(dst)],
capture_output=True, text=True)
if r.returncode: raise RuntimeError(r.stderr[-500:])
d = subprocess.run(["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", str(dst)],
capture_output=True, text=True, check=True).stdout.strip()
db.upsert_recording(name, duration_s=float(d))
db.upsert_recording(name, duration_s=db.duration(dst))
return dst