rendered paste body#! /usr/bin/php<?if (!$argv[1]){ print "*****\n"; print "inloopgamut\n"; print "*****\n"; print "This script generates x264 command lines for every possible deblocking setting.\n"; print "*****\n"; print "* Usage:\n"; print "/x264/file/path /output/filepath/and/basename \"--x264 options\" 2 (for 2 pass)\n"; print "* So like this for 2-pass:\n"; print "x264.exe C:\Documents \"--subme 6\" 2\n"; print "* Or this for 1-pass:\n"; print "x264.exe C:\Documents \"--subme 6\"\n"; print "*****\n"; return;}for($i = -6; $i < 7; $i++){ for($j = -6; $j < 7; $j++) { if ($argv[4] == 2) { print $argv[1]." --pass 1 --stats ".$argv[2].".stats"." --output NUL"." ".$argv[3]." "."--filter ".$i.",".$j."\n"; print $argv[1]." --pass 2 --stats ".$argv[2].".stats"." --output ".$argv[2].$i.",".$j.".mkv"." ".$argv[3]." "."--filter ".$i.",".$j."\n"; } else { print $argv[1]." --output ".$argv[2].$i.",".$j.".mkv"." ".$argv[3]." "."--filter ".$i.",".$j."\n"; } }}?>