@echo off setlocal enabledelayedexpansion REM 썸네일 저장 폴더 생성 set "thumbdir=thumbnail" if not exist "!thumbdir!" ( mkdir "!thumbdir!" ) REM mp4 파일 순회 for %%f in (*.mp4) do ( echo ▶ %%f → !thumbdir!\%%~nf.jpg ffmpeg -i "%%f" -frames:v 1 -q:v 2 "!thumbdir!\%%~nf.jpg" ) echo. echo 🎉 모든 썸네일 추출 완료. pause