Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober 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 Scan×
Skip to content
VGSources
FFmpeg

How to Change FFmpeg YouTube Stream Resolution on an OVHcloud VPS

Use FFmpeg’s scale filter to set outgoing YouTube dimensions, then match frame rate, bitrate, and keyframes to YouTube guidance and verify the VPS can sustain the encode.

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

Set the outgoing video dimensions in FFmpeg with a video scale filter such as -vf "scale=1280:720". YouTube usually detects the resolution and frame rate it receives; changing a YouTube setting alone does not resize FFmpeg’s output. The VPS must also be able to encode the chosen settings in real time and send the resulting bitrate reliably.

Set the output resolution in FFmpeg

FFmpeg’s -vf option applies a video filter to the output. For 720p, use -vf "scale=1280:720"; for 1080p, use -vf "scale=1920:1080". Place the filter in the output video path, and make sure it applies to the intended video stream. See the FFmpeg documentation for command-line and filter details.

Here is an illustrative RTMPS command shape for a 30 fps H.264 stream. It is not a tested recipe or a universal bitrate prescription: adapt it to your input, audio, encoder, YouTube ingest details, and the VPS’s measured capacity.

ffmpeg -re -i input.mp4 
  -vf "scale=1280:720" 
  -c:v libx264 -b:v 4500k -maxrate 4500k -bufsize 9000k 
  -r 30 -g 60 -keyint_min 60 -sc_threshold 0 
  -c:a aac -b:a 128k 
  -f flv "rtmps://YOUR_YOUTUBE_INGEST/YOUR_STREAM_KEY"

Replace the ingest address and key with the values YouTube provides. Treat the stream key as a password: do not publish it, commit it to a public repository, or leave it in logs or scripts other people can read. The example’s 4.5 Mbps video bitrate is only illustrative; select a value based on the current YouTube recommendations and test results below.

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.

Preserve the source aspect ratio

A fixed width and height can stretch or squash video if the source has a different aspect ratio. To target a 720-pixel height while letting FFmpeg calculate a width that preserves the source proportions, use -vf "scale=-2:720". The -2 form rounds the derived width to an even number suitable for common encoders. If the output must fit a fixed canvas, use scaling plus padding rather than distorting the picture. Check the input’s actual dimensions and aspect ratio, and verify the installed FFmpeg build’s filter syntax with its local help or documentation.

Make the FFmpeg output and YouTube ingest settings agree

In the normal workflow, FFmpeg sends an encoded stream with particular dimensions and frame rate, and YouTube detects those incoming properties automatically. YouTube’s Live Control Room also supports manual resolution settings for a custom stream key. If using that workflow, create the custom key and turn on manual settings under Stream Resolution; otherwise, set the dimensions in FFmpeg and confirm the incoming stream is detected as expected. The YouTube Live Streaming API describes automatic detection with the variable option. See YouTube’s live encoder settings guidance and the YouTube Live Streaming API documentation.

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.

Choose resolution, frame rate, and bitrate together

YouTube’s published H.264 recommendations below are for the incoming live stream, not guarantees of visual quality, VPS encoding speed, or the resolution every viewer will receive. YouTube transcodes live input for playback. The following recommended video bitrates are from its guidance checked on October 3, 2026:

Output Recommended H.264 video bitrate
720p30 3 Mbps
720p60 8 Mbps
1080p30 5 Mbps
1080p60 6 Mbps
1440p30 21 Mbps
1440p60 34 Mbps
2160p30 42 Mbps
2160p60 50 Mbps

These are recommendations, not mandatory minimums. Match the selected resolution and frame rate to the stream’s content, the encoder’s real-time performance, and available outbound capacity. Leave headroom above the combined audio and video bitrate; the network needs to carry both, along with protocol overhead.

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.

