October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
DocumentaryTube
Admit one · Blog

FFmpeg NVENC Settings for 4K 60fps YouTube Live on Linux

A practical Linux FFmpeg NVENC setup for YouTube Live at 4K60, including codec and bitrate choices, a command template, preflight checks and fixes.
Opened Runtime6 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a 4K 60fps YouTube Live stream on Linux, start with H.264 NVENC at 50 Mbps, CBR, a 120-frame GOP, two B-frames and RTMPS. YouTube’s current 2160p60 recommendation is 50 Mbps for H.264 or 35 Mbps for HEVC/AV1; those are ingest targets, not guarantees of picture quality or proof that a particular GPU can encode 4K60 in real time.

Recommended 4K60 settings for YouTube Live

YouTube recommends progressive video at up to 60 fps, constant bitrate, a two-second keyframe interval (no more than four seconds), two B-frames and one reference frame. Its live encoder settings page recommends RTMPS. At 60 fps, a two-second GOP is 120 frames.

Workflow YouTube 2160p60 bitrate Codec and format notes
SDR, compatibility-first H.264: 14 Mbps minimum; 50 Mbps recommended Use an 8-bit SDR source and a compatible H.264 profile/pixel format.
SDR, HEVC or AV1 10 Mbps minimum; 35 Mbps recommended Confirm the GPU, FFmpeg build and YouTube ingest workflow support your chosen codec.
HDR Use YouTube’s applicable HEVC settings; the cited settings page does not list AV1 for HDR 10-bit HEVC Main 10 with accurate source-matched color signaling.

These are YouTube’s published recommendations, not a promise that a given scene will look good at the listed rate. Fast motion, fine detail and encoder behavior affect the result.

Linux preflight before you stream

  1. Check GPU and driver visibility. Run nvidia-smi. Confirm that the detected GPU supports NVENC for your intended codec, resolution, profile and bit depth; capability varies by GPU generation.
  2. Check FFmpeg’s encoders and options. Run ffmpeg -encoders and look for h264_nvenc and/or hevc_nvenc. Inspect local options with ffmpeg -h encoder=h264_nvenc or ffmpeg -h encoder=hevc_nvenc. The FFmpeg binary must be built with NVIDIA hardware-encoding support.
  3. Inspect your input. Confirm it contains 3840Ă—2160 video at the intended frame rate and an audio stream if you plan to map audio. The template below maps the first video stream and optionally the first audio stream; change mapping if the file differs.
  4. Get the private ingest details from YouTube. Use the primary RTMPS ingest address and stream key/name supplied for your broadcast. Treat the key as a password; do not put it in a public script, post or screen capture.
  5. Run a representative private test. Include motion and audio similar to the planned stream. Check YouTube’s stream health and watch for dropped frames or encoding overload before relying on the setup.

SDR H.264 NVENC command template

This is a source-based starting point, not a tested universal command. Replace INPUT and the ingest destination with your actual values. For a file, -re paces reading in real time. A live capture input may need different input options and pacing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
ASUS Dual GeForce RTX 5060 Ti 16GB GDDR7 OC Edition Gaming Graphics Card
  • AI Performance: 767 AI TOPS
  • OC mode: 2632 MHz (OC mode)/ 2602 MHz (Default mode)
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Axial-tech fan design features a smaller fan hub that facilitates longer blades and a barrier ring that increases downward air pressure
  • A 2.5-slot design maximizes compatibility and cooling efficiency for superior performance in small chassis
ffmpeg -re -i INPUT 
  -map 0:v:0 -map 0:a:0? 
  -c:v h264_nvenc -preset p5 -tune hq 
  -rc cbr -b:v 50M -maxrate 50M -bufsize 100M 
  -g 120 -bf 2 -profile:v high 
  -pix_fmt yuv420p -r 60 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "RTMPS_INGEST_URL/STREAM_KEY"
  • -b:v 50M targets YouTube’s recommended H.264 rate for 2160p60; -maxrate 50M pairs with the CBR setting.
  • -bufsize 100M is an illustrative two-second live VBV buffer at 50 Mbps, not a YouTube-mandated buffer value.
  • -g 120 sets a 120-frame GOP, equivalent to two seconds at 60 fps. Confirm actual output behavior in a test.
  • -preset p5 -tune hq is a conservative starting choice, not a universal best preset. Try a higher-quality preset only if your particular GPU sustains real-time encoding without dropped frames.
  • -pix_fmt yuv420p and -profile:v high are for this SDR H.264 template; do not use them as HDR settings.
  • -c:a aac -b:a 128k -ar 44100 provides an AAC audio target. Check that your input has usable audio and that the result sounds right.

