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)
|
_transcoder_last_error = str(e)
|
||||||
break
|
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:
|
if proc.poll() is None:
|
||||||
try: proc.terminate()
|
try: proc.terminate()
|
||||||
except: pass
|
except: pass
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue