fix: log ffmpeg stderr in SRT reader to expose connection errors
This commit is contained in:
parent
e88d649f55
commit
20bedad639
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue