Init repositry
Added 2pass encoding