Video on Demand on AWS
Video on Demand on AWS

Appendix A: Metadata File Format

The metadata and video version of this solution can ingest metadata files that are in XML or JSON format. The metadata file is used to configure the Amazon Elastic Transcoder. The file must include definitions for srcVideo, upscaling, thumbnails, watermark, and at least one output format (HLS, DASH, MP4).

<?xml version="1.0" encoding="UTF-8" ?> <vod> <srcVideo>example.mpg</srcVideo> <hls>1080</hls> <hls>720</hls> <hls>540</hls> <hls>432</hls> <hls>360</hls> <hls>270</hls> <hls>234</hls> <dash>1080</dash> <dash>720</dash> <dash>540</dash> <dash>432</dash> <dash>360</dash> <dash>270</dash> <dash>234</dash> <mp4>1080</mp4> <mp4>720</mp4> <mp4>540</mp4> <mp4>432</mp4> <mp4>360</mp4> <mp4>270</mp4> <mp4>234</mp4> <upscaling>true</upscaling> <thumbnails>true</thumbnails> <watermark>aws-logo.png</watermark> </vod>

Figure 3. Sample XML metadata file

{ "srcVideo": "example.mpg", "hls": [1080,720,540,432,360,270,234], "dash": [1080,720,540,432,360,270,234], "mp4": [1080,720,540,432,360,270,234], "upscaling":true, "thunbnails":false, "watermark":"aws-logo.png", }

Figure 4. Sample JSON metadata file

The video-on-demand solution also supports adding additional metadata, such as title, genre, or any other information, you want to store in Amazon DynamoDB.