Created
June 7, 2018 05:03
-
-
Save wadadanet/79d0a2826c9d0cfeca94ac5b9290bf67 to your computer and use it in GitHub Desktop.
FFmpegに複数ファイル圧縮してもらう
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /d "%~dp0" | |
if "%~1" == "" goto error | |
mkdir "%~dp1webm\" | |
:loop | |
if not "%~nx1"=="" ( | |
echo ---- %~nx1 ffmpeg... | |
ffmpeg -i "%~dp1%~nx1" -f webm -vcodec libvpx -acodec libvorbis -aq 90 -ac 2 "%~dp1webm\%~nx1" | |
ren "%~dp1webm\%~nx1" "*.webm" | |
shift | |
goto loop | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment