Lower crf -> higher quality, best between 18-24

ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4