def open_video_by_id(self, id): filename = os.path.join(self.videos_path, "v_{}.mp4".format(id)) return imageio.get_reader(filename, 'ffmpeg')