Why does this code detects images as video and how can I fix it?
Why does this code detects images as video and how can I fix it? Question: This method is detecting .jpg pictures as video. Why is that? How can I fix it? def is_video(self) -> bool: try: res = self.video_metadata[‘codec_type’] == ‘video’ logger.info(f"Video.is_video() -> {res}") return res except: return False I’m getting the metadata with ffmpeg.probe(self.path, …