the best settings that seemed to me, very slow main none
level=5.2 cabac=1 8x8dct=1 partitions=p8x8,b8x8,i8x8,i4x4 ref=4 bframes=2 b-adapt=1 fast-pskip=0 rc-lookahead=30 sync-lookahead=30 me=hex merange=16 subme=6 deblock=-3:2:0 direct=spatial aq-mode=2 trellis=0 deadzone-inter=11 deadzone-intra=11 psy-rd=0.1:0.0 weightp=1 weightb=1
But I still don't like the quality