MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / check_integrity

Method check_integrity

deeplabcut/utils/auxfun_videos.py:62–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

60 return self._n_frames
61
62 def check_integrity(self):
63 dest = os.path.join(self.directory, f"{self.name}.log")
64 command = f'ffmpeg -v error -i "{self.video_path}" -f null - 2>"{dest}"'
65 subprocess.call(command, shell=True)
66 if os.path.getsize(dest) != 0:
67 warnings.warn(f'Video contains errors. See "{dest}" for a detailed report.', stacklevel=2)
68
69 def check_integrity_robust(self):
70 numframes = self.video.get(cv2.CAP_PROP_FRAME_COUNT)

Callers 2

check_video_integrityFunction · 0.95

Calls 1

callMethod · 0.45

Tested by 1