HLS Encoding