def METHOD_NAME(tmpdir):
    video_path = os.path.join(tmpdir, "video.avi")
    dataset_dir = os.path.join(tmpdir, "videos")
    _write_video(video_path, fps=5, size=(720, 1280), num_frames=30)
    dataset = _make_dataset(video_path, dataset_dir, num_samples=2)
    sample = dataset.first()
    assert sample.filepath.endswith(".avi")
    fouv.reencode_videos(dataset)
    assert sample.filepath.endswith(".mp4")
    fouv.transform_videos(dataset, reencode=True, force_reencode=True)
    assert sample.filepath.endswith(".mp4")
    fouv.transform_videos(dataset, max_size=(256, 256))
    dataset.compute_metadata(overwrite=True)
    assert sample.metadata.frame_height <= 256
    assert sample.metadata.frame_width <= 256
    fouv.transform_videos(dataset, min_size=(512, 512), delete_originals=True)
    dataset.compute_metadata(overwrite=True)
    assert sample.metadata.frame_height >= 512
    assert sample.metadata.frame_width >= 512