Home / Guides / YouTube live encoder settings

YouTube live encoder settings that just work

Bitrate, keyframe interval, resolution and codec, in plain terms.

LIVE 24/7STREAMZOP

Skip the setup. Stream to YouTube 24/7 from the cloud.

Upload once, paste your stream key, and StreamZop keeps it live around the clock with automatic restarts.

  • No PC or OBS
  • Live in ~2 minutes
  • Auto-restart 24/7
  • Free plan, no card
Start a 24/7 stream7-DAY MONEY-BACK · CANCEL ANYTIME

YouTube expects H.264 video, AAC audio, and a keyframe (GOP) interval of about 2 seconds. Set the video bitrate to match your resolution and framerate, keep audio at 128 kbps, and use a constant bitrate for the smoothest live playback. As a quick reference, 1080p at 30fps wants roughly 3,000 to 6,000 kbps, and 720p at 30fps around 2,500 to 4,000 kbps. These settings live in your encoder, separate from the stream key that decides which channel the video belongs to. The RTMP URL and key point at a destination, while the encoder settings determine how the picture actually looks when it reaches viewers. Get the codec, keyframe interval and bitrate right and YouTube can transcode your feed into every quality option cleanly; get them wrong and viewers see buffering or a capped resolution.

Recommended bitrate by resolution

YouTube's recommended ranges are roughly: 720p at 30fps, 2,500 to 4,000 kbps; 720p at 60fps, 3,500 to 5,000 kbps; 1080p at 30fps, 3,000 to 6,000 kbps; 1080p at 60fps, 4,500 to 9,000 kbps; 1440p at 30fps, 6,000 to 13,000 kbps; and 4K at 30fps, 13,000 to 34,000 kbps. Higher motion content benefits from the top of each range. Whatever you choose, your upload connection needs headroom above the bitrate, so a 6,000 kbps 1080p stream wants noticeably more than 6 Mbps of steady upload to avoid buffering.

Keyframe interval

Use a keyframe every 2 seconds. YouTube requires a keyframe frequency of no more than 4 seconds, and 2 seconds is the safe, recommended value. At 30fps that means a GOP of 60 frames, and at 60fps a GOP of 120 frames. A consistent keyframe interval is what lets YouTube cut cleanly between quality levels for viewers, so avoid variable or scene-based keyframes for a live push.

Video codec and audio

Encode video with H.264 and audio with AAC-LC at 128 kbps, 44.1 kHz or 48 kHz stereo. Use the yuv420p pixel format for the widest compatibility. H.264 is the codec every YouTube-compatible encoder supports, so unless you have a specific reason to use a newer codec, it is the safe default for a live stream.

Match the source video to your stream settings

Encoding cannot add detail the source file never had. If you plan to stream at 1080p60, start from a 1080p60 source; streaming a 720p30 file under a 1080p60 profile only wastes bitrate. For a 24/7 loop, export the source at the resolution and framerate you intend to broadcast, so the encoder passes it through cleanly rather than upscaling.

Framerate and resolution choices

YouTube supports 30fps and 60fps at each resolution. Use 60fps for gameplay and other high-motion content where smoothness is noticeable, and 30fps for talks, slideshows, music visuals or ambience, where it saves bitrate with no visible loss. Whatever framerate you pick, keep it constant, since a fluctuating framerate confuses the keyframe timing and can destabilize a long stream.

Settings for a 24/7 pre-recorded stream

For an always-on loop, a constant bitrate and a fixed 2-second keyframe interval keep the stream stable over long runs, because sudden bitrate swings are more likely to cause drops the longer a broadcast runs. This is one place a pre-recorded live stream differs from a live show: the file is already encoded, so consistency matters more than reacting to a changing scene. StreamZop applies YouTube-friendly encoder settings for you, so you upload a video and it streams at your chosen quality without touching an encoder.

LIVE 24/7STREAMZOP

Put your video live 24/7, without a PC.

Upload once, paste your stream key, and StreamZop keeps it live around the clock with automatic restarts.

  • No PC or OBS
  • Live in ~2 minutes
  • Auto-restart 24/7
  • Free plan, no card
Start a 24/7 stream7-DAY MONEY-BACK · CANCEL ANYTIME

Frequently asked questions

What bitrate should I use for 1080p on YouTube?+

About 3,000 to 6,000 kbps at 30fps, or 4,500 to 9,000 kbps at 60fps. Use the higher end for fast-motion content.

What keyframe interval does YouTube need?+

A keyframe at least every 4 seconds, with 2 seconds recommended. At 30fps that is a GOP of 60 frames.

What video and audio codec does YouTube use?+

H.264 video and AAC-LC audio at 128 kbps, 44.1 or 48 kHz.

Do I need an encoder for a 24/7 stream?+

Not with a cloud service. StreamZop encodes and pushes the stream for you, so no local encoder or PC has to stay on.

Should I use constant or variable bitrate for YouTube live?+

Use a constant bitrate (CBR). It gives YouTube a steady stream to work with and is the most stable choice for live, especially over a long 24/7 run. Variable bitrate is meant for file exports, not live ingest.

What framerate should I stream at?+

Use 30fps for talks, music visuals and ambience, and 60fps for gameplay and fast motion. Keep the framerate constant, since a fluctuating framerate can destabilize a long stream.

Related guides