Skip to content

Instantly share code, notes, and snippets.

@wadadanet
Created June 7, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wadadanet/79d0a2826c9d0cfeca94ac5b9290bf67 to your computer and use it in GitHub Desktop.
Save wadadanet/79d0a2826c9d0cfeca94ac5b9290bf67 to your computer and use it in GitHub Desktop.
FFmpegに複数ファイル圧縮してもらう
@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