streamserver: add transcoding support

Refactored some code to reduce width of code lines
Merge branch 'master' of git://git.code.sf.net/p/openpli/enigma2