Skip to content

VersusGPU

AV1 vs HEVC vs H.264 for Streaming: Which Codec Should You Use in OBS?

YouTube accepts H.264, HEVC and AV1 for live streams and recommends lower bitrates for AV1 and HEVC (12 Mbps vs 17 Mbps for 1080p60), so use one of them if your GPU offers it in OBS and your upload is limited. Use HEVC for HDR, as YouTube doesn't support AV1 for HDR, and H.264 otherwise.

By , Editorial team

2 min read

AV1 vs HEVC vs H.264 for Streaming: Which Codec Should You Use in OBS?

When you set up a stream in OBS Studio, the encoder list can include H.264, HEVC (also called H.265) and AV1, depending on your graphics card. All three can work, but they don't need the same bandwidth, and not every platform or viewer setting supports all of them. This comparison is based on YouTube's official encoder guidance and OBS's documentation; Forge PC hasn't run its own streaming tests.

What YouTube accepts

YouTube's live encoder settings page lists H.264, H.265 (HEVC) and AV1 as supported video codecs over RTMP/RTMPS, at up to 60fps, with constant bitrate (CBR) and a recommended keyframe interval of 2 seconds (no more than 4).

Bitrate: the big difference

YouTube's table gives separate recommended bitrates for AV1/H.265 and for H.264. The newer codecs are recommended lower bitrates at every resolution:

Resolution

AV1 / H.265 recommended

H.264 recommended

1080p at 60fps

12 Mbps

17 Mbps

1440p at 60fps

24 Mbps

34 Mbps

4K at 60fps

35 Mbps

50 Mbps

YouTube's minimums follow the same pattern; for 1080p60, 4 Mbps for AV1/H.265 against 6 Mbps for H.264. Going by YouTube's figures, AV1 or HEVC can be the better choice if your upload speed is limited, or let you stream at a higher resolution on the same connection.

HDR

YouTube says H.265 (HEVC) is the codec for HDR live streams and that AV1 isn't supported for HDR. If you stream HDR to YouTube, use HEVC.

H.264: the safe default

H.264 is the long-established option and YouTube supports it alongside the newer codecs. If your graphics card doesn't offer an HEVC or AV1 encoder in OBS, it's the one to use. Check your streaming platform's own guidance before switching, as support varies between services.

Hardware encoders in OBS

OBS's knowledge base notes that, from OBS 31, the NVIDIA NVENC implementation adds extra options, some of which, such as using B-frames as reference frames, apply only to HEVC and AV1. If AV1 or HEVC isn't offered in OBS, check your graphics card maker's specifications for hardware encoder support, and make sure you're on a current graphics driver.

For the GPU-versus-CPU encoding question, see NVENC vs x264 in OBS, and for recording rather than streaming, how to record gameplay with OBS Studio.

Our verdict

For YouTube, AV1 or HEVC need noticeably less bitrate than H.264 for the same resolution (12 Mbps vs 17 Mbps recommended at 1080p60), so pick one if your GPU offers it in OBS and your upload is limited. Use HEVC for HDR, because YouTube doesn't support AV1 for HDR. Stick with H.264 if your GPU doesn't offer the newer encoders, and check each platform's guidance if you stream elsewhere.

The bottom line

For YouTube, AV1 or HEVC need noticeably less bitrate than H.264 for the same resolution (12 Mbps vs 17 Mbps recommended at 1080p60), so pick one if your GPU offers it in OBS and your upload is limited. Use HEVC for HDR, because YouTube doesn't support AV1 for HDR. Stick with H.264 if your GPU doesn't offer the newer encoders, and check each platform's guidance if you stream elsewhere.

Sources

  1. 01YouTube Help, Choose live encoder settings, bitrates and resolutions
  2. 02OBS Project, Advanced NVENC Options (31.0)

About the author

Forge PC Staff

Editorial team

The shared byline for articles researched, written and edited by the Forge PC editorial team. How we source, check and correct our work is set out in our editorial policy.

More from Forge PC Staff

Read next

How to Turn Thinking On or Off in Ollama (DeepSeek-R1, Qwen 3, gpt-oss)

How-To

How to Turn Thinking On or Off in Ollama (DeepSeek-R1, Qwen 3, gpt-oss)

Ollama lets you control reasoning models' thinking: --think and --think=false on the command line, /set think and /set nothink in chats, --hidethinking for scripts and a think field in the API. Check /api/show first, as models such as gpt-oss use low, medium and high levels instead.

Forge PC Staff2 min

How to Use Embedding Models in Ollama for Local Semantic Search and RAG

How-To

How to Use Embedding Models in Ollama for Local Semantic Search and RAG

Embedding models turn text into vectors for semantic search and RAG. Pull one such as embeddinggemma in Ollama, generate vectors with ollama run or the /api/embed endpoint, store them, then embed questions with the same model and compare using cosine similarity, all locally.

Forge PC Staff3 min

How to Turn On Variable Refresh Rate (VRR) in Windows 11

How-To

How to Turn On Variable Refresh Rate (VRR) in Windows 11

Windows 11's Variable refresh rate switch enables VRR for DirectX 11 full-screen games that don't support it natively, and Optimizations for windowed games helps windowed and borderless DX10/11 games use VRR. Turn on FreeSync or G-SYNC first; the VRR switch only appears with suitable drivers and a VRR monitor.

Forge PC Staff2 min