Handle non-zero exit status in ffmpeg writer to improve error reporting

pull/1340/head
Christoph9211 2025-06-08 17:01:33 -05:00
parent 11d2e93d72
commit 216fac1122
1 changed files with 3 additions and 1 deletions

View File

@ -222,7 +222,9 @@ def stream_video() -> None:
capture.release()
writer.stdin.close()
writer.wait()
exit_code = writer.wait()
if exit_code != 0:
raise RuntimeError(f"ffmpeg writer exited with non-zero status: {exit_code}")
if modules.globals.keep_audio:
update_status('Restoring audio...')