An IPTV transcoder receives a digital video and audio stream, analyzes the stream's characteristics, and then applies a series of transformations to the stream to convert it to the desired format. These transformations may include changing the resolution, bit rate, or codec of the video stream, or adjusting the audio format or bit rate. The transcoded stream is then sent to the IPTV network or to the end user's device.