The stream key is shown as a placeholder only. Supply it privately, such as through a protected local environment or a method appropriate to your setup, and avoid exposing it in shell history or logs.

HEVC for SDR and HDR

SDR HEVC alternative

For SDR HEVC, use hevc_nvenc and YouTube’s recommended 35 Mbps target for 2160p60, with CBR and the same two-second GOP starting point. A basic substitution is to change -c:v h264_nvenc to -c:v hevc_nvenc, set -b:v 35M -maxrate 35M, and select an HEVC-compatible profile and pixel format supported by your GPU and FFmpeg build. Validate the exact options locally rather than assuming every NVENC build accepts identical settings.

Rank #2
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Powered by GeForce RTX 5070 Ti
  • Integrated with 16GB GDDR7 256bit memory interface
  • PCIe 5.0
  • WINDFORCE cooling system

NVIDIA’s Video Codec SDK 13.1 includes a 4K60 HEVC live example using a 20 Mbps target, 40 Mbps VBV buffer, p7, HQ tuning, GOP 120, B-frames, lookahead and split encoding. That is NVIDIA’s example configuration, not YouTube’s current destination-specific recommendation; YouTube’s listed HEVC 2160p60 target is 35 Mbps.

HDR workflow

Use HEVC Main 10 for an actual HDR source, with correct color metadata matching the source and processing pipeline. YouTube lists 10-bit HDR and HEVC for HDR; it does not list AV1 as supported for HDR on the cited settings page. NVIDIA’s YouTube HDR guidance says to use Low or Normal latency, not Ultra Low. Do not copy fixed HDR color flags into an SDR stream: incorrect transfer-function or color metadata can mislabel the picture.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
ASUS TUF Gaming GeForce RTX™ 5080 16GB GDDR7 OC Edition Graphics Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4. System Requirements: Minimum 850W PSU with 16-pin 12V-2x6 (12VHPWR) connector required. Verify before purchasing.
  • Military-grade components deliver rock-solid power and longer lifespan for ultimate durability. Compatibility: 348mm (13.7") length, 3.6 slots, 4.3 lbs. Confirm case clearance and slot spacing. GPU bracket included.
  • Protective PCB coating helps protect against short circuits caused by moisture, dust, or debris
  • 3.6-slot design with massive fin array optimized for airflow from three Axial-tech fans
  • Phase-change GPU thermal pad helps ensure optimal thermal performance and longevity, outlasting traditional thermal paste for graphics cards under heavy loads

Choose a preset and latency target by testing

At 4K60, the settings only work if the whole system can maintain the required cadence. NVIDIA’s guidance distinguishes latency and quality/performance use cases; YouTube identifies 4K streams as normal latency. A slower, quality-oriented preset is useful only while the GPU can encode each frame in time. Start conservatively, test sustained output, then adjust one variable at a time and inspect YouTube’s stream health.

Troubleshooting common failures

  • “Unknown encoder” or no NVENC encoder listed: The installed FFmpeg build may lack NVIDIA encoding support. Use a compatible build and verify with ffmpeg -encoders.
  • NVENC initialization or unsupported-option errors: Check driver/GPU compatibility, then inspect the local encoder help. Presets, profiles, pixel formats and features differ by hardware generation and build.
  • Encoding overload or dropped frames: A chosen preset or resolution may exceed the specific GPU’s sustainable real-time capacity. Test a faster preset or reduce the workload, then verify the output remains 3840Ă—2160 at 60 fps if that is required.
  • YouTube reports bitrate or connection trouble: Confirm the target rate, CBR configuration, upload capacity and RTMPS URL/key. YouTube’s listed minimum is not the same as its recommended rate, and network headroom matters.
  • Keyframe interval warning: Check that GOP is two seconds at the actual frame rate. -g 120 assumes 60 fps; a different frame rate changes the GOP duration.
  • No audio or wrong audio: Check stream mapping and input audio. The optional map in the template tolerates absent audio, but then no audio is sent.
  • HDR looks washed out or incorrectly colored: Verify the source is genuinely HDR, the 10-bit HEVC path is used, and metadata reflects the source. SDR flags are not a safe substitute.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

For a stream that must stay live around the clock

A local FFmpeg process depends on the Linux machine, GPU, power and network remaining available. If your goal is an always-on YouTube channel rather than a one-time live event, StreamNeo is a cloud alternative: upload a recording or make a playlist, add your YouTube stream key once, and go live. It loops uploaded videos from the cloud, so your computer and home connection do not need to stay on. It does not stream from a camera or to platforms other than YouTube.

Rank #4
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Powered by GeForce RTX 5060
  • Integrated with 8GB GDDR7 128bit memory interface
  • PCIe 5.0
  • WINDFORCE cooling system

StreamNeo streams uploaded video as made, up to 4K 60fps, at one flat price per slot without re-encoding or quality tiers. It includes 24/7 looping and playlists, 10 GB storage per slot pooled across active slots, automatic recovery if YouTube drops the stream and StreamNeo team support. Its first day is free with no card, once per account. The Monthly price is $9.99 per month. UPI and cards are supported in India; card checkout is available worldwide. See StreamNeo for details. To try it, start a free StreamNeo account.

Quick Recap

Bestseller No. 1
ASUS Dual GeForce RTX 5060 Ti 16GB GDDR7 OC Edition Gaming Graphics Card
ASUS Dual GeForce RTX 5060 Ti 16GB GDDR7 OC Edition Gaming Graphics Card
AI Performance: 767 AI TOPS; OC mode: 2632 MHz (OC mode)/ 2602 MHz (Default mode); Powered by the NVIDIA Blackwell architecture and DLSS 4
$794.37
Bestseller No. 2
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
Powered by the NVIDIA Blackwell architecture and DLSS 4; Powered by GeForce RTX 5070 Ti; Integrated with 16GB GDDR7 256bit memory interface
$1,249.99
Bestseller No. 3
ASUS TUF Gaming GeForce RTX™ 5080 16GB GDDR7 OC Edition Graphics Card
ASUS TUF Gaming GeForce RTX™ 5080 16GB GDDR7 OC Edition Graphics Card
3.6-slot design with massive fin array optimized for airflow from three Axial-tech fans; Auto-Extreme precision automated manufacturing helps ensure higher reliability
$1,814.90
Bestseller No. 4
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
Powered by the NVIDIA Blackwell architecture and DLSS 4; Powered by GeForce RTX 5060; Integrated with 8GB GDDR7 128bit memory interface
Bestseller No. 5
ASUS TUF Gaming GeForce RTX 5070 12GB GDDR7 OC EditionGaming Graphics Card
ASUS TUF Gaming GeForce RTX 5070 12GB GDDR7 OC EditionGaming Graphics Card
3.125-slot design with massive fin array optimized for airflow from three Axial-tech fans; Auto-Extreme precision automated manufacturing helps ensure higher reliability
$937.39
Best Value
ASUS TUF Gaming GeForce RTX 5070 12GB GDDR7 OC EditionGaming Graphics Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4 OC mode: 2640MHz/Default mode: 2610MHz (Boost Clock)
  • Military-grade components deliver rock-solid power and longer lifespan for ultimate durability
  • Protective PCB coating helps protect against short circuits caused by moisture, dust, or debris
  • 3.125-slot design with massive fin array optimized for airflow from three Axial-tech fans
  • Phase-change GPU thermal pad helps ensure optimal thermal performance and longevity, outlasting traditional thermal paste for graphics cards under heavy loads

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Screening Room

  1. How to stream Glastonbury 2025 in 4K for free: what was available and what you can watch nowAdmit one · BlogHow to stream Glastonbury 2025 in 4K for free: what was available and what you can watch nowOpened13 AUG 2026Runtime8 min
  2. Dr. J – The Julius Erving StoryAdmit one · SportsDr. J - The Julius Erving StoryOpened05 OCT 2026Runtime2 min
  3. The MDMA Highway: From Cook to ConsumptionAdmit one · DrugsThe MDMA Highway: From Cook to ConsumptionOpened05 OCT 2026Runtime3 min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.