Probe duration via demux fallback (webm N/A); run one flow at a time, queue the rest
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user