Update app.py
Browse files
app.py
CHANGED
|
@@ -520,11 +520,6 @@ def step1_extract(
|
|
| 520 |
ret = proc.wait()
|
| 521 |
|
| 522 |
frames = sorted(raw_dir.glob(f"{prefix}_*.{out_format}"), key=_natural_key)
|
| 523 |
-
try:
|
| 524 |
-
err = proc.stderr.read() if proc.stderr else ""
|
| 525 |
-
except Exception:
|
| 526 |
-
err = ""
|
| 527 |
-
return None, None, f"FFmpeg error or no frames produced.\\n\\n{err}", cmd_preview, last_html, None, None, None
|
| 528 |
|
| 529 |
gallery = sample_paths(frames, 30)
|
| 530 |
zip_path = work / "frames.zip"
|
|
|
|
| 520 |
ret = proc.wait()
|
| 521 |
|
| 522 |
frames = sorted(raw_dir.glob(f"{prefix}_*.{out_format}"), key=_natural_key)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
|
| 524 |
gallery = sample_paths(frames, 30)
|
| 525 |
zip_path = work / "frames.zip"
|