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
1080p60

FFmpeg Command for 1080p 60fps YouTube Live Streaming

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

To stream a file through FFmpeg to YouTube Live at 1080p and 60 fps, use an H.264 encoder, YouTube’s recommended 17 Mbps video bitrate, a two-second keyframe interval, AAC stereo audio, and an RTMPS ingest URL. The command below is an illustrative SDR starting point; replace the input and stream key, then test the actual source and connection before broadcasting.

FFmpeg command for a 1080p60 YouTube Live stream

This template is for a video file with an optional audio track. It scales the video to 1920Ă—1080, sets the output to 60 fps, and sends an H.264/AAC stream to YouTube over RTMPS:

ffmpeg -re -i INPUT 
  -map 0:v:0 -map 0:a:0? 
  -vf "scale=1920:1080,fps=60,format=yuv420p" 
  -c:v libx264 -preset veryfast 
  -b:v 17M -maxrate 17M -bufsize 34M 
  -g 120 -keyint_min 120 -sc_threshold 0 
  -pix_fmt yuv420p 
  -c:a aac -b:a 128k -ar 44100 -ac 2 
  -f flv "rtmps://a.rtmp.youtube.com/live2/STREAM_KEY"
  1. Replace INPUT with the path to your file, such as documentary.mp4.
  2. In YouTube Studio, open Live Control Room and find the stream URL and stream key for your broadcast. Replace STREAM_KEY with the key, keeping it private. YouTube’s setup guidance is at YouTube Help: Create a live stream with an encoder.
  3. Run the command from a terminal where FFmpeg is installed and libx264 is available. Check the FFmpeg build if it reports an unknown encoder or cannot open the input.
  4. Confirm that YouTube receives the expected resolution and frame rate, and review stream-health messages before starting the event.

FFmpeg processes inputs and outputs according to the options supplied for each; a file, capture device, desktop capture, and network input do not all use the same input syntax. Consult the FFmpeg command-line documentation and its protocol documentation when adapting the source or output.

What the command’s settings do

Resolution, frame rate, and pixel format

scale=1920:1080 sets the output dimensions, while fps=60 requests 60 frames per second. These filters may resize or duplicate/drop frames depending on the source; they do not create genuine detail or motion that is absent from it. If the source has a different aspect ratio, scaling directly to 1920×1080 can distort it. Choose a fit, crop, or padding approach appropriate to the material instead. yuv420p is a common compatible pixel format for an H.264 SDR stream, but it does not by itself guarantee correct color metadata or preserve the source’s appearance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Codec, bitrate, and rate control

-c:v libx264 selects H.264 encoding, and -b:v 17M -maxrate 17M sets a 17 Mbps target and maximum. YouTube’s live encoder guidance lists 6 Mbps minimum and 17 Mbps recommended for H.264 at 1080p60; those figures are for that codec and format, not for every encoding option. YouTube recommends constant bitrate (CBR). The -bufsize 34M value is a practical VBV starting point in this example, not a separately stated YouTube requirement. If your connection or encoder cannot sustain the target, lower the bitrate and verify the resulting stream rather than allowing frequent drops. See YouTube’s live encoder settings.

YouTube’s table gives different figures for other codecs: for 1080p60, AV1/H.265 is listed at 4 Mbps minimum and 12 Mbps recommended. Do not apply the H.264 bitrate figures to AV1 or H.265. The command here is an H.264 SDR example, not an HDR configuration.

Keyframes

-g 120 and -keyint_min 120 set a 120-frame interval, equivalent to two seconds at 60 fps. -sc_threshold 0 disables scene-change keyframe insertion so the interval remains regular. YouTube recommends a two-second keyframe interval and says not to exceed four seconds. FFmpeg describes its encoder options in the codec documentation.

Audio

-map 0:a:0? maps the first audio stream if one exists; the question mark makes it optional. The audio settings encode AAC at 128 kbps, 44.1 kHz, stereo. YouTube recommends AAC or MP3 for RTMP/RTMPS ingest and lists 128 kbps and 44.1 kHz for stereo audio. If your input has no audio, the optional mapping lets this command proceed without that stream.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Input pacing and RTMPS output

-re reads a file at approximately its real-time rate, which is appropriate for simulating a live feed from a prerecorded file. It is not a general fix for a live capture source. The output uses RTMPS, which YouTube recommends for ingest. The exact server URL and key should come from Live Control Room; do not share the key or place a real key in a public script or screenshot.

