x264 encoding on dedicated servers
x264 is still the most widely compatible way to make H.264 video, and it is pure CPU work. A dedicated machine gives every encode whole cores with nothing else competing for them.
Why encode H.264 with x264 on a CPU?
Because x264 gives better quality per bit than hardware encoders at the same bitrate on the slower presets, and every device made in the last fifteen years plays H.264. Archives, video on demand libraries, course platforms and streaming services that need broad playback keep using it. We do not rent GPUs, and for x264 that is no loss: it is written for CPUs, with hand-tuned assembly for every SIMD generation up to AVX-512.
How do presets and CRF work?
The preset trades speed for compression, the CRF value sets the quality target. Presets run from ultrafast through veryfast, medium and slow to veryslow and placebo; each step slower searches harder for redundancy and makes a smaller file at the same quality. CRF runs from 0 to 51, with 23 the default; 18 to 20 is visually near-transparent for most content.
x264 --preset slow --crf 19 --tune film --profile high --level 4.1 -o lecture-07.264 lecture-07.y4m ffmpeg -i master.mov -c:v libx264 -preset slower -crf 20 -pix_fmt yuv420p -movflags +faststart -c:a aac -b:a 160k delivery.mp4
| Use | Preset | Rate control |
|---|---|---|
| Archive master copies | slower or veryslow | CRF 16 to 18 |
| Video on demand library | slow | CRF 19 to 22, or two-pass to a bitrate |
| Live streaming | veryfast or faster | CBR with VBV limits |
| Quick previews | superfast | CRF 26 to 28 |
How well does x264 use many cores?
Well up to a point, then with diminishing returns. x264's default frame threading starts about one and a half threads per logical core and encodes several frames at once. On 1080p content the gain per extra thread flattens somewhere in the region of 16 to 32 threads, and very high thread counts cost a little compression efficiency. On a machine with 48 or 96 cores, the answer is to run several encodes side by side, each with a moderate thread count, instead of one huge one.
ls /srv/queue/*.mov | parallel -j 6 'ffmpeg -nostdin -i {} -c:v libx264 -preset slow -crf 20 -threads 16 -c:a copy /srv/out/{/.}.mp4'
With 96 threads, six jobs of 16 keep the processor busy while each job stays in its efficient range. Splitting a long film into scene-aligned chunks and encoding them in parallel achieves the same for a single title.
What settings suit live streaming?
A fast preset, constant bitrate with VBV limits, and a fixed keyframe interval that the player's segment length divides into. For a 1080p60 rendition at 6 Mbps:
ffmpeg -i srt://0.0.0.0:9000?mode=listener -c:v libx264 -preset veryfast -tune zerolatency -b:v 6000k -maxrate 6000k -bufsize 12000k -g 120 -keyint_min 120 -sc_threshold 0 -c:a aac -b:a 128k -f flv rtmp://127.0.0.1/live/main
An adaptive ladder of four or five renditions from one input uses many cores at once, which is where a dedicated machine earns its place: every rendition gets steady CPU time and no frame is dropped because a neighbour started a job.
Which hardware fits an encoding farm?
Many fast cores and enough memory for the jobs in flight; storage only needs to keep up with reading sources and writing results. AVX-512 support on Zen 4 and Zen 5 processors helps x264's newer code paths.
| Workload | Machine | Why |
|---|---|---|
| Live ladder for a few channels | ESSENTIAL-M | 12 Zen 5 cores, AVX-512 |
| Steady on-demand queue | ESSENTIAL-9 | 48 cores for many parallel jobs |
| Large library re-encodes | ESSENTIAL-XL | 48 Zen 5 cores, DDR5 |
| Peak throughput | ENTERPRISE-a6 2026 | 96 cores in one machine |
ESSENTIAL-9 offers 48 cores for $153.00 a month, a very low cost per encoding thread. Ports in Europe and Canada are unmetered, so moving finished files to a delivery network costs nothing extra.
How do I organise the pipeline?
As a queue and workers. A watch folder or a small job table feeds a fixed number of workers, each running one ffmpeg process with a set thread count. Log the encode time and output size per job so you can tune presets with real numbers. Keep sources and outputs on the NVMe drives while working and move finished files off promptly. Our Video streaming page covers delivery, and Cores or clock speed: which to buy explains why many cores win here.
Machines for x264 encoding
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-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 |
| BUSINESS-5 2024 | AMD EPYC 8224P | 24 | 96 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $280.20 |
| ENTERPRISE-a6 2026 | AMD EPYC TURIN 9655 | 96 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $694.20 |
Count cores: more parallel encodes per machine lowers the cost of every hour of video.
Related pages
Video streaming
Origin and edge machines with guaranteed 3 to 5 Gbps unmetered ports for live and on-demand video delivery.
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 moreCores or clock speed: which to buy
How to tell whether your software wants many cores or a few fast ones, with worked numbers from machines on our list.
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
Is x264 still worth using?
Yes. H.264 plays on almost every device, and x264 on its slower presets gives excellent quality per bit using only the CPU.
What CRF value should I use with x264?
23 is the default. Values from 18 to 20 look near-transparent for most content; lower numbers mean higher quality and larger files.
How many threads should one x264 encode use?
Gains flatten around 16 to 32 threads for 1080p. On large machines, run several encodes in parallel with moderate thread counts.
Do I need a GPU for video encoding?
Not for x264, which runs entirely on the CPU. Our servers have no GPUs, and many fast cores suit x264 well.
Which x264 settings suit live streaming?
A fast preset such as veryfast, constant bitrate with maxrate and bufsize, zerolatency tuning and a fixed keyframe interval.