Skip to content

Instantly share code, notes, and snippets.

@nico-lab
Created February 18, 2015 13:08
Show Gist options
  • Save nico-lab/bd93c1f0ab3cb2a90071 to your computer and use it in GitHub Desktop.
Save nico-lab/bd93c1f0ab3cb2a90071 to your computer and use it in GitHub Desktop.
ffmpeg で PNG 最適
echo off
set FFMPEG="H:\ffmpeg.exe"
for %%a in (%*) do %FFMPEG% -i %%a -filter_complex palettegen -y %%a_tmp.png && %FFMPEG% -i %%a -i %%a_tmp.png -filter_complex paletteuse -y %%a_min.png && del %%a_tmp.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment