

# VOD supported codecs and input types


The following sections describe supported input types, input codecs, and output codecs for file-based video on demand (VOD) content.

## Supported input types


These are the input types that MediaPackage supports for VOD content.


| MediaPackage input type | Use case | 
| --- | --- | 
| HLS | Pull an HLS stream set from an Amazon S3 bucket, with or without a secure connection.Additional requirements:[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html) | 
| SMIL | Pull an MP4 stream set referenced by a .smil manifest from an Amazon S3 bucket, with or without a secure connection. For information about the .smil manifest, see [Requirements for .smil manifests](supported-inputs-vod-smil.md).Additional requirements:[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html) | 

## Supported input codecs


These are the video, audio, and subtitles codecs that MediaPackage supports for file-based source content.


| Input type | Media container | Video codecs | Audio codecs | Subtitles/captions format | 
| --- | --- | --- | --- | --- | 
| HLS |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  | 
| SMIL | MP4 (non-fragmented) |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  | SRT | 

## Supported output codecs


These are the video, audio, and subtitles codecs that MediaPackage supports for delivering VOD content.


| Endpoint type | Manifest format | Media container | Video codecs | Audio codecs | Subtitles/captions format | 
| --- | --- | --- | --- | --- | --- | 
| Apple HLS | HLS |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  | 
| DASH-ISO | MPEG-DASH | MP4 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  | 
| Microsoft Smooth | MSS | MP4 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  | DFXP | 
| CMAF | HLS | CMAF |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/mediapackage/latest/ug/supported-inputs-vod.html)  | 

# Requirements for .smil manifests
Added missing quotation marks

Added missing closing quotation mark to example.Added support for `includeAudio` parameter

MediaPackage now supports `includeAudio` in .smil manifestsAdded .smil manifest information

Added *Requirements for .smil manifests* topic to describe the supported `.smil` manifest format for VOD ingest.

When sending a VOD MP4 asset to AWS Elemental MediaPackage, a .smil manifest must be included. The .smil manifest is an XML file that acts as a wrapper for all the files in the asset, letting MediaPackage know which MP4s are part of a single asset.

**Resources**
+ For guidance on creating a .smil manifest, see [.smil using AWS Elemental MediaPackage VOD](https://aws.amazon.com/blogs/media/smil-using-aws-elemental-mediapackage-vod/) (blog).
+ For general information about Synchronized Multimedia Integration Language (SMIL), see the [SMIL 3.0 specification](https://www.w3.org/TR/SMIL/).

MediaPackage supports the following attributes in a .smil manifest.

**Attributes**
+ `audioName` - The name of the audio track, such as `English 2`.
+ `includeAudio` - A Boolean value indicating if the audio tracks should be included. This attribute should contain as many values as there are languages defined. If not specified, all tracks default to `true`.
+ `src` or `name` - Either the name or the source of the text stream or video file relative to the manifest location.
+ `subtitleName` - The subtitle name, such as `English`.
+ `systemLanguage` or `language` - The system language, such as `eng`.

**Example .smil manifest**  
The following is an example of a `.smil` manifest.   

```
<?xml version="1.0" encoding="utf-8"?>
<smil>
    <body>
        <alias value="Example"/>
        <switch>
            <video name="example_360.mp4" systemLanguage="eng,fra,spa" audioName="English,French,Spanish" includeAudio="true,true,true"/>
            <video name="example_480.mp4" systemLanguage="eng" audioName="English 2" includeAudio="false"/>
            <textstream src="example_subs_eng.srt" systemLanguage="eng" subtitleName="English" includeAudio="false"/>
            <textstream src="example_subs_fra.srt" systemLanguage="fra" subtitleName="French" includeAudio="false"/>
            <textstream src="example_subs_spa.srt" systemLanguage="spa" subtitleName="Spanish" includeAudio="false"/>
    </switch>
</body>
</smil>
```