Technical guides

IPTV Encoder Settings GuideBitrate, Codec, Keyframe (2026)

Optimal IPTV encoder settings for live streaming — H.264 vs H.265, bitrate by resolution, 2-second keyframe interval, audio + transport (SRT vs RTMP).

Publicado em 29 de maio de 20268 min de leitura
Quick answer
Optimal IPTV encoder settings for 2026: H.264 or H.265 codec, 4-6 Mbps bitrate for 1080p (12-18 Mbps for 4K), 2-second keyframe interval matching HLS segment length, AAC audio at 128-192 kbps, and SRT or RTMP transport. Get these wrong and you ship buffering streams. For background on what an encoder is, read our IPTV encoder buyer's guide first.

Why IPTV encoder settings matter more than the encoder itself

You can run a $1,500 Magewell encoder with bad settings and get worse picture than a $120 generic encoder with good ones. The settings — codec, bitrate, keyframe interval, audio, and transport protocol — are where 90% of the quality and reliability of an IPTV stream actually live.

Codec: H.264 vs H.265 vs AV1

CodecBandwidthDecoder supportUse when
H.264 / AVC100% (baseline)Universal — every device made since 2010Maximum compatibility, mixed-audience streams
H.265 / HEVC60-70% (saves 30-40%)Modern devices only4K + 8K streams, bandwidth-constrained networks
AV150-60% (saves 40-50%)2023+ flagships, Chrome, YouTubeFuture-proofing, premium VOD; not yet for live

Bitrate: the variable that breaks viewers' streams

Underbitrate and you get blocky compression artefacts. Overbitrate and your subscribers' Wi-Fi can't keep up — they buffer, blame your service, and churn. Use these targets:

ResolutionH.264 bitrateH.265 bitrateFPS
480p SD1.0-1.5 Mbps0.6-1.0 Mbps25/30
720p HD2.5-4 Mbps1.5-2.5 Mbps25/30
1080p Full HD4-6 Mbps2.5-4 Mbps25/30
1080p60 (sport)6-8 Mbps4-5 Mbps50/60
4K UHD20-25 Mbps12-18 Mbps25/30
4K60 HDR (sport)30-40 Mbps18-25 Mbps50/60

Keyframe interval (GOP length)

Set keyframe interval to 2 seconds matching the standard HLS segment length. This means:

  • At 30 fps: keyframe every 60 frames
  • At 60 fps: keyframe every 120 frames
  • At 25 fps: keyframe every 50 frames

Audio settings

  • Codec: AAC-LC (universal) or AAC-HE (50% smaller, fine for speech)
  • Bitrate: 128 kbps for general broadcast, 192 kbps for music + sport, 96 kbps for talk radio
  • Sample rate: 48 kHz (broadcast standard)
  • Channels: Stereo (2.0). For 5.1 surround use E-AC-3 / Dolby Digital Plus at 384-640 kbps

Transport protocol: SRT vs RTMP vs HLS vs MPEG-TS

ProtocolLatencyPacket loss toleranceUse when
RTMP2-5 sLowPushing to YouTube/Twitch (still required by platforms)
SRT300 ms-2 sVery high (forward error correction)Contribution: encoder → ingest server, especially over unstable internet
MPEG-TS over UDP<200 msNoneLAN-only distribution (stadiums, hotels)
HLS6-30 sHighDistribution: ingest server → end viewers
Low-Latency HLS2-5 sHighLive sport / news with HLS players (Smarters Pro, TiviMate)
WebRTC<500 msModerateAuctions, betting — sub-second matters

Common encoder-settings mistakes

Variable bitrate (VBR) on live streams

VBR works for VOD, not live. CDN segmentation needs predictable bitrate. Use CBR or capped-VBR — set average and max within 10% of each other.

Forgetting B-frames cost latency

B-frames compress well but add 2-3 frame latency. Disable B-frames for sport / news; enable them for VOD.

Encoding at 25 fps for 60 fps source

Resampling a 60 fps sport feed to 25 fps for 'compatibility' produces visible judder. Match the source frame rate.

FAQ

What bitrate should I use for IPTV at 1080p?+
4-6 Mbps for H.264, 2.5-4 Mbps for H.265 (HEVC). For 1080p60 sport content add ~50%. Use CBR for live, VBR only for VOD.
Is H.265 better than H.264 for IPTV?+
H.265 saves 30-40% bandwidth at the same quality — yes for 4K and 8K streams. For 1080p, H.264 is still safer because more devices decode it natively. The savings rarely justify breaking compatibility with older STBs and smart TVs.
What keyframe interval for IPTV?+
2 seconds, matching the standard HLS segment length. At 30 fps that's every 60 frames; at 60 fps every 120 frames; at 25 fps every 50 frames.
Should I use SRT or RTMP for encoder ingest?+
SRT for contribution (encoder to ingest), it tolerates packet loss far better than RTMP. RTMP only when a downstream service (YouTube Live, Twitch, Facebook Live) requires it.
What audio codec for IPTV?+
AAC-LC at 128 kbps stereo is the universal default. Bump to 192 kbps for music or sport ambience; use E-AC-3 at 384-640 kbps for 5.1 surround on premium channels.

Pronto para colocar em prática?

Royal IPTV envia uma URL M3U ou credenciais Xtream por e-mail em menos de 10 minutos. 30.000+ canais e 80.000+ títulos VOD incluídos.