How Does an IPTV Encoder Work?