Adds opus encoding support, thanks to Tomasz Golinski for the patch.