I can see the problem, the -crf 22 is between the -preset and ultrafast parameters. Try putting it before -preset and it should work.