Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk5 min

How to Configure FFmpeg Bitrate and Resolution for YouTube on a Hetzner VPS

Choose YouTube’s matching SDR bitrate reference, keep the source frame rate, and benchmark your FFmpeg encode on the actual Hetzner VPS before planning uploads.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a typical SDR YouTube upload, encode progressive H.264 video in an MP4 container with variable bitrate (VBR), 4:2:0 chroma, and the same frame rate as your source. Choose an output resolution that fits the footage, then use YouTube’s bitrate figures as references—not mandatory caps. For example, YouTube recommends 8 Mbps for 1080p at 24, 25, or 30 fps, and 12 Mbps at 48, 50, or 60 fps. An FFmpeg command can apply those choices, but the right scaling and rate-control settings depend on your source and installed encoder.

Choose the output resolution and bitrate

YouTube’s standard computer aspect ratio is 16:9, but its player adapts to vertical and square video too. Do not upscale or force 16:9 simply because it is common: preserve the source’s intended aspect ratio and choose an output size appropriate to the footage and intended viewing experience.

As an Amazon Associate I earn from qualifying purchases.

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

The following are YouTube’s current SDR upload bitrate recommendations, accessed in 2026. They are reference values for the upload file, not required limits or guarantees of a particular visual result. YouTube says no bitrate limit is required. See YouTube’s recommended upload encoding settings.

Output resolution 24, 25, or 30 fps 48, 50, or 60 fps
720p 5 Mbps 7.5 Mbps
1080p 8 Mbps 12 Mbps
1440p 16 Mbps 24 Mbps
2160p (4K) 35–45 Mbps 53–68 Mbps

These figures are for SDR. For HDR, consult YouTube’s upload guidance rather than applying this SDR table. A higher bitrate can increase file size; it does not restore detail absent from the source, and encoding settings alone cannot guarantee how YouTube will process or deliver the upload.

Use an FFmpeg command that matches your source

Here is a starting example for a progressive, 1920×1080 SDR source recorded at 30 fps, with audio present. It encodes H.264 video to MP4 at YouTube’s 1080p/30 reference bitrate. It does not resize or change the frame rate, so it avoids making assumptions about other source dimensions or aspect ratios.

ffmpeg -i input.mp4 
  -c:v libx264 -b:v 8M -maxrate 8M -bufsize 16M 
  -pix_fmt yuv420p -r 30 
  -c:a aac -ar 48000 -b:a 384k 
  -movflags +faststart output.mp4

FFmpeg’s generic bitrate option is measured in bits per second; the 8M suffix expresses 8 megabits per second. The -maxrate and -bufsize options shown are an example of encoder rate-control parameters, not requirements from YouTube. Rate control is encoder-specific; consult the documentation for the encoder available in your FFmpeg build. The generic FFmpeg option reference is at ffmpeg.org/ffmpeg.html, and codec and encoder options are documented at ffmpeg.org/ffmpeg-codecs.html.

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

Set the bitrate for your output

Replace 8M in the example with the reference that matches your chosen output resolution and frame-rate class. For instance, a 1080p/60 upload corresponds to 12 Mbps, while a 720p/30 upload corresponds to 5 Mbps. The example’s doubled buffer is a chosen rate-control value, not a YouTube specification; check your encoder’s supported options and adjust rate control for your workflow.

Scale only after checking dimensions and aspect ratio

The example deliberately leaves out a scale filter because the correct expression depends on the input dimensions, aspect ratio, and target output. If you need to resize, inspect the source first and choose dimensions that preserve its aspect ratio. A fixed width-and-height filter can distort footage if the source ratio differs; blindly upscaling can create a larger file without adding source detail.

Keep frame rate and scan type in mind

Keep the uploaded frame rate the same as the recorded source when possible. YouTube lists common frame rates from 24 through 60 fps. The sample command uses -r 30 only under the stated 30 fps assumption; change or omit it to match your actual workflow rather than converting every source to 30 fps. YouTube says interlaced footage should be deinterlaced before upload. The sample command does not add a deinterlacing filter, so handle interlaced input deliberately rather than treating it as progressive.

Set color and audio for SDR

For SDR, YouTube recommends BT.709. The sample does not force a color conversion: the correct handling depends on source metadata and the intended output. YouTube may convert unsupported color spaces, but the precise conversion depends on the input and workflow. Its guidance lists MP4, AAC-LC or Opus audio, and a 48 kHz sample rate; this example uses AAC at 48 kHz. -movflags +faststart requests a fast-start MP4 with its index information moved to the front of the file.

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

Check the encode and transfer on a Hetzner VPS

Encoding video is CPU-intensive, and a VPS’s CPU allocation affects how predictably the job can run. Hetzner describes shared-resource plans as sharing CPU resources among instances, with the ability to burst above baseline. Its CCX dedicated-resource instances provide exclusive CPU resources; Hetzner recommends them for CPU-intensive applications and predictable production workloads. That distinction does not establish a particular encode speed for a named plan.

Benchmark the actual source, codec, preset, output resolution, and concurrent workload on the VPS you intend to use. Compare the resulting processing time with your deadline before relying on that instance for repeated jobs. A faster or slower result cannot be inferred from the bitrate table alone.

Also account for the finished file’s upload traffic. Hetzner’s traffic documentation lists different outgoing monthly allowances by Cloud product family and location. Its 2024 page lists 20 TB for EU CX, CPX, and CAX Cloud Servers; CCX allowances vary by region and plan. Check the current allowance for your specific product and location before estimating whether repeated uploads fit within it: Hetzner Cloud traffic information.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common configuration problems

  • The output is much larger than expected: Check the selected bitrate and duration. A higher bitrate generally increases file size; use the reference for the target resolution and frame-rate category rather than an unrelated higher value.
  • The picture is stretched: Inspect source dimensions and aspect ratio, then revise the scale settings to preserve the intended ratio. The bitrate does not correct geometry.
  • The output frame rate differs from the recording: Check the input’s actual frame rate and whether the command specifies -r. Match the source when possible instead of using the example’s 30 fps setting indiscriminately.
  • The encode takes too long or varies between runs: Measure the real workload on the target VPS. Shared CPU allocation can vary; dedicated CPU allocation is an option when predictable CPU performance matters, but no plan guarantees a specific encode speed.
  • The upload stalls or traffic use is unexpectedly high: Check file size, available transfer capacity, and the outgoing traffic allowance for the exact Hetzner product and region. Do not assume one allowance applies to every Cloud Server.
  • Color looks different after upload: Verify the source color metadata and intended SDR target. YouTube recommends BT.709 for SDR; unsupported color spaces may be converted, with conversion dependent on the input and workflow.

Or let it run in the cloud

FFmpeg on a Hetzner VPS is useful when you want to control file encoding and upload the result yourself. If your goal is instead to keep a pre-recorded YouTube channel live around the clock, StreamNeo runs the playback in the cloud, so nothing has to stay on at home. Upload your recording or build a playlist, add your YouTube stream key, and go live. It streams the uploaded video as made, up to 4K 60fps, at one flat price per slot; it does not re-encode. If YouTube drops the stream, StreamNeo automatically recovers. The first day is free with no card required. The monthly plan is $9.99 per month. See StreamNeo or start your 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 the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver 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.