Vod MediaPackage with cloudfront
I have a mediapackage configuration with Cloudfront CDN. I have few queries: 1. Is HLS packaging done during ingest process when playable URL is obtained (if yes, where is this Manisfest & .ts chunks stored?) or it is done when a playback request is received. 2. Once playback is done for the first time, is the manifest & ts chunks cached in cloudfront or packaging is done for every playback request. 3. I have done a CDN cache settings but not sure if playback is done from CDN cache or origin (mediapackage) . How to check the correct configuration.
AWS MediaPackage provides Just-In-Time packaging for any of its endpoints for HLS, DASH, CMAF. Thus packaging for any requested content occurs once a request has been received. For Live HLS inputs, MediaPackage will store up to 14 days of content. This can be used for allowing 'Start-Over' or 'Go-Back' features. This can be configured for each endpoint by the Startover Window. See this link for details. https://docs.aws.amazon.com/mediapackage/latest/ug/time-shifted.html
If MediaPackage is used to package VOD assets, then it is made aware of those assets (Ingested from S3) previously and will pull them when requested.
When using a CDN, such as CloudFront and MediaPackage as the content origin, caching behaviors should be defined. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html Stream manifests or playlists (.m3u8s) should be cached for less than an HLS segment, since they are updated every segment. The content segments (.ts) can be cached for a long time. Each segment is numbered and does not change. Note that error codes from MediaPackage should also be cached in CloudFront for a short time (~1s TTL). By default these error code values are not set and will default to 10s.
Relevant questions
mediapackage playback giving error 404
asked 9 months agoVideo on Demand with MediaPackage, S3 and ffmpeg
asked 3 years agoProviding S3 access to MediaPackage for "live-to-VOD"
Accepted Answerasked a year agoVod MediaPackage with cloudfront
asked a month agoLoad time of a MediaPackage livestream
asked 3 months agoCount concurrent users
asked 3 years agoElemental MediaPackage MPD or HLS playback from middle
asked 2 months agoWhen are the VOD mediapackage streams ready ?
Accepted Answerasked 2 years agoStreaming Video Optimization
asked 2 years agoPermissions of live-to-VOD assets
asked a year ago