CamsodaRecorder icon indicating copy to clipboard operation
CamsodaRecorder copied to clipboard

Multiple Recordings of same Stream / error in recording_models list index out of range

Open deepsy4711 opened this issue 7 years ago • 2 comments

got error "error in recording_models list index out of range" after a few iterations then the stream start recording again. so then therer are multiple recordings running

actual test-branch

sorry for my bad english

deepsy4711 avatar Feb 16 '18 05:02 deepsy4711

I see multiple recordings spawning as well on a Windows system on the test branch. I noticed it was very periodic, happening every 8 or so loops, so I figured it must be related to a static time definition. There are only two such lines that compare time like this, and only one that is followed by a call to start a recording.

The part in camsoda.py that tries to start a new recording if a recording has not been updated in 300 seconds (5 minutes) based on file modification time (st_mtime) seems to not work as expected on a Windows platform. You can just replace line 156 (RecordingThread(model_data, settings, r).start()) with "pass" and it will stop spawning unneeded multiple recordings. You could also print out something to console to see how this call always tests true after a little while after the recording has started. I'll see if I can find exactly why this is doing this, and find a way to get it to work on a Windows platform.

Sort of funny, this can really snowball if you either are recording lots of models or have left the script going for a while. Good way to get an IP ban.

rpseleven avatar Feb 26 '18 22:02 rpseleven

@deepsy4711 hi i don't know if it could help from searching to record with sound i found when changed ffmpeg version it stop to record in loop. But i have an another problem in windows it don't record with sound, if you could share your directory with your ffmpeg version to see if it's my version that make this. i didn't found a download link of ffmpeg for windows with all codec enabled. First time that i don't have sound with record. Can you help me ? Thanks in advance. If you @rpseleven can help me too it will be great. I have windows 8.1 installed. Thanks

alucard13s avatar Apr 01 '18 20:04 alucard13s