Ok it uses now LibAV(FFmpeg) lib to encode, but seems i made a mistake somewhere, i don't know
Merge pull request #1 from wargio/master

rebasing