anchor.diff:  
   :paramloop
   if not "%1"=="" (
  +	if "%1"=="-codec" (
  +		set codec=%2
  +		shift
  +	)
   	if "%1"=="-framerate" (
   		set framerate=%2
   		shift
  
positive.code: :: found via http://stackoverflow.com/questions/1192476/format-date-and-time-in-a-windows-batch-script
  
  @ECHO OFF
  
  :: parameters
  set framerate=25
  
  set keysecs=60
  
negative.code: 
  set /a "keyint=keysecs*framerate"
  
  :: codec "qtrle" (default)
  
  :setcodec
  set encoptsset=0
  set encopts=
  
  if "%codec%"=="qtrle" (
  	set encopts=-c:v qtrle
  	set encoptsset=1
  	echo Encoder: Quicktime Animation (qtrle)
  )
  if "%codec%"=="x264" (
  	set encopts=-c:v libx264 -preset:v fast -tune:v stillimage -tune:v zerolatency -crf 0
  	set encoptsset=1
  	echo Encoder: H.264 (libx264)
  )
  
  if %encoptsset%==0 (
  	echo WARNING: unknown codec %codec% specified!
  	set codec=qtrle
  	goto setcodec
  )
  
  
  echo Frame rate: %framerate% fps
  echo Image size: %sizereport%
  echo Position: %left% x %top%
  echo Input: %input%
  echo Writing to %FILENAME%
  echo CWD:
  echo   %cd%
  
  