---
title: Encoding media for HLS
framework: http-live-streaming
role: article
role_heading: Article
path: http-live-streaming/encoding-media
---

# Encoding media for HLS

Encode audio and video for HTTP Live Streaming (HLS) delivery to Apple Podcasts.

## Overview

Overview Apple Podcasts plays HLS video on many devices and across a range of network conditions. Use these encoder settings for best results. Apply HLS video encoding best practices Use adaptive bitrate streaming, efficient codecs, and proper segmentation when you encode video for HLS delivery to Apple Podcasts: Provide multiple quality levels to adapt to network conditions. Use H.264 (AVC) for broad device compatibility and H.265 (HEVC) for better compression efficiency. Use appropriate segment durations for smooth playback. Configure encoding settings Use these settings when preparing video for HLS delivery: Use these settings when encoding podcast audio for HLS delivery:

## See Also

- [Authoring multivariant and media playlists](http-live-streaming/multivariant-and-media-playlists.md)
- [Configuring delivery for HLS](http-live-streaming/configuring-delivery.md)
- [Delivering ad interstitials in podcast streams](http-live-streaming/delivering-ad-interstitials.md)
- [Delivering WebVTT subtitles and captions in HLS](http-live-streaming/delivering-subtitles-and-captions.md)
- [Reviewing sample playlists and validating streams](http-live-streaming/examples-and-validation.md)
- [Handling downloads and playback](http-live-streaming/downloads-and-playback.md)
