Transcoding is the process of converting an existing compressed video stream from one format, codec, bitrate, or resolution into another. Unlike encoding from raw source, transcoding decodes the incoming stream and then re-encodes it in the target format. It is commonly used in streaming infrastructure to convert an incoming RTMP feed into multiple HLS quality tiers, or to repackage video for compatibility across different devices and platforms in real time.