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
FFmpeg

How to Match FFmpeg Output Resolution to YouTube Live Ingest

Learn how to resize FFmpeg output for YouTube Live ingest, preserve aspect ratio, and match resolution with frame rate and bitrate.

By DocumentaryTube Team 4 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set FFmpeg’s output dimensions to the resolution you intend to send to YouTube Live, preserve the source’s aspect ratio, and configure bitrate and frame rate for that same ingest target. YouTube detects encoder settings automatically by default; manual resolution selection is available in Live Control Room when you use a custom stream key. YouTube then transcodes the incoming stream into viewer formats, so you configure the feed you send—not each playback rendition.

Choose the ingest resolution and frame rate first

Start with the quality your source can genuinely provide and the upload capacity available to your encoder. The bitrate required depends on both resolution and frame rate, not resolution alone. The following are YouTube Help’s H.264 ingest figures on its current encoder-settings page, accessed 2026-10-03; minimums and recommendations are configuration guidance, not a guarantee of stable delivery.

Ingest target Minimum bitrate Recommended bitrate
720p30 3 Mbps 8 Mbps
720p60 3 Mbps 8 Mbps
1080p30 5 Mbps 14 Mbps
1080p60 6 Mbps 17 Mbps

Use a speed test to check sustained upload capacity and leave headroom rather than setting the encoder at the full measured rate. If the connection or source cannot support a higher target reliably, choose a lower resolution or frame rate. YouTube’s encoder recommendations and interface can change; check the current YouTube Live encoder settings before an event.

Match FFmpeg’s dimensions without distorting the picture

Set one dimension and preserve proportions

For a 1280-pixel-wide output while retaining the source aspect ratio, use this scale-filter fragment:

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.

-vf "scale=1280:-2"

The negative value asks FFmpeg to calculate the other dimension proportionally, with an even-compatible size. This is a filter fragment, not a complete streaming command: the input, encoder, audio handling, protocol URL, credentials, and installed FFmpeg build all affect the full command.

Decide what to do when aspect ratios differ

A target width or height alone is appropriate when the source shape is already right for the intended frame. If the source and output frame shapes differ, choose deliberately: fit the whole image and add padding, or fill the frame by cropping some image area. Avoid stretching, which changes the apparent shape of people and objects. FFmpeg’s scale filter documentation describes force_original_aspect_ratio for keeping output within or beyond a specified width-and-height box. Verify the resulting dimensions and framing before going live.

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.

Configure the complete YouTube ingest

Resolution is only one part of a valid stream. YouTube’s current live encoder guidance lists RTMP/RTMPS, H.264, H.265 (HEVC), and AV1; rates up to 60 fps; constant bitrate (CBR); and a recommended two-second keyframe frequency that should not exceed four seconds. YouTube recommends RTMPS. Confirm that your installed FFmpeg build actually provides the codec and encoder options you plan to use.

  • Use a frame rate no higher than the intended ingest target and no higher than the supported limit in YouTube’s current guidance.
  • Set CBR and a two-second keyframe interval; do not exceed YouTube’s four-second ceiling.
  • Use square pixels, progressive scan, CABAC, and two B-frames as recommended by YouTube.
  • For SDR, use Rec. 709. For RTMP/RTMPS audio, YouTube lists AAC or MP3.
  • Set bitrate for the chosen resolution and frame rate, then test the whole stream with representative motion and audio.

See YouTube’s encoder settings for the latest supported formats and values. The documentation does not guarantee that every local FFmpeg build exposes every listed encoder.

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.

Choose automatic detection or manual resolution

YouTube detects encoder settings automatically by default. If you need to select the ingest resolution in Live Control Room, use a custom stream key and enable manual settings. Regardless of that choice, ensure FFmpeg’s encoded output actually matches the resolution and frame rate you intend to send. YouTube transcodes the incoming live feed into multiple formats for viewers; you do not need to encode each viewer rendition yourself.

Pre-live checklist and troubleshooting

Before starting the event

  1. Choose a resolution and frame rate that suit the source detail, motion, and available upload capacity.
  2. Choose YouTube’s automatic detection or configure manual resolution using a custom stream key.
  3. Apply a proportional scale or explicitly choose fit-with-padding or crop for a different aspect ratio.
  4. Set a supported codec, CBR, a two-second keyframe interval (never over four seconds), and the bitrate appropriate to the target.
  5. Check FFmpeg’s output dimensions, then test with similar audio and motion to the planned stream.
  6. While live, monitor YouTube stream-health messages and respond to warnings rather than assuming the configured values guarantee stable delivery.

Common symptoms and fixes

  • Picture looks stretched: the output dimensions changed the source proportions. Use proportional scaling, or choose padding or cropping intentionally.
  • Output dimensions are not the expected target: inspect the actual output after applying the scale filter and check the installed FFmpeg version and filter behavior.
  • Stream is unstable or YouTube reports health problems: compare the configured bitrate with sustained upload capacity, reduce the target if needed, and test representative material. A recommended bitrate does not ensure that a particular connection can sustain it.
  • A listed codec or option is unavailable: the local FFmpeg build may not include that encoder or expose the required options. Confirm the build’s capabilities and select a supported option.
  • Manual resolution selection is unavailable: YouTube’s manual selection requires a custom stream key; otherwise, leave detection automatic.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or let it run in the cloud

If your goal is a continuous YouTube stream of uploaded videos rather than a live camera or desktop feed, StreamNeo runs the stream from the cloud: upload a recording or build a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home; it streams the 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 is $9.99 per month. Start a free day with StreamNeo.

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.
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

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.

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.

More from the Screening Room

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.