lossless1024 / StreaMonitor

Adult live stream downloader for advanced people. I could have chosen a better name.
GNU General Public License v3.0
191 stars 50 forks source link

Script/FFMPEG does not close task #43

Open ThEnGI opened 1 year ago

ThEnGI commented 1 year ago

I noticed that FFMPEG doesn't close tasks even after many days. Also when I stop the script (ctrl-c or quit ) it remains pending as if waiting for all streams (ffmpeg task) to finish. Forcing me to kill everything. After this some files remain unreadable, for example the 12 day old stream. (Which I assume is finished) Dont close stop Is a FFMPEG problem or a script problem ? Should we add a "-t 01:00:00" and limit to 1 hour file ? or something to force the connection down and wait for the bot to restart the download(i dont mind loosing 1 minute of stream) How to recover "damaged" files ?Do I have to re-encode ?

I add that there have been some internet connection drops, but like 1 every 2/3 days, it's hard to trace whether it's their fault

Thanks in advance ThEnGi

SeanRao commented 1 month ago

可否通过监控FFMpeg的日志文件判断FFMpeg当前是否在持续获取新的流,在未获取一定时间后关闭FFMpeg进程呢