Open 17Taco opened 2 months ago
haven't actually used this script in a while, but searching the error seems to be a connection issue with ffmpeg that can be caused by various reasons but seems like its a temporary network failure on your end, and seems like its out of ffmpeg's control.
but here's what ai had to say about it, idk if it will really help at all though:
To address this issue and make your script more resilient, you can try the following approach:
Increase timeout and reconnection attempts: Add more FFmpeg options to increase timeout values and reconnection attempts. Modify your FFmpeg command in the ffmpegSync function:
command = f'ffmpeg -i {data["response"]["stream"]["playbackUrl"]} -c copy -movflags use_metadata_tags -map_metadata 0 -timeout 300 -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 300 -rtmp_live live {ts_filename}'
[in#0/hls @ 00000246b4283dc0] Error during demuxing: Error number -138 occurred
Got this error about 75% through the stream and it stopped recording. I'm sure I can find the answer through the searching but I'm curious if anyone else had the same issue or if there is a solution for it y'all can tell me about.