Skip to content
streamneo.
Streaming Settings13 min read

AWS Elemental MediaPackage HLS Settings for a 24/7 YouTube Stream

Separate MediaPackage HLS playback settings from YouTube ingest, then check version-specific manifests, sender settings and the full live path.

sn.
StreamNeoPublished 5 October 2026
Worth sharing?

MediaPackage HLS settings control how AWS packages live content for playback; they do not, by themselves, make a playback URL a YouTube ingest destination. First identify which MediaPackage generation and endpoint you use, then configure each hand-off for its actual role: packaging, sending, or YouTube ingestion.

For a 24/7 channel, the practical work is to align segments, choose a suitable rolling manifest window, and verify the sender and YouTube stream key together. The channel can run continuously even though a live manifest only exposes a recent portion of it.

Map the source and destinations

Draw the signal path before changing settings. A common shape is a live source or encoder feeding an AWS input, MediaPackage packaging that contribution into HLS for playback, and a separate sender delivering a supported feed to YouTube. Your own architecture may differ, but label each connection by what it consumes and produces rather than by a vague word such as “stream”.

MediaPackage is a packaging and origin service: its HLS endpoint provides a playback presentation. YouTube’s live ingestion configuration, by contrast, supplies an ingest URL and stream key for the encoder or other sending component. Those are separate roles. Do not paste a viewer-facing MediaPackage URL into an encoder’s YouTube destination field unless the component and a documented workflow explicitly make that endpoint an input to the next leg. The URL existing, or ending in .m3u8, does not establish that it is an ingest target.

Write down the components and owners. For example: “encoder sends contribution to AWS; MediaPackage creates playback HLS; a compatible sending component uses YouTube’s selected ingest protocol.” If a gateway or cloud workflow sits between packaging and YouTube, document what it reads and what it sends. Confirm that it is designed for that direction, not merely that it can open a manifest.

This separation also helps you choose whether you need MediaPackage at all. If your sole goal is to loop a prepared file to YouTube, a simpler sender may be enough. A Windows PC loop setup is a useful comparison for that operating model; it does not make AWS settings mandatory. If you need packaged playback for viewers or another distribution path as well, MediaPackage may serve that distinct purpose.

MediaPackage output is not YouTube HLS ingest

“HLS” names a format and delivery protocol, not a universal destination. MediaPackage creates an HLS manifest and segments that a playback client can request. YouTube HLS ingestion is a YouTube-defined live input workflow: the sender uses the HLS stream URL and key associated with a selected HLS stream configuration. The receiving service and the direction of traffic matter as much as the protocol label.

That distinction is easy to miss because both sides can involve HLS and .m3u8 manifests. A playlist URL can be valid for a player and still be unsuitable as an encoder input or as YouTube’s ingest URL. Likewise, AWS support for a codec in packaged output does not prove the complete chain supports it. Check the MediaPackage output, any intervening sender, and YouTube’s current requirements as separate compatibility points.

YouTube’s HLS ingestion instructions explain the stream-key and URL workflow. Its live encoder settings describe the broader encoder setup and protocol options. Use the official instructions for the protocol actually selected in YouTube Studio, rather than inferring the destination from AWS endpoint naming.

At the boundary, identify the sending component. It might be an encoder receiving a source directly, or a documented system that ingests a MediaPackage feed and outputs to YouTube. Check that it explicitly supports the required input and output roles. If it only publishes an HLS origin for viewing, it is not thereby a YouTube live sender. Keep both URLs labelled in your runbook: “MediaPackage playback” and “YouTube ingest”, never just “HLS URL”.

Identify classic MediaPackage or v2

Before selecting fields, confirm the service generation in the AWS console, API, or deployed configuration. Classic AWS Elemental MediaPackage documentation describes HLS packager settings. MediaPackage v2 has its own origin endpoint and manifest configuration model. Field names, locations, and available limits should be checked against the exact service and endpoint type you operate; do not transplant a value from one guide into another without confirmation.

The AWS classic HLS packager settings guide is the reference for classic packager fields. The MediaPackage v2 origin endpoint guide covers v2 endpoint and manifest behaviour. Open the guide matching the resource you are configuring, then compare it with the console or API fields actually present.

Keep a short inventory: service generation, endpoint type, input cadence, output format, manifest name, and any time-shift requirement. Record whether the endpoint is intended for public playback, protected playback, or a downstream workflow. This inventory avoids a common operational mistake: copying a setting from a different account or old deployment because its label sounds familiar.

A naming difference is not merely cosmetic if it changes the resulting playback path. In v2, the HLS manifest name contributes to the endpoint path and an extension such as .m3u8 is added. Confirm the final path from the AWS configuration and use that exact playback URL only for its intended recipient. A downstream sender, if present, needs its own documented input configuration; the resulting path does not replace YouTube’s separate ingest URL.

Review endpoint and manifest settings

Start with segment duration. AWS’s classic and v2 guidance ties output segment duration to the source fragment or input segment cadence. Choose a duration aligned with the input, or a multiple of it, and coordinate with the encoder that produces those input segments. Where the configured output duration does not align, AWS describes rounding output segments to a source-aligned multiple. Do not assume the requested number will be the duration observed in every manifest.

A fixed segment duration is not a universal YouTube requirement. It is an AWS packaging choice with consequences for latency, request frequency, and playback behaviour. Faster segments can mean more frequent requests; longer segments can make the visible live edge less immediate. The best value depends on the source cadence and consuming workflow. Inspect actual manifests and playback rather than treating the console field as proof that all components agree.

The live playlist or manifest window controls how much recent content is represented in the rolling live presentation. It is not the number of hours the channel is allowed to run. A channel that has remained live through the night can still have a manifest containing only a short recent lookback. In v2, AWS documents a maximum manifest window of 900 seconds, or 15 minutes. Do not apply that limit to classic MediaPackage unless the classic documentation for your configuration establishes it; the guides and limits are version-specific.

For v2, the startover window is another distinct setting. AWS documents a maximum of 1,209,600 seconds, or 14 days, for that time-shift capability. It is not a substitute for the live manifest window and should not be sized as if it were required for every always-on channel. Enable and size it only when viewers need startover or catch-up behaviour and your delivery design supports it.

Program date and time tags are optional for ordinary HLS playback. MediaPackage v2 can insert EXT-X-PROGRAM-DATE-TIME, associating media segments with wall-clock time and supporting timeline display or seeking in compatible clients. AWS describes the tags as required for low-latency HLS in its v2 guidance. If you are not implementing that workflow, do not add the setting just because the channel operates around the clock. Confirm the receiving player’s use of the tags.

Decision What to match or verify Practical consequence
Segment duration Input fragment cadence and the applicable AWS guide Mismatches may be rounded to source-aligned multiples; check the emitted manifest
Live manifest window Desired recent playback lookback It is not the duration of the continuous channel; v2 documents a 900-second maximum
Startover window A real catch-up or startover requirement Separate from the rolling manifest; v2 documents a 1,209,600-second maximum
PDT tags Wall-clock timeline needs or low-latency HLS design Useful only when the workflow and player make use of them
HLS manifest name Correct path for the configured endpoint Verify the final playback URL; it is not YouTube’s ingest URL

These are not settings to tune in isolation. A useful change record includes the previous value, the chosen value, the applicable generation, the source cadence, and a reason tied to a consumer requirement. Change one variable at a time where practical, then inspect output and playback. This makes a late-night fault easier to trace than a set of simultaneous unexplained adjustments.

Configure YouTube’s ingest and sender

In YouTube Studio, choose the intended live ingest protocol and create or select the corresponding stream configuration. For HLS, follow YouTube’s current HLS instructions and use its HTTPS stream URL and stream key in an HLS-capable sending component. For the general encoder workflow, YouTube recommends RTMPS; HLS is an available ingestion option for workflows and senders that support it. The protocol is selected at the YouTube boundary, not by changing a MediaPackage playback manifest.

Ingestion choice Check on the sender Check in YouTube
RTMPS It can output RTMPS and the selected video/audio formats Use the matching stream key and current ingest settings
HLS It can publish using YouTube’s HLS URL and key, not merely play an HLS manifest Select the HLS configuration and use its supplied HTTPS destination details

Do not decide by protocol label alone. Compare the sender’s supported output protocol, the selected YouTube key, codec and resolution requirements, and how the team will monitor a continuous feed. AWS documents HLS output combinations that include H.264 or H.265 video with AAC audio, but YouTube has its own ingest constraints. Verify the selected combination against YouTube’s current encoder guidance rather than claiming end-to-end compatibility from an AWS codec list.

For a sender you manage, preserve the exact ingest destination and key securely, and document who can rotate or replace them. A stream key is a credential, not a public playback URL. If the sender accepts only a source file or a local capture device, it may not be capable of consuming a MediaPackage HLS feed. If it can ingest HLS but cannot output YouTube’s chosen protocol, the workflow still needs another compatible sending stage.

Test with representative content, including movement and audio. A static title card may not reveal a frozen video feed, and silent footage will not establish that audio is reaching YouTube. Use YouTube’s stream health messages and confirm that the picture and sound behave as expected at the destination. The OBS devotional image and continuous audio guide illustrates why audio continuity should be treated as its own check, even when the visual layer barely changes.

Check authorisation and lifecycle assumptions

A successful manifest request is not the same as an authorised playback path. If the MediaPackage endpoint uses access control, verify how the intended recipient is authorised and whether that arrangement suits a downstream sender. Confirm that any access policy, token, network rule, or credential is configured for the right endpoint and recipient. Do not weaken access controls as a shortcut to make an unfamiliar sender connect; first establish the intended access model in the AWS documentation for your deployment.

