def METHOD_NAME(self):
    v = mmcv.VideoReader(self.video_path)
    frame_dir = tempfile.mkdtemp()
    v.cvt2frames(frame_dir)
    assert osp.isdir(frame_dir)
    for i in range(self.num_frames):
        filename = f'{frame_dir}/{i:06d}.jpg'
        assert osp.isfile(filename)
    out_filename = osp.join(tempfile.gettempdir(), 'mmcv_test.avi')
    mmcv.frames2video(frame_dir, out_filename)
    v = mmcv.VideoReader(out_filename)
    assert v.fps == 30
    assert len(v) == self.num_frames
    mmcv.frames2video(
        frame_dir,
        out_filename,
        fps=25,
        start=10,
        end=50,
        show_progress=False)
    with mmcv.VideoReader(out_filename) as v:
        assert v.fps == 25
        assert len(v) == 40
        for i in range(self.num_frames):
            filename = f'{frame_dir}/{i:06d}.jpg'
            os.remove(filename)
        shutil.rmtree(frame_dir)