一次性转换该目录及子目录所有图像的方法。(不删除源文件)
第一步.从
http://x264.nl/ 下载 X264.EXE
将imgdec.exe ucienc.exe,x264.exe 放入同一目录(例如 C:\UCI0.491)
第二步,把以下文字保存为makeuci.bat
set /p crf=please input crf value[24]:
if "%crf%" == "" set crf=24
for /r %%a in (*.jpg;*.png;*.bmp;*.gif;*.tga) do imgdec "%%a" - | ucienc - -o "%%~na.uci" -x "--crf %crf% --thread-input --threads 1 --keyint 1 --min-keyint 1 --deblock -2:-3 --8x8dct --bframes 0 --ref 1 --no-mbtree --me tesa --subme 10 --trellis 2 --psy-rd 0.30:0.00"
第三步:
win+break->高级->环境变量->系统变量,把makeuci.bat,,imgdec.exe ucienc.exe,x264.exe所在目录(例如 C:\UCI0.491)加到Path变量里面去就可以了。找到你要转的目录,随便选张图片,右键->打开方式->选择makeuci.bat->确定就可以了。