fix: log ffmpeg stderr in SRT reader to expose connection errors

This commit is contained in:
ComputerTech 2026-04-04 14:19:35 +01:00
parent e88d649f55
commit 20bedad639
1 changed files with 8 additions and 0 deletions

View File

@ -354,6 +354,14 @@ def _start_srt_transcoder():
_transcoder_last_error = str(e)
break
# Log any ffmpeg stderr output to help diagnose failures
try:
err = proc.stderr.read().decode(errors='replace').strip()
if err:
print(f'[FFMPEG SRT] {err}')
except Exception:
pass
if proc.poll() is None:
try: proc.terminate()
except: pass