- @echo off
- chcp 65001 >nul
- rem 批处理保存为utf-8编码格式
- rem https://blog.csdn.net/sinat_29957455/article/details/95811180
-
- set ms=500
- for /f "delims=" %%a in ('powershell -c "%ms%/1000"') do (
- for /f "delims=" %%i in ('dir /b /a-d *.mp4') do (
- md "%%~ni" 2>nul
- ffmpeg -i "%%i" -vf "select=(gte(t\,%%a))*(isnan(prev_selected_t)+gte(t-prev_selected_t\,%%a))" -vsync 0 "%%~ni\image_%%05d.jpg"
- )
- )
- pause
复制代码
|