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
World desk6 min

How to Configure FFmpeg Hardware Encoding on a Contabo VPS

FFmpeg NVENC works on a Contabo VPS only when the instance exposes a compatible NVIDIA GPU. Here’s how to verify the device, check FFmpeg, encode, and troubleshoot.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

FFmpeg hardware encoding on Contabo requires a Contabo instance that actually exposes a compatible NVIDIA GPU. Contabo describes its regular VPS plans as shared-vCPU servers, while its separate GPU VPS documentation specifies a dedicated NVIDIA GPU passed through to the virtual machine. Installing FFmpeg, CUDA, or an NVIDIA driver on an ordinary VPS does not create GPU access. If your instance has no accessible GPU, NVENC cannot run there.

1. Confirm that your Contabo VPS has GPU access

Check the exact product in your Contabo account before changing software. Contabo documents GPU access for its separate GPU VPS offering, not as a feature of its regular VPS plans. On the GPU VPS, the documented device is an NVIDIA RTX 6000 PRO Blackwell Server Edition passed through to the instance. The product documentation lists 18 vCPUs, 96 GB RAM, 96 GB of GPU memory, and a 900 GB NVMe drive, as documented on October 3, 2026. These are product specifications, not encoding benchmarks.

As an Amazon Associate I earn from qualifying purchases.

Contabo documents an Ubuntu 24.04 LTS image with NVIDIA driver and CUDA toolkit preinstalled. Its GPU VPS documentation lists EU and US Central availability, Ubuntu 24.04 LTS as the only operating system, no regional migration, and no upgrade or downgrade path. Availability and configurations can change, so verify the current product page and configurator before ordering.

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

Check the GPU and driver

On the GPU VPS, connect over SSH and run:

nvidia-smi

A working setup should show the NVIDIA device and driver information. If the command is missing, reports no devices, or cannot communicate with the driver, resolve that at the instance, image, or driver level first. An FFmpeg build cannot compensate for a GPU that the operating system cannot see.

#1 Best Overall
MINISFORUM DEG1 eGPU Dock, External GPU Docking Station for RTX 4090, AMD RX 7900 XTX, eGPU Enclosure Graphics Card Extension Support ATX/SFX Standard Power, Oculink Expansion Graphics Docking Station
  • 【Up Link & Down Link】Up link: Oculink 4i(PCIE4.0x4), Down Link: PCIEx16(PCIE4.0x4). Only Support Oculink.
  • 【Power Supply】This DEG1 supports ATX and SFX standard power supplies, which provides flexible power supply solutions for mini chassis.
  • 【Oculink Interfaces】Please kindly note the OCulink interface does not support hot plugging, and the machine needs to be turned off first.
  • 【Follow-start Function】The follow-start function is only compatible with MINISFORUM Mini PCs, it requires the use of original wires.
  • Note: The GPU is not included.

2. Check whether your FFmpeg build advertises NVENC

Run these checks on the same machine where you intend to encode:

ffmpeg -hide_banner -encoders | grep -i nvenc
ffmpeg -hide_banner -decoders | grep -i cuvid
ffmpeg -hide_banner -hwaccels

The first command looks for NVIDIA hardware encoders, the second for NVIDIA-related decoders, and the third prints hardware acceleration methods advertised by the binary. NVIDIA recommends checking the encoder and decoder listings when verifying an NVENC/NVDEC-enabled FFmpeg build. These lists show what the build supports; they do not guarantee that the installed driver and actual GPU can run every listed option. Runtime availability depends on the hardware and a suitable driver, as FFmpeg’s hardware-acceleration documentation explains.

3. Encode with NVENC

Start with a short H.264 test

For an H.264 output, try a short representative clip first:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
PCIe 4.0 x4 64Gbps Compatible eGPU DOCK, with OCuLink SFF-8612 8311 to PCIe x16 and SFF-8611 Male Cable, Enclosure supports Standard ATX Power and External Graphics Cards GPU for Laptop Mini PC
  • Package Include: OCuLink SFF-8612 Female to PCIe x16 Enclosure Dock, and SFF-8611 Male to Male Cable 50cm/19.7inch (Note: The GPU and Power Supply are not included)
  • Advantage of the dock: Our enclosue detachable design on both ends for improved portability and easy storage. PCB board with 10μ gold-plated contacts ensure superior conductivity and reduce oxidation/rust-related resistance that may cause system crashes or BSOD. Multi-status LED indicators provide clear visual feedback for real-time device monitoring. Transfer Speed: PCIe 4.0 x4 (64Gbps )
  • SFF-8611 Male to Male Cable: Ultra-thin & flexible design (0.5mm thickness) with premium aesthetics, eliminating port damage risks from rigid traditional OCuLink cables. Flat cable architecture with full-coverage shielding and advanced EMI materials to minimize interference and performance degradation
  • Compatible Graphics Cards: Compatible with graphics cards of various sizes like RTX 4090, AMD RX 7900 XTX etc., no need to worry about graphics card length restrictions. 🔺Compatible Power Supply: Compatible with standard ATX power supply ONLY, dual screw mounting (top & bottom) for PSU stability
  • Note: The OCulink interface does not support hot plugging, and the computer needs to be turned off to unplug the cable.
ffmpeg -i input.mp4 -c:v h264_nvenc -c:a copy output.mp4

Replace the input and output filenames with your own. This selects NVIDIA’s H.264 encoder for video and copies the audio stream without re-encoding it. If you need a different output codec, FFmpeg also has encoder names such as hevc_nvenc and av1_nvenc in supported builds; use them only when your GPU, FFmpeg build, and intended playback format support the codec, profile, and bit depth you need. Consult NVIDIA’s FFmpeg with NVIDIA GPU Hardware Acceleration guide and its codec support information for compatibility.

Read the complete FFmpeg output for errors, then check that the resulting file plays as intended. Compare elapsed time, output quality, and file size against a CPU encode using the same source and comparable settings. Hardware and software encoders can differ in quality and bitrate behavior; NVENC does not promise an identical file or a universal speed advantage.

4. Decide whether to accelerate decoding too

NVENC can encode the output even if FFmpeg decodes the input on the CPU. If the input codec is supported and keeping frames on the GPU suits the rest of your workflow, test hardware decoding with input options before -i:

Rank #3
Sonnet Breakaway Box 850 T5 Thunderbolt 5 USB4 eGPU Enclosure 850W Windows
  • Astounding Performance: Unlock near-desktop GPU power with your Thunderbolt 5 Windows 11 laptop. Breakaway Box 850 T5 delivers 80 Gbps of bi-directional bandwidth, ensuring blazing-fast performance for GPU-accelerated workflows. Accelerates Thunderbolt 4 and Most USB4 Windows 11 Computers, too. Intel Thunderbolt Certified.
  • Supports Triple Wide GPU Cards NVIDIA GeForce RX50, 40, and 30 Series; AMD Radeon RX 9000, 7000, and 6000 Series.
  • 850W power supply supports the power requirements of today’s and tomorrow’s power-hungry GPU cards. And large built-in, variable-speed, temperature-controlled fan quietly and effectively cools whatever card you install.
  • Editing, rendering, color grading, animation, and visual effects run significantly faster with GPU acceleration. And Supercharge AI-driven applications with massively increased processing power and efficiency.
  • Built-in Thunderbolt 5 Dock for Additional Connectivity Includes one Thunderbolt 5 peripheral port, three 10 Gbps USB Type A ports, plus a 5 Gigabit Ethernet (RJ45) port for super-fast wired network connectivity.
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i input.mp4 
  -c:v h264_nvenc -c:a copy output.mp4

Hardware decoding is a separate choice from hardware encoding. Check that the GPU and driver support the source codec and that your filters can operate on GPU-resident frames. Some filters require transferring frames between GPU and host memory or running on the CPU; those copies and conversions can reduce performance. A command using NVENC alone is not necessarily a fully GPU-resident pipeline.

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

5. If NVENC is missing from FFmpeg

First check whether a suitable precompiled FFmpeg binary is available for your Ubuntu image. NVIDIA’s guide states: “When using pre-compiled FFmpeg binaries, ensure they are built with NVENC/NVDEC support enabled.” If your binary does not advertise NVENC, installing a different build may be simpler than compiling FFmpeg yourself.

A source build is a fallback when you specifically need one. NVIDIA’s Linux instructions cover build dependencies, the separate nv-codec-headers project (also called ffnvcodec), and configuring and compiling FFmpeg. Before following build commands, verify that they match your FFmpeg branch, Ubuntu image, driver minimum, and codec-header/SDK compatibility. NVIDIA’s current guide notes that CUDA NPP is deprecated in FFmpeg for CUDA versions above 12.8 and recommends avoiding --enable-libnpp in that context. Do not add it by habit.

Rank #4
MINISFORUM DEG2 USB4 V2 (TBT5 Compatible) & OCuLink eGPU Dock, 80Gbps Dual-Link External GPU Enclosure with M.2 NVMe Slot, Supports Universal ATX/SFX Power Supplies
  • USB4 V2 (TBT5 compatible) and OCuLink Dual Mode: Dual-link interfaces support transfer speeds up to 80Gbps (TB5) and 64Gbps (OCuLink). A dedicated hardware switch allows for instant switching between all-in-one docking mode and pure GPU performance mode.
  • Integrated M.2 NVMe Storage: A built-in M.2 2280 slot allows direct storage of AI models and project files on the dock. Maintains synchronized workspace and GPU performance when switching between different host devices.
  • Universal Power and Graphics Card Compatibility: Supports standard ATX and SFX power supplies and is compatible with a variety of desktop graphics cards. Modular design ensures easy upgrades to power and computing power.
  • Enhanced Signal Stability: Built-in re-drive signal booster stabilizes PCIe data transfer. Minimizes latency and connection interruptions during high-bandwidth tasks such as LLM inference or 8K rendering.
  • Single-Cable Desktop Workflow: A single TB5 cable handles data transfer, display, and laptop charging. It features automatic power-on and can synchronize with the host computer, providing a seamless plug-and-play desktop experience.

6. Verify the real workload and understand the trade-offs

A listed encoder proves that the binary advertises the feature; a successful representative transcode is the practical check. Run a clip representative of your actual files and filters, inspect FFmpeg’s logs, and, where useful, observe nvidia-smi while the job runs. Compare the same workload’s elapsed time, output quality, file size or bitrate, and CPU/GPU utilization.

End-to-end performance depends on more than the encoder. GPU-to-host frame copies, decoding, filters, CPU work, storage input/output, initialization, and the source material all affect results. FFmpeg’s hardware-acceleration documentation cautions that copying frames can reduce performance; NVIDIA also notes that FFmpeg pipeline measurements need not match standalone SDK performance. There is no universal speed, cost, or quality winner established for every workload.

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.

7. Troubleshoot common failures

Symptom Likely cause What to check or do
nvidia-smi is missing or shows no GPU The instance may not have an exposed GPU, or the driver/device access is not working. Confirm the exact Contabo plan. If it is an ordinary VPS, the cited Contabo documentation does not describe it as GPU-enabled. On a GPU VPS, resolve device and driver visibility before debugging FFmpeg.
No h264_nvenc appears in the encoder list The FFmpeg binary may have been built without NVENC support. Try a suitable precompiled build. If compiling from source, follow current NVIDIA instructions and align the build with your driver, FFmpeg branch, and codec headers.
The encoder is listed but the command fails at runtime The build listing does not establish compatibility with the actual GPU or driver. Check nvidia-smi, the full FFmpeg error output, and the GPU/driver requirements for the codec and encoding options selected.
Hardware decoding fails although NVENC is available Decode capability is separate; the input codec or GPU may not support the requested decode path. Test output encoding without hardware decode, then check the input codec against the GPU’s supported capabilities.
The GPU encode is not faster, or filters fail Frame transfers, unsupported GPU filters, CPU-side processing, or storage can limit the whole pipeline. Compare a short representative job, inspect the filter path, and avoid assuming that adding -hwaccel cuda accelerates every stage.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Run a YouTube stream without keeping this VPS or a home computer busy

FFmpeg hardware encoding is for processing media; if your separate goal is keeping prerecorded video live on YouTube 24/7, StreamNeo is the cloud alternative: upload a recording or playlist, add your YouTube stream key once, and go live. StreamNeo loops uploaded video in the cloud, so your computer and home connection do not need to stay on.

Best Value
External GPU Enclosure,Thunderbolt 4/3 & USB4 eGPU Dock with 240W PSU
  • Compatibility: Compatible with most NVIDIA/AMD graphics cards up to ≤205mm (≤8.07”) in length, ≤150mm (≤5.91”) in height, and ≤55mm (≤2.17”) in width. Support Windows 10/11, Linux
  • This complete kit includes everything you need:a GPU Enclosure Box ,240W external power supply, Thunderbolt 4 cable, 8-pin PCIe power cable, and a custom carrying case. Simply connect one cable to your device and instantly boost your graphics power for editing, rendering, or gaming
  • Application: Compatible with NUC/laptop/handheld game console with Thunderbolt 4/3 USB4 interface. Note that The Type-C port is not applicable if it does not support Thunderbolt 3/4 or USB4 protocols. And package does not contain the graphics card
  • Multiple Interfaces: Features one Thunderbolt port with PD 85W charging, one Thunderbolt port with PD 15W charging, and one DP port.Supports PCIe 3.0 x16 data transfer mode
  • Compact & Durable Design:Featuring a lightweight yet robust anodized aluminum shell, this enclosure combines portability with premium protection. Complete with a custom carrying case, it delivers desktop-grade graphics performance wherever you go

StreamNeo streams to YouTube only. Each slot includes one always-on stream, 24/7 looping and playlists, automatic recovery if YouTube drops the stream, support from the StreamNeo team, and 10 GB storage per slot pooled across active slots. Uploads stream as made up to 4K 60fps, with no re-encode and no quality tiers. Plans differ by duration, not features; UPI and cards are available in India, and card checkout is available worldwide. The first day is free with no card (one free day per account); cancel any time. For five or more slots, contact support.

Available durations: Daily $0.99 per day · Weekly $2.99 per week · Monthly $9.99 per month · 6 months $49.99 for 6 months · Yearly $89.99 a year.

See StreamNeo for details, or start your free first day.

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

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
Crashes, No Sound, or Screen Glitches?Free driver scan
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.