    def _get_video_dim(self, video_fn):
        """decord cannot probe the size of a video, we use pyav instead."""
        import av
        with av.open(video_fn) as container:
            height = container.streams.video[0].codec_context.height
            width = container.streams.video[0].codec_context.width
        return height, width
decord cannot probe the size of a video, we use pyav instead.
examples/MMPT/scripts/video_feature_extractor/videoreader.py