Refactored the encoding parts to a seperate dll and created seperate scale
qualities for audio and video