anchor.diff:  ) else (
     if %PARAMCOUNT% EQU 0 (
       rem call :PRINT_DEBUG Input file: %_TMP%
  -    set INNAME=%_TMP%
  +    set VIDINNAME=%_TMP%
     )
     if %PARAMCOUNT% EQU 1 (
       rem call :PRINT_DEBUG Setting PTO: %_TMP%
  -    set OUTNAME=%_TMP%
  +    set OUTVIDNAME=%_TMP%
     )
     set /a PARAMCOUNT+=1
   )
  
positive.code: 
  rem Stitching
  echo "Stitching frames..."
  for %%f in (%FRAMESTEMP%\*.jpg) do (
  rem For whatever reason (this has to be at the beginning of the line!)
    echo "Processing frame %%f"
  rem TODO: There should be some error checking
    "%SCRIPTPATH%\gear360pano.cmd" /m /o "%STITCHEDTEMP%" "%%f" "%PTOTMPL%"
  )
  
  echo "Reencoding video..."
  "%FFMPEGPATH%/ffmpeg.exe" -y -f image2 -i %STITCHEDTEMP%/%IMAGETMPLENC% -r %VIDFPS% -s %VIDSIZE% %FFMPEGQUALITYENC% %STITCHEDTEMP%/%TMPVIDEO%
  if %ERRORLEVEL% EQU 1 GOTO FFMPEGERROR
  
  rem Check if there's audio
  
negative.code: set STITCHEDTEMPDIR=frames_stitched
  set OUTDIR="%SCRIPTPATH%\html\data"
  set FFMPEGPATH=c:\Program Files\ffmpeg\bin
  set FFMPEGQUALITYDEC=-q:v 2
  set FFMPEGQUALITYENC=-c:v libx265 -crf 18
  rem %% is an escape character (note: this will fail on wine's cmd.exe)
  set IMAGETMPLDEC=image%%05d.jpg
  set IMAGETMPLENC=image%%05d_pano.jpg
  