Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active May 28, 2019 13:06
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 lextra2/7b87cfd6b2c631e245e2ec4b2a725994 to your computer and use it in GitHub Desktop.
Save lextra2/7b87cfd6b2c631e245e2ec4b2a725994 to your computer and use it in GitHub Desktop.
FFMPEG.BAT - Same as https://gist.github.com/lextra2/4722bde44949990ae98af192ccd7799d but for .avs and no audio. Writes SSIM+PSNR to .log file. Requires all files to be in the same location.
mkdir ENCODED
for %%a in (*.avs) do (
ffmpeg -y -i "%%a" -c:v libx264 -x264-params "ssim=1:psnr=1:pass=1" -preset medium -tune animation -b:v 3500K -vf format=yuv420p10le -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 "ENCODED\%%~na.mkv"
ffmpeg -report -benchmark -y -i "%%a" -c:v libx264 -x264-params "ssim=1:psnr=1:pass=2" -preset medium -tune animation -b:v 3500K -vf format=yuv420p10le -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 "ENCODED\%%~na.mkv"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment