Troubleshooting

H.264 vs HEVC for 24/7 YouTube Loops: The Practical Answer

Why YouTube's live ingest still runs on H.264, not HEVC, and how to pick an export codec for a loop that has to stay up for months.

YouTube's live ingest servers want H.264 video wrapped inside an RTMP, RTMPS, or SRT stream — not HEVC. That has been the case for as long as stream-key-based live streaming has existed on the platform, and as of YouTube's published encoder settings in September 2026, H.264 is still the only video codec listed for that path. The question in the title has a short answer before it has a long one.

The long answer is why this trips people up. HEVC (H.265) is the better codec for almost everything else you do with the same footage — modern phones and drones shoot it by default, it needs roughly half the bitrate of H.264 for comparable quality, and YouTube accepts it happily when you upload an ordinary video. A 24/7 loop channel sits across both worlds at once: it starts life as an uploaded file and ends as a live broadcast that has to keep running, unattended, for weeks. Mixing up which codec belongs to which stage is the single most common encoding mistake creators make when they move from uploading videos to running a live channel.

What YouTube's live ingest actually accepts

For a stream tied to a YouTube stream key, the encoder-side requirements have stayed narrow and specific for a long time. As listed on YouTube's Live Encoder Settings help page in September 2026:

  • Video codec: H.264, Main or High profile
  • Keyframe frequency: every 2 seconds, closed GOP
  • B-frames: 0 to 2
  • Chroma subsampling: 4:2:0
  • Audio codec: AAC-LC, 44.1 kHz or 48 kHz, 128 Kbps or higher

The recommended video bitrates by resolution, from the same page:

Resolution Frame rate Video bitrate (SDR)
2160p (4K) 60 fps 20,000–51,000 Kbps
2160p (4K) 30 fps 13,000–34,000 Kbps
1440p 60 fps 9,000–18,000 Kbps
1440p 30 fps 6,000–13,000 Kbps
1080p 60 fps 4,500–9,000 Kbps
1080p 30 fps 3,000–6,000 Kbps
720p 60 fps 2,250–6,000 Kbps
720p 30 fps 1,500–4,000 Kbps
480p 30 fps 500–2,000 Kbps

HEVC is not among the video codecs listed for this ingest path. That is worth stating plainly because it is easy to find forum threads and old blog posts asserting otherwise, usually based on the fact that YouTube's upload pipeline does accept HEVC files — a different pipeline, covered in the next section. Specs on any platform get revised without much notice, so before you configure a hardware encoder box around this, check the current version of YouTube's encoder settings page yourself rather than trusting a single article, this one included.

Why the codec that wins for upload loses at the ingest door

YouTube's ordinary video upload pipeline is asynchronous. You hand over a file, and YouTube's backend has as much time as it needs to decode it once and re-encode it into its own delivery ladder — multiple resolutions, multiple codecs for different devices and connection speeds. Because that transcoding happens a single time, off to the side, before a single viewer presses play, YouTube can afford to accept a wide range of source formats, HEVC included, along with less common ones like ProRes.

Live ingest doesn't get that luxury. The ingest server is repackaging your incoming signal into YouTube's live delivery formats continuously, in real time, for as many hours as the broadcast runs — which, for a 24/7 loop, can mean months without a break. There is no equivalent one-time transcode to fall back on if the input is unusual; the whole pipeline behind it — adaptive bitrate generation, DVR, caption timing — depends on the incoming contract being fixed and narrow. That is the ordinary, structural reason the accepted codec list for live has stayed short, not some technical inability to decode HEVC on Google's end.

The practical upshot: your archive copy and the file that actually reaches your live encoder do not have to be the same file, and for a channel meant to run for months, they often shouldn't be.

File size versus compatibility over a run measured in months

A 24/7 loop's master file typically sits on a drive or in cloud storage for the life of the channel and gets read again every cycle. Two things matter about it: how large it is to move around, and how reliably every tool that touches it can actually open it.

HEVC's smaller size matters most at the point of getting the file from camera or render to wherever it needs to go next. If you are producing a 45-minute 4K devotional loop from a home connection, the difference between an HEVC export and an H.264 export at similar quality is a genuinely different amount of upload time — and if that master gets refreshed every few weeks, the saving compounds rather than being a one-off convenience.

But the file responsible for surviving months of unattended operation is the one actually feeding your live encoder, and that is where compatibility risk outweighs the storage saving. If any link in that specific chain doesn't decode HEVC cleanly — an older capture card, a hardware encoder box's input stage, a phone-based streaming app — you rarely find out during a five-minute test. You find out as a stutter or a run of dropped frames three weeks in, at 3 a.m., which is a considerably more expensive way to discover an incompatibility than a failed test stream would have been. A stream that starts misbehaving after weeks on air can look identical to several unrelated problems from the outside; the encoder-side and viewer-side buffering breakdown is worth reading before you assume the codec is the culprit or rule it out.

The working rule: keep the archive copy in whichever codec suits your storage and bandwidth. For the one file that actually touches the live path, confirm — deliberately, once, before launch — that it decodes cleanly end to end, or normalise it to H.264 for that single hop and keep HEVC everywhere else in your workflow.

Hardware encode, software encode, and what changes when someone else does it

Modern GPUs encode HEVC in hardware, often with less load on the machine than an equivalent H.264 hardware encode on the same silicon — NVIDIA's own GPU support matrix lists which encoder generations support which codec, as published on NVIDIA's developer site in September 2026, and is worth checking directly if you're buying hardware around this. That is genuinely useful for rendering or recording your master file quickly.

It does not change what has to leave your machine for YouTube. If you are the one running the encoder that faces YouTube directly — OBS on your own PC, or a hardware box doing RTMP out — that outbound leg still has to be H.264, because that is what ingest accepts regardless of how your GPU handled the earlier rendering step. A faster local HEVC encode saves you time at render; it is not a way around the ingest requirement.

This is where the two decisions genuinely decouple, and it is worth being deliberate about which situation you are actually in. If you are running your own always-on encoder box, H.264 output at the settings in the first section is not optional, and it is worth re-checking after any encoder software update, since defaults sometimes shift silently. If instead a 24/7 loop service is taking the file off your hands, the codec you export for storage no longer has to be the one that reaches YouTube, because you are not the one performing that last hop. This is the specific gap StreamNeo removes for a loop channel: you upload the file once, in whatever codec it already exists in, and the broadcast that reaches YouTube arrives already shaped to the live ingest requirements above — you are not the one keeping an encoder correctly configured, unattended, for months at a stretch.

If your library is already HEVC

Most recent phones, drones, and mirrorless cameras shoot HEVC by default, so this is the common starting point rather than the exception. Two reasonable paths from there:

Transcode once, deliberately, before the file enters your live pipeline — using ffmpeg, Handbrake, or your editor's export — and keep the HEVC originals archived untouched. When you do this, match the keyframe interval to 2 seconds and the bitrate to the table in the first section rather than defaulting to whatever your software suggests, and set the audio track to AAC even if the source uses something else.

Or, hand the original file to whatever is doing your live-facing encoding and let that step handle the conversion, which is the more common path for anyone not running their own encoder box.

Either way, re-encode from the highest-quality source you have — the original camera file, not a copy that has already been compressed once for editing or sharing. Going HEVC to H.264 is a lossy-to-lossy step, and starting from an already-compressed file stacks a second generation of loss on top of the first. Gradient-heavy footage shows that cost before anything else does — smooth skies and water are the first place a second compression pass becomes visible.

Which codec to shoot for, by source material

Source material Efficient archive codec What must reach YouTube Watch for
Static graphic or bhajan loop with an audio track Either — motion is minimal, so the difference is small H.264, per the table above Audio codec and sample rate mismatches, not video
Slow gradients — lofi, ambience, night sky HEVC for the archive if the source is 4K H.264, at a bitrate high enough to avoid banding See the colour banding guide
4K nature or relaxation footage, aquariums included HEVC H.264, using the 4K row of the table above Downscale deliberately if your upload bandwidth can't sustain the archive size — the aquarium and relaxation loop guide covers the resolution trade-offs
News ticker or text-heavy local loop H.264 H.264 Keyframe interval matters more than codec choice — text edges show compression artefacts first
Screen recording or slideshow H.264 H.264 Variable frame rate recordings can break keyframe timing — flatten to a constant frame rate before anything else
Talking-head or ordinary camera footage HEVC if hardware-encoded, H.264 if not H.264 The standard case — follow the settings in the first section directly

Symptoms that surface weeks in, not on day one

A codec or keyframe mismatch rarely kills a broadcast in the first hour. It tends to show up later, as intermittent buffering that doesn't correlate with anything on the viewer's side, or as the stream dropping and YouTube reporting a generic ingest problem rather than naming the codec directly. In the more serious cases, an encoder that drifts out of spec over time — a firmware update that quietly changes keyframe interval, for instance — is one of the paths that ends with YouTube ending the live stream outright rather than just degrading it.

If a long-running loop starts misbehaving, check in this order before assuming it's a network issue: codec and profile first, against the table in the first section; bitrate second, against the resolution you're actually sending; keyframe interval third. A "Video unavailable" message on a channel that was running fine an hour ago is far more often an ingest-side mismatch than a viewer-side problem, and codec drift is one of the quieter causes worth ruling out early rather than last.

None of this has to be a recurring decision once you've made it correctly the first time. Pick the archive codec that suits your storage and upload reality, confirm the file touching your live encoder matches YouTube's current ingest requirements, and leave it alone.

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

Does YouTube accept HEVC for live streaming at all?

Not for standard stream-key-based ingest over RTMP, RTMPS, or SRT — as of YouTube's published encoder settings in September 2026, H.264 is the only video codec listed for that path. YouTube's separate upload pipeline, for ordinary non-live video, does accept HEVC source files and transcodes them on its own backend. Confirm on YouTube's current encoder settings page before you build a workflow around either assumption, since platform specs are revised from time to time without much notice.

Will HEVC make my stream look better at the same bitrate?

For a file you upload as an ordinary video, generally yes — HEVC needs roughly half the bitrate of H.264 for comparable visual quality, which is why phones and drones default to it. For the signal that actually leaves your encoder for YouTube's live ingest, the comparison doesn't apply, because that leg has to be H.264 regardless of how efficient HEVC is elsewhere in your workflow.

Do I need to re-encode my entire HEVC library before starting a 24/7 channel?

No. Only the file that touches your live-facing encoder needs to end up as H.264. Keep the rest of your library in whatever codec it was shot in, and either transcode a single master to H.264 yourself before it enters your live pipeline, or use a service that performs that conversion as part of taking the file live.

Does the codec I choose affect monetisation or copyright checks?

No — Content ID and monetisation review look at the video and audio content itself, not the codec or container it happens to be encoded in. For how copyright checks specifically behave during a live broadcast, see Copyright Match, Content ID and Live.