jrudess / streamdvr

DVR for streaming entertainment
GNU General Public License v3.0
65 stars 16 forks source link

"Recording appears to be stuck" #140

Closed e2489 closed 5 years ago

e2489 commented 5 years ago

Every so often I get this message: "__ recording appears to be stuck (counter=0), file size is not increasing: MB"

Followed by "_____ terminating stuck recording"

jrudess commented 5 years ago

This means that ffmpeg or streamlink are still running, but the filesize of the recording isn't increasing. Streamdvr will manually kill the ffmpeg or streamlink process, and then restart the recording.

However, it shouldn't terminate until the counter is 2. Will look into it.

jrudess commented 5 years ago

I don't see any issue with the counter, so I'm guessing the log paste isn't complete and there was a print out showing "counter = 1" as well.

My recommendation is to make sure you have a recent version of ffmpeg if you are using it to record (i.e. 4.1.x). The default version of ffmpeg from various distribution package managers can be quite old.

jrudess commented 5 years ago

Saw something similar to this happen for a case where the record loop for the site was running twice. First call to the size-check routine is fine, but it updates the current-size, so the second record-loop is at the same size and then thinks the recording is stuck.

e2489 commented 5 years ago

Ok, it actually looks like what's happening is the streamer is ending their stream when this happens but streamdvr doesn't recognize that, and instead thinks the recording is stuck. This doesn't seem to be having any adverse effects (and I don't see the error most of the time), but that's what's going on.