Keep the playback URL and YouTube ingest details out of public notes, screenshots, and support messages unless the information is deliberately safe to share. Treat the stream key as sensitive. A private playlist path can also expose content or distribution access, depending on the endpoint configuration. Limit who can change endpoint settings, rotate credentials when required, and record changes in the operational handover.

A 24/7 channel also raises a lifecycle question that is separate from HLS packaging: what happens to the YouTube broadcast and archive over time? YouTube’s encoder guidance says streams under 12 hours are automatically archived. That does not establish a single uninterrupted archive guarantee for a feed exceeding 12 hours. Decide whether you need scheduled events, planned restarts, or a separate archive workflow, and verify current behaviour with YouTube before relying on it.

Plan recovery actions before an overnight fault. Decide who checks the sender, whether a stream can be restarted without changing its key, and how the operator will distinguish a YouTube ingest problem from a MediaPackage playback issue. Keep the continuous broadcast restart guidance in mind as a separate YouTube broadcast-lifecycle question; its relevance is the restart decision, not a substitute for AWS endpoint configuration.

For teams whose actual need is simply to keep a prepared file playing while a computer is off, StreamNeo removes the specific burden of leaving a local machine running by turning an uploaded file into a YouTube live stream; it does not configure or replace a MediaPackage-to-YouTube HLS pipeline.

Validate the complete HLS path

Validation has to follow the traffic across every boundary. First check that the source is contributing at the cadence expected by the packager. Then inspect the MediaPackage endpoint’s generated manifest and confirm that referenced segments are available. Check the manifest path and segment timing, and confirm that the playlist rolls forward rather than repeatedly presenting stale content.

Next test the exact receiving component and destination. If a sender reads MediaPackage output, confirm its documented ability to fetch that endpoint and its ability to output the chosen YouTube protocol. If it does not read MediaPackage output, test the actual source it does use instead. Then start a private or otherwise suitable test in YouTube Studio using the intended key and ingestion protocol, and review the stream health information before using the workflow for a public continuous channel.

Look at content, not only connection indicators. Verify that motion changes, audio remains present, and neither is delayed or frozen in a way that matters to your viewers. For a devotional channel, listen through a transition between tracks. For news or local information, confirm that updated material appears when expected. If the content is a study ambience loop, check that the loop boundary does not introduce an unwanted silence or visual jump.

A useful fault table assigns symptoms to the leg worth checking first:

Symptom First checks
MediaPackage manifest unavailable Input contribution, endpoint state, endpoint path, and access settings
Manifest exists but segments do not advance Source cadence, packaging status, and timestamps in the manifest
Playback works but YouTube has no incoming video Confirm that the sender is configured for YouTube’s ingest URL and protocol, not the viewer URL
Picture arrives without sound Audio in the source, packaged output, sender configuration, and YouTube health messages
Feed starts but later stops Sender process, key or destination changes, network path, and YouTube broadcast lifecycle

These are diagnostic starting points, not proof of a particular cause. Capture timestamps and the exact component reporting an error before changing several settings. A valid AWS manifest only demonstrates that one packaging leg is producing a presentation; it does not establish that YouTube is receiving or accepting the separate live input.

For a true always-on operation, write down the owner, alert route, restart authority, and fallback content. Schedule a representative test that covers the hours and content transitions that could expose a fault, then review the next handover. If you change the MediaPackage generation, endpoint, manifest name, source cadence, YouTube protocol, or key, repeat the relevant path checks. A configuration that worked before a boundary changed is not evidence that the new path is sound.

Before committing, compare the operating options on the pricing page. When the file and channel are ready, start free — 24-hour trial, no card.

FAQ

Can I paste a MediaPackage HLS playback URL into YouTube Studio?

No, not on the assumption that it is an ingest destination. MediaPackage’s HLS endpoint is for playback delivery, while YouTube provides a separate ingest URL and stream key for the configured sender. Use the playback URL only in a workflow that explicitly consumes it for that purpose.

What segment duration should I use for a 24/7 YouTube stream?

There is no universal duration established by the 24/7 runtime or by the word HLS. Align the output with the input segment cadence, or a multiple of it, and check the applicable classic or v2 AWS guide because mismatches may be rounded. Validate the emitted manifest and the behaviour of the actual downstream component.

Does the manifest window need to cover a full day?

No. A rolling live manifest window is the recent content available in the presentation, not a timer for how long the channel runs. In MediaPackage v2, AWS documents a maximum manifest window of 900 seconds; check the correct guide for classic MediaPackage rather than carrying that figure across versions.

Will YouTube keep one archive of a 24/7 broadcast?

Do not assume so from the general encoder guidance. YouTube says streams under 12 hours are automatically archived, but that does not establish one uninterrupted archive for a longer feed. Check YouTube’s current guidance and plan an event, restart, or separate archive workflow if continuity of recordings matters.

YOU’VE REACHED THE END

Keep the ideas coming.

More guides, useful tools and a little help for your next broadcast.

Back to the journal ↗
YOUR NEXT READ

A little more to explore.

More Streaming Settings guides ↗ · All topics ↗