Ok it uses now LibAV(FFmpeg) lib to encode, but seems i made a mistake somewhere, i don't know