- @echo off
- set "PATH=%PATH%;C:\ffmpeg-20140911-git-5e3da25-win64-shared\bin"
- set "folder=c:\1212"
- for /f "delims=" %%i in ('dir /s /a-d /b "%folder%" ^| findstr /i "jpg$ png$"') do (
- cd /d "%%~dpi"
- ffmpeg.exe -i "%%~nxi" -pix_fmt yuv420p -vcodec libx265 -preset placebo -x265-params qp=32 "%%~ni.mkv"
- )
- pause
复制代码 这样可以解决中文文件夹的问题 |