Codec, frame rate, and keyframes

  • Codec and transport: For RTMP or RTMPS, YouTube lists H.264, H.265/HEVC, and AV1 video, and AAC or MP3 audio. Its guidance recommends RTMPS, a secure extension to RTMP. The sample uses H.264 and AAC; confirm the codec supported by your chosen FFmpeg encoder and workflow.
  • Frame rate: YouTube lists frame rates up to 60 fps. Use -r to set the outgoing rate when appropriate, but do not assume a higher frame rate is better if the source or VPS cannot sustain it.
  • Keyframes: YouTube recommends a two-second keyframe frequency and says not to exceed four seconds. In the sample, -g 60 at 30 fps sets a 60-frame GOP, equivalent to two seconds; -keyint_min 60 and -sc_threshold 0 are encoder options used to keep that interval consistent. Check the options supported by your selected encoder.
  • Other video guidance: YouTube’s advanced recommendations include progressive scan, square pixels, two B-frames, one reference frame, and Rec. 709 for SDR. Apply these only when they fit your source and encoder workflow.

Check whether the OVHcloud VPS can sustain the stream

Scaling changes output dimensions, but encoding that output is a separate workload. Higher resolution can require more CPU for software encoding and a higher video bitrate for comparable quality. A VPS’s advertised public bandwidth does not establish that its CPU can encode a particular resolution and frame rate in real time, or that the full network allocation is continuously available to your process.

OVHcloud’s product page, checked October 3, 2026, lists these example VPS resources. The displayed configurations and availability can change, so verify the plan, geography, and network terms in your account before relying on them.

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
OVHcloud plan vCores RAM Displayed public bandwidth
VPS-1 2 4 GB 500 Mbps
VPS-2 4 8 GB 1 Gbps
VPS-3 6 12 GB 2 Gbps
VPS-4 8 24 GB 3 Gbps

Those provider-listed specifications are not independent performance tests. Before an event, run the intended input, resolution, frame rate, audio, and encoder on the actual VPS. Watch CPU and network use, and monitor the stream’s health in YouTube. OVHcloud says its Control Panel can monitor CPU, RAM, and network status; the current OVHcloud VPS page is the place to check displayed plans and terms.

When hardware acceleration may help

OVHcloud separately offers Cloud GPU instances for video processing and streaming, and describes its L4 GPU offering as supporting hardware H.264, HEVC, and AV1 encoding and decoding. A GPU is not required just to apply FFmpeg’s scale filter. Consider this route only if testing shows the software-encoding workload needs acceleration, and verify the GPU model and regional availability in OVHcloud’s current Cloud GPU information and deployment documentation.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Test the stream and diagnose common problems

YouTube advises: “We recommend running a speed test to test your upload bitrate.” Test with audio and motion similar to the intended content, then monitor stream health and messages during the event. A speed test helps assess network capacity; it does not test whether FFmpeg can encode the chosen video in real time.

  1. YouTube shows the wrong resolution: Inspect FFmpeg’s startup or output logs, or probe the resulting stream, to confirm the encoded dimensions. Check that the scale filter is applied to the video stream being sent. If using a manual custom stream key, check its Stream Resolution setting; otherwise, YouTube normally detects the incoming resolution and frame rate.
  2. The image looks stretched: Check the source aspect ratio. Replace a fixed width-and-height scale that changes proportions with a ratio-preserving expression such as scale=-2:720. If a fixed delivery canvas is necessary, scale proportionally and pad the remaining area.
  3. YouTube reports a bitrate or ingest issue: Verify the ingest address and stream key, then check codec, frame rate, bitrate, and keyframe interval against the current YouTube guidance for the chosen output. Ensure measured outbound capacity has headroom for audio and video together.
  4. FFmpeg falls behind or the stream stutters: Observe actual CPU and network use on the VPS. Reduce resolution, frame rate, or encoding complexity and test again; if needed, assess a supported hardware encoder. Do not infer real-time encoding performance from the advertised bandwidth allocation alone.
  5. The stream fails during a test or event: Read YouTube’s stream-health messages, confirm the key and ingest configuration, and repeat the test with representative audio and motion before going live again.

Or let it run in the cloud

If your aim is a continuous YouTube stream from uploaded videos rather than a camera feed, StreamNeo is a separate option: upload a recording or build a playlist, add your YouTube stream key once, and go live. StreamNeo loops the uploaded videos from the cloud, so nothing has to stay on at home. It supports any uploaded quality up to 4K 60fps at one price per slot, with no re-encode or quality tiers, and automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. See StreamNeo for details, or start the free 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.

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 Patch Notes

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.