import os
import cv2
import numpy as np
from moviepy.editor import VideoFileClip
from tqdm import tqdm
import shutil
def change_resolution_and_save(input_path, output_path, target_width=1024, target_height=768, max_duration=4):
"""Process images and videos to target resolution and split videos into segments."""
os.makedirs(output_path, exist_ok=True)
for root, dirs, files in os.walk(input_path):
for file in tqdm(files, desc="Processing files"):
file_path =… See the full description on the dataset page: https://huggingface.co/datasets/svjack/Genshin_Impact_Scaramouche_Storyline_Video_Captioned_Tiny.