S.F. judge to rule on encoding software