For 4K (3840×2160) at 60 fps, YouTube’s recommended H.264 live video bitrate is 50 Mbps; its listed minimum is 14 Mbps. Use CBR, RTMPS where available, and a two-second keyframe interval—120 frames at 60 fps. The FFmpeg command below is a starting point, not a tested or universally suitable preset: confirm that your source, network and encoder can sustain it before going live.
Baseline FFmpeg command
Replace the input path, ingest endpoint and stream key with your own. Get the ingest URL and stream key from YouTube Live Control Room.
As an Amazon Associate I earn from qualifying purchases.
ffmpeg -re -i INPUT
-c:v libx264 -preset veryfast -profile:v high -pix_fmt yuv420p
-r 60 -g 120 -keyint_min 120 -sc_threshold 0 -bf 2 -refs 1
-b:v 50M -minrate 50M -maxrate 50M -bufsize 100M
-color_primaries bt709 -color_trc bt709 -colorspace bt709
-c:a aac -b:a 128k -ar 44100 -ac 2
-f flv 'rtmps://YOUR_INGEST_URL/YOUR_STREAM_KEY'
This example follows YouTube’s ingest guidance and documented FFmpeg/libx264 controls; it has not been tested. FFmpeg’s -b:v value is in bits per second, so 50M means 50 Mbps. The FFmpeg libx264 wrapper also accepts x264 options, whose units can differ: x264’s own bitrate parameter is expressed in kilobits per second. See the FFmpeg documentation.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsInput and pacing
Use -re to pace a file input in real time. For live capture, omit -re and use the capture input appropriate to your system. The source should actually be progressive 3840×2160 at 60 fps; add scaling or frame-rate conversion only when needed.
#1 Best Overall
- This Gaming PC Desktop is well-suited for a variety of tasks including gaming, study, business, photo and video editing, streaming, day trading, crypto trading, and so on,ideal for Home, Office, School work
- This high-performance Gaming Computer Desktop is capable of running a wide range of popular PC games for pc gamer, including Fortnite, Call of Duty Warzone, Escape from Tarkov, GTA V, World of Warcraft, LOL, Valorant, Apex Legends, Roblox, Overwatch, CSGO, Battlefield V, Minecraft, Elden Ring, Rocket League, The Division 2, and Hogwarts Legacy with 60+ FPS
- PC Gaming System: This gaming computer desktop is loaded with Intel Core i7 up to 4.0GHz | 16GB DDR4 Memory | 512GB Solid State Drive | Genuine Windows 11 Home 64-bit
- Gaming Desktop Connectivity: This gaming pc comes with RGB Fan x 4 | 1x RJ-45 | Wi-Fi 6 | Bluetooth 5.2 | GeForce RTX 2060 6G | HDMI | DisplayPort
- Gaming Computer Special Feature: This gaming pc equips with RGB Gaming Mouse & Keyboard |1 Year parts & labor | Free lifetime tech support,ARGB lighting that brings your gaming setup to life, with easy plug-and-play setup that gets you started in minutes. Built for long-lasting performance, it holds up well over time, while secure packaging ensures it arrives in perfect condition. Backed by reliable customer support for quick issue resolution
Keyframes and rate control
At 60 fps, a two-second GOP is 120 frames. -g 120 sets that maximum GOP length, while -keyint_min 120 and -sc_threshold 0 aim to keep keyframes regularly spaced. Equal target, minimum and maximum video rates express the intended CBR mode. The 100 Mbps buffer is an implementation choice in this example, not a YouTube requirement.
Why these settings fit YouTube’s 4K60 live guidance
YouTube’s current live encoder guidance recommends 50 Mbps for H.264 at 4K/2160p and 60 fps, and lists 14 Mbps as the minimum. The minimum is not a quality target. YouTube also recommends CBR and a two-second keyframe interval, and says not to exceed four seconds.
| Setting | Starting value | Purpose and qualification |
|---|---|---|
| Resolution and frame rate | 3840×2160 progressive, 60 fps | Confirm the source really supplies this mode; don’t label upscaled or lower-frame-rate input as native 4K60. |
| Video codec | H.264 with libx264 |
Matches the requested software encoder and YouTube’s H.264 ingest option. |
| Video bitrate | 50 Mbps recommended; 14 Mbps minimum | YouTube’s H.264 4K60 live ingest figures. The minimum is not a recommended quality setting. |
| Rate control | CBR intent | YouTube recommends CBR for live encoding; equal target, minimum and maximum rates express that intent in this FFmpeg command. |
| Keyframe interval | 2 seconds / 120 frames | YouTube recommends two seconds and says not to exceed four seconds. |
| B-frames and references | 2 B-frames; 1 reference | Values listed in YouTube’s advanced guidance; verify behavior with your installed x264 build. |
| Pixel format and profile | yuv420p; High Profile |
Common 8-bit SDR compatibility choices; YouTube’s advanced guidance specifies 8-bit SDR and square pixels. |
| SDR color | Rec. 709 | YouTube recommends Rec. 709 for SDR. |
| Audio | AAC stereo, 44.1 kHz, 128 kbps | Matches YouTube’s listed stereo guidance for RTMP/RTMPS. |
| Transport and muxer | RTMPS with FLV muxing | YouTube recommends RTMPS; FFmpeg uses FLV muxing for RTMP-family output. |
Check that your computer and connection can sustain it
Choose a preset by testing the actual workload
veryfast is only a starting preset. Neither YouTube nor FFmpeg guarantees that a particular CPU or preset will encode 4K60 in real time. A slower preset may improve compression efficiency if the system can sustain it; a faster preset may be necessary if frames are missed, with a possible quality trade-off. Test representative footage and audio on the machine you plan to use, and watch encoder speed, dropped frames and YouTube’s stream-health warnings.
Plan for upload capacity
The encoder sends roughly 50 Mbps of video at the recommended H.264 target, in addition to audio and protocol overhead. Your sustained upload capacity must exceed the outgoing stream rate with room for normal variation; a speed-test peak alone does not establish that the connection can hold a live stream. Test the actual network path and monitor YouTube’s stream health during a representative test.
Rank #2
- Content Creation Workstation PC: Powered by the Intel Hexa-Core i5 (8th Gen) processor with 32GB DDR4 RAM and NVIDIA's Quadro K1200 4GB Graphics Card, this Workstation PC Computer is built for creative environments
- NVIDIA's Quadro K1200 4GB Graphics Card: Graphic support built to be an efficient workstation for creative applications like photo and video editing, 3D Design, AutoCAD, and much more
- Software Compatibility: Workstation PC for use with independent software vendors (ISV) and certified for use with modeling, rendering, and engineering software from Adobe, AutoCAD, 3DS Max, and many more
- Massive Storage Solutions: An ultra-fast 1TB Solid State Drive (SSD) setup as the primary boot device; Boot and load programs with little to no lag; An additional 4TB Hard Disk Drive (HDD) is installed for additional storage; Never run out of storage
- Connectivity for Creative Projects: USB 3.0 (x5) | USB 2.0 (x4) | USB Type-C (x1) | DisplayPort (x2) | Serial Port (x1) | VGA Port (x1) | Audio Combo Jack (x1) | Audio In (x1) | Audio Out (x1) | RJ-45 Ethernet (x1) | Internal SATA (x3)
RTMPS and latency
Use the RTMPS ingest endpoint shown in Live Control Room when available; YouTube recommends RTMPS over RTMP. YouTube says 4K/2160 streams do not have the low-latency option and are optimized for quality at normal latency.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Do not confuse live bitrate with upload encoding
The 50 Mbps figure is a live ingest video target, not a recommendation for an uploaded video file. YouTube’s separate upload encoding recommendations cover video uploads and specify different guidance, including variable bitrate. Don’t substitute upload settings for live ingest settings.
Troubleshoot common failures
- FFmpeg cannot connect: Recheck the ingest URL and stream key in Live Control Room, including accidental whitespace or an outdated key. Confirm that the network permits the selected RTMPS connection.
- Stream health reports insufficient bitrate or instability: Confirm the outgoing bitrate and whether the connection can sustain it. If it cannot reliably sustain the 50 Mbps target, resolve the network limitation or test a lower bitrate; YouTube lists 14 Mbps as the H.264 4K60 minimum, not a quality guarantee.
- Encoding falls behind or frames drop: Test with representative content, then try a faster x264 preset or reduce the output workload if necessary. Verify output resolution and frame rate rather than assuming the input and encoder are keeping up.
- Keyframes are not regularly spaced: Check that the output is actually 60 fps and that the installed encoder accepts the options. FFmpeg builds and available encoder options vary; inspect the installed build’s encoder help and verify the resulting stream.
- Color or playback looks wrong: Confirm the material is SDR before applying Rec. 709 tags. Check that the source and output pixel format, scan mode and frame rate are what you intend.
- Audio is absent or incompatible: Confirm the input has an audio stream and that the output is AAC stereo at the specified sample rate and bitrate.
Or let it run in the cloud
If your goal is a YouTube channel that stays live with pre-recorded video, StreamNeo is a cloud alternative: upload a recording or build a playlist, add your YouTube stream key, and go live. Your computer can stay off at home; StreamNeo loops uploaded videos, supports any uploaded quality up to 4K 60fps at one flat price per slot, and automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. It streams to YouTube only. See StreamNeo, or start the free first day.
Free tools Windows power users keep installed
One-click scans. No signup required.
Quick Recap
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.