Prepare and check the stream before going live

  • Test your upload speed and leave practical headroom above the stream’s sustained bitrate so other network activity or bitrate variation does not consume all available capacity.
  • Run a test with movement and audio similar to the planned broadcast. A static clip or silent test may not reveal issues that appear during the actual program.
  • Check YouTube’s detected resolution and frame rate, then watch the stream-health status for warnings or errors.
  • Confirm the input has the video and audio tracks you intend to map. If the source is not a file, use the correct device or network-input syntax for your operating system and FFmpeg build.

YouTube transcodes live streams for different viewers, so the ingest resolution is not the only playback format available to an audience. Latency is the delay between capture/encoding and viewer playback; lower-latency choices can increase buffering. The FFmpeg command alone cannot promise a fixed end-to-end delay.

Adapt the template to your source

File, camera, screen, or network input

The example’s -i INPUT is a placeholder for a file. Camera and screen capture inputs require platform-specific device names and options; an incoming network stream may also require protocol or reconnect settings. Keep the output encoding and YouTube destination separate from input-specific options, and verify that your installed build supports the chosen input and encoder.

Software encoding and hardware encoding

This template uses libx264 with the veryfast preset. Whether that preset or a hardware encoder is suitable depends on the source, computer, FFmpeg build, and available encoding hardware. Check encoder availability and test for dropped frames and acceptable image quality on your own setup; no single preset or GPU can be assumed best for every system.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

SDR versus HDR

The command is intended as an SDR H.264 path. YouTube’s guidance recommends H.265 over RTMP(S) for HDR, which requires a different configuration. Do not treat the SDR pixel-format line as sufficient to configure HDR color handling.

Troubleshooting common FFmpeg and YouTube Live problems

FFmpeg says the input cannot be opened

Check the file path, permissions, quoting, and whether FFmpeg can identify the input. For a camera, screen, or network feed, replace the file-style input with the correct source syntax for that platform.

Unknown encoder or unavailable device

Your FFmpeg build may not include libx264, or the requested capture device may not be available to it. Check the build’s listed encoders and devices, then select an encoder or input supported by that installation.

YouTube does not receive the stream

Verify the RTMPS destination and current stream key in Live Control Room, confirm the key has not been mistyped or revoked, and check that the network allows the connection. Treat the key like a password: regenerate it if it has been exposed.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2Ă— USB C male to USB A female adapters and 2Ă— USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Dropped frames, buffering, or unstable stream health

The machine may be unable to encode in real time, or the upload path may not sustain the configured bitrate. Test the connection, reduce the bitrate if needed, and test again with representative content. Avoid assuming that the recommended target is sustainable on every connection.

Wrong aspect ratio, color, or apparent frame rate

Inspect the source dimensions, aspect ratio, frame rate, and color before forcing filters. Directly scaling to 1920Ă—1080 can stretch a non-16:9 source; setting 60 fps cannot restore missing motion, and yuv420p does not automatically establish correct color metadata.

Audio is missing or unusable

Check whether the input contains an audio stream and whether -map 0:a:0? selects the intended one. Confirm the source is audible before encoding and inspect YouTube’s health indicators during the test.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Copyright and prerecorded content on a live channel

Using FFmpeg to transmit a file does not grant permission to stream its contents. Make sure you have the necessary rights to the documentary footage, music, narration, images, and any other material, including rights for the intended live use. YouTube may detect copyrighted material during a live stream; review the platform’s current rules and resolve claims or restrictions before relying on a program for a scheduled broadcast. A live stream’s technical success does not establish that the content complies with copyright rules or YouTube’s channel monetization policies.

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.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

For a channel built around prerecorded material, make the rights and the value of the programming clear rather than relying on repetition alone. Review YouTube’s current policy and your channel’s status before planning a recurring stream. A free copyright safety checklist can help organize rights checks.

Or let it run in the cloud

If the goal is to keep uploaded video playing on a YouTube channel without leaving a computer running, StreamNeo is a cloud option: upload a recording or build a playlist, add your YouTube stream key once, and go live. It loops uploaded videos, not a live camera feed.

  • Nothing has to stay on at home; the stream runs from the cloud.
  • One flat price per slot for any uploaded quality up to 4K 60fps, with no re-encode or quality tiers.
  • Automatic recovery if YouTube drops the stream.
  • The first day is free with no card, one free day per account.

Every slot includes one always-on stream, 10 GB storage per slot pooled across active slots, looping and playlists, and StreamNeo team support. Monthly costs $9.99 per month; see all plan lengths and details. StreamNeo is for YouTube only. Visit StreamNeo or start your free first day.

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 *

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

Read next

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

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.