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
- 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. - Check FFmpeg’s encoders and options. Run
ffmpeg -encodersand look forh264_nvencand/orhevc_nvenc. Inspect local options withffmpeg -h encoder=h264_nvencorffmpeg -h encoder=hevc_nvenc. The FFmpeg binary must be built with NVIDIA hardware-encoding support. - 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.
- 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.
- 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.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →#1 Best Overall
- 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 50Mtargets YouTube’s recommended H.264 rate for 2160p60;-maxrate 50Mpairs with the CBR setting.-bufsize 100Mis an illustrative two-second live VBV buffer at 50 Mbps, not a YouTube-mandated buffer value.-g 120sets a 120-frame GOP, equivalent to two seconds at 60 fps. Confirm actual output behavior in a test.-preset p5 -tune hqis 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 yuv420pand-profile:v highare for this SDR H.264 template; do not use them as HDR settings.-c:a aac -b:a 128k -ar 44100provides 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
- 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.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsRank #3
- 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 120assumes 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.
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
- 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
Best Value
- 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.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →




