FFmpeg media pipelines on dedicated servers
FFmpeg is the Swiss army knife behind most video platforms: it probes, decodes, filters, encodes and packages. On a dedicated machine every stage gets predictable CPU time, so queues finish when you expect.
What does a typical FFmpeg pipeline do?
Several jobs on every upload. It inspects the file, normalises audio, scales the picture to a set of renditions, encodes each with the chosen codecs, packages them into HLS or DASH segments with a manifest, and cuts thumbnails or preview sprites. The encoders themselves, such as x264 and SVT-AV1, have their own pages; this one covers the plumbing around them that FFmpeg handles.
How do I check inputs before processing?
With ffprobe in JSON mode, which gives codecs, resolutions, frame rates, durations, rotation and audio layouts. Reject or route files early, before they occupy a worker for an hour.
ffprobe -v error -print_format json -show_format -show_streams upload_8812.mov | jq '{dur: .format.duration, v: [.streams[] | select(.codec_type=="video") | {codec_name, width, height, r_frame_rate}]}'
How do I make several renditions in one pass?
Decode once and split the picture inside a filter graph, then scale each branch. This avoids decoding the source several times, which on long or high-resolution files saves a lot of CPU.
ffmpeg -i master.mp4 -filter_complex "[0:v]split=3[a][b][c];[a]scale=-2:1080[v1080];[b]scale=-2:720[v720];[c]scale=-2:480[v480]" \ -map "[v1080]" -map 0:a -c:v:0 libx264 -preset medium -b:v:0 5000k \ -map "[v720]" -map 0:a -c:v:1 libx264 -preset medium -b:v:1 2800k \ -map "[v480]" -map 0:a -c:v:2 libx264 -preset medium -b:v:2 1200k \ -c:a aac -b:a 128k -f hls -hls_time 6 -hls_playlist_type vod -master_pl_name index.m3u8 \ -var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2" -hls_segment_filename "out/%v/seg_%05d.ts" out/%v/playlist.m3u8
Align keyframes across renditions with a fixed GOP, for example -g 144 -keyint_min 144 -sc_threshold 0 at 24 frames per second, so players can switch cleanly at every six second segment.
HLS or DASH?
Both, often from the same encodes. HLS plays natively on Apple devices and widely elsewhere; DASH is common on Android and smart TVs. Fragmented MP4 segments (CMAF) can serve both with one set of media files and two manifests. FFmpeg's dash muxer writes MPD manifests, and the hls muxer writes fMP4 segments with -hls_segment_type fmp4.
How do I normalise loudness?
With the loudnorm filter in two passes: measure first, then apply the measured values for an accurate, linear result. Streaming platforms commonly target around -14 to -16 LUFS integrated loudness.
ffmpeg -i ep12.wav -af loudnorm=I=-16:TP=-1.5:LRA=11:print_format=json -f null - 2> measure.txt ffmpeg -i ep12.wav -af loudnorm=I=-16:TP=-1.5:LRA=11:measured_I=-21.3:measured_TP=-3.9:measured_LRA=7.4:measured_thresh=-31.6:linear=true -c:a libopus -b:a 96k ep12.opus
How do I make thumbnails and preview sprites?
A single frame for the poster and a tiled sprite for scrubbing previews. Seeking before the input is fast; the tile filter lays frames out in a grid.
ffmpeg -ss 00:00:42 -i film.mp4 -frames:v 1 -q:v 3 poster.jpg ffmpeg -i film.mp4 -vf "fps=1/10,scale=240:-2,tile=10x10" -q:v 5 sprite_%03d.jpg
How many jobs should one machine run?
Enough to keep the cores busy without oversubscribing them. Software decoding and filtering use several threads; encoders bring their own threading. A practical rule is one job per 8 to 16 threads for 1080p work, then measure. FFmpeg 6.0 and later run demuxing, decoding, filtering and muxing in separate threads, which improves the use of many cores in complex graphs. Set -filter_threads for heavy filter chains.
| Pipeline | Machine | Threads |
|---|---|---|
| Podcast and audio processing | ESSENTIAL-2 | 8 cores |
| Upload processing for a small platform | ESSENTIAL-M | 12 cores |
| Busy multi-rendition queue | ESSENTIAL-9 | 48 cores |
| Large catalogue reprocessing | ENTERPRISE-a5 2026 | 64 cores |
ESSENTIAL-M gives 12 Zen 5 cores with AVX-512 for $70.80 a month. We do not rent GPUs; CPU processing keeps results identical from run to run and supports every filter. Packages from Debian 13, Ubuntu 24.04 and the EL family repositories work, or use a static build for the newest codecs. Our x264 encoding servers, SVT-AV1 encoding servers and Video streaming pages cover encoders and delivery.
Machines for FFmpeg pipelines
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-2 | Intel Xeon-E 2388G | 8 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $43.20 |
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
| ESSENTIAL-L | AMD Ryzen 9 9950X | 16 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-9 | AMD EPYC 7642 | 48 | 256 GB | 2x 480 GB SSD SATA | 1 Gbps unmetered | $153.00 |
| ESSENTIAL-XL | AMD EPYC TURIN 9455 | 48 | 128 GB | 2x 1.92 TB SSD NVMe | 1 Gbps unmetered | $212.40 |
| ENTERPRISE-a5 2026 | AMD EPYC TURIN 9555 | 64 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $579.60 |
Pick cores for the jobs you run in parallel; unmetered EU ports carry the results.
Related pages
x264 encoding servers
Encode H.264 at scale with x264 on dedicated cores: presets and CRF, threading limits, parallel jobs per machine and live streaming settings.
Read moreSVT-AV1 encoding servers
Encode AV1 with SVT-AV1 on many-core servers: presets 0 to 13, CRF, film grain, parallelism, chunked encoding and how core counts shorten jobs.
Read moreVideo streaming
Origin and edge machines with guaranteed 3 to 5 Gbps unmetered ports for live and on-demand video delivery.
Read moreUnmetered dedicated servers
No monthly transfer quota on ports in Europe and Canada: what unmetered means, how to size the port, and where an allowance applies instead.
Read moreQuestions and answers
How do I create several video renditions with FFmpeg efficiently?
Decode once and use split in a filter_complex graph to scale each branch, then encode every branch in the same command.
Can FFmpeg package HLS and DASH?
Yes. The hls muxer writes playlists and segments, and the dash muxer writes MPD manifests; fMP4 segments can serve both.
How do I normalise audio loudness with FFmpeg?
Run loudnorm once to measure, then again with the measured values and linear=true for an accurate result.
How many FFmpeg jobs should run on one server?
Roughly one 1080p job per 8 to 16 threads as a start, then adjust based on measured throughput.
Do I need a GPU for FFmpeg?
No. FFmpeg runs entirely on the CPU, and our servers have no GPUs; many cores handle large queues well.