You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes my Webcam lost the connection, after reconnect the USB the Webcam works normal.
The Issue is that the picturecounter (self._imageNumber) count up without geting a picture from the Webcam. After reseting the Webcam, octoprint get pictures but the file numbering für AVCONV is broken like
tmp_00000.jpg, tmp_00001.jpg, tmp_00002.jpg, tmp_00003.jpg, tmp_00008.jpg,tmp_00009.jpg
Should keep rendering of timelapse from breaking if only a couple of images couldn't be captured due to whatever reason. Suggested by @midopple in #344
Should keep rendering of timelapse from breaking if only a couple of images couldn't be captured due to whatever reason. Suggested by @midopple in #344
(cherry picked from commit bf9d5ef)
Sometimes my Webcam lost the connection, after reconnect the USB the Webcam works normal.
The Issue is that the picturecounter (self._imageNumber) count up without geting a picture from the Webcam. After reseting the Webcam, octoprint get pictures but the file numbering für AVCONV is broken like
tmp_00000.jpg, tmp_00001.jpg, tmp_00002.jpg, tmp_00003.jpg, tmp_00008.jpg,tmp_00009.jpg
I add a check in timelapse.py
def _captureWorker(self, filename):
eventManager().fire(Events.CAPTURE_START, {"file": filename});
try:
urllib.urlretrieve(self._snapshotUrl, filename)
except:
self._imageNumber -= 1
self._logger.debug("Image %s captured from %s" % (filename, self._snapshotUrl))
eventManager().fire(Events.CAPTURE_DONE, {"file": filename});
My Branch: devel, Commit: cec2bdb
The text was updated successfully, but these errors were encountered: