Akamai Throughput and Quality Report
Terminology
For clarity and consistency throughout this report, the following definitions apply:
- CPU: Software-based video encoding utilizing x264 (H.264 codec) and x265 (H.265 codec).
- GPU: Hardware-accelerated video encoding utilizing NVENC (NVIDIA Encoder) utilizing H.264 codec and H.265 codec.
- VPU: Hardware-accelerated processing utilizing Quadra (NETINT Encoder) utilizing H.264 codec and H.265 codec.
Note: The terms “CPU,” “GPU,” and “VPU” may be used interchangeably with “x264/x265,” “NVENC,” and “Quadra,” respectively.
Contents
- Throughput Test
Objective: Measure the processing speed of CPU, GPU, and VPU in frames per second (FPS) for video encoding.
- Quality Test
Objective: Evaluate output fidelity using metrics like VMAF after processing test videos.
- Summary
Objective: Summarize the throughput and quality test results for CPU (x264/x265), GPU (NVENC), and VPU (Quadra)
Test Environnement
These test were performed on the following Akamai Virtual Machines.
- CPU: NETINT Quadra T1U x2 Small, which has 12 Cores and 24GB RAM
- VPU: NETINT Quadra T1U x2 Small, which has 12 Cores and 24GB RAM.
note
Only one Quadra T1U was used for these tests
- GPU: RTX4000 Ada x1 Large, which has 16 Cores and 64GG RAM
Source Content
The following files were used for the capacity and quality testing.
| Input Name | Resolution | Frames | Bit Depth | FPS | Interval (2 sec) |
|---|---|---|---|---|---|
| blue_sky_1920x1080p25_420.yuv | 1920x1080 | 217 | 8 | 25 | 50 |
| crowd_run_1920x1080p50_420.yuv | 1920x1080 | 500 | 8 | 50 | 100 |
| ducks_take_off_1920x1080p50_420.yuv | 1920x1080 | 500 | 8 | 50 | 100 |
| in_to_tree_1920x1080p50_420.yuv | 1920x1080 | 500 | 8 | 50 | 100 |
| old_town_cross_1920x1080p50_420.yuv | 1920x1080 | 500 | 8 | 50 | 100 |
| park_joy_1920x1080p50_420.yuv | 1920x1080 | 500 | 8 | 50 | 100 |
| pedestrian_area_1920x1080p25_420.yuv | 1920x1080 | 375 | 8 | 25 | 50 |
| riverbed_1920x1080p25_420.yuv | 1920x1080 | 250 | 8 | 25 | 50 |
| rush_hour_1920x1080p25_420.yuv | 1920x1080 | 500 | 8 | 25 | 50 |
| station2_1920x1080p25_420.yuv | 1920x1080 | 313 | 8 | 25 | 50 |
| sunflower_1920x1080p25_420.yuv | 1920x1080 | 500 | 8 | 25 | 50 |
| tractor_1920x1080p25_420.yuv | 1920x1080 | 690 | 8 | 25 | 50 |
Bitrate
The following bitrate were used in the testing:
- 1 Mbps
- 1.5 Mbps
- 3.5 Mbps
- 7.5 Mbps
Presets
The following presets were used for CPU and GPU
- CPU: Medium for both x264 and x265
- GPU: P7 (Highest Quality Preset)
Versions:
| Codec | Version |
|---|---|
| CPU (x264) | r3213 570f6c7 |
| CPU (x265) | 5163c32d7 |
| VPU | 5.0.0 |
| GPU | Driver: 570.86.10 Cuda: 12.8 |
Commands
The following are the commands used to perform the validation.
AVC/H.264
CPU
x264 --aq-mode 0 --no-scenecut --bframes 3 --b-adapt 0 --rc-lookahead 16 \
--input-depth {input_depth} --output-depth {output_depth} \
--input-res {resolution} --fps {fps} --bitrate {bitrate} --vbv-bufsize {2*bitrate} \
--keyint {interval} --min-keyint {interval} --preset {preset} --frames {total frames} \
-o {output} {input}
GPU
ffmpeg -y -vsync 0 -hwaccel cuda -s:v {resolution} \
-r {fps} -i {input} -c:v h264_nvenc -pix_fmt yuv420p -preset {preset} -rc cbr \
-bufsize {bitrate} -tune hq -bf 3 -b_ref_mode middle -b_adapt 0 -rc-lookahead 15 -vsync 0 \
-b_qfactor 1 -spatial-aq 0 -temporal-aq 0 -b:v {bitrate} -maxrate {bitrate} -minrate {bitrate} \
-profile:v high -g {interval} -spatial-aq 0 -temporal-aq 1 -vsync 0 -vframes {total frames} {output}
VPU
ffmpeg -y -vsync 0 -s {resolution} -r {fps} \
-i {input} -c:v h264_ni_quadra_enc \
-xcoder-params level=0:frameRate={fps}:RcEnable=1:vbvBufferSize=2000:bitrate={bitrate}:intraPeriod={interval}:gopPresetIdx=-1:entropyCodingMode=1:lookaheadDepth=16:cuLevelRCEnable=0:rdoLevel=1:EnableRdoQuant=1 \
-vframes {total_frames} {output}
HEVC/H.265
CPU
x265 --aq-mode 0 --no-scenecut --bframes 3 --b-adapt 0 --rc-lookahead 16 \
--input-depth {input_depth} --output-depth {output_depth} \
--input-res {resolution} --fps {fps} --bitrate {bitrate} \
--vbv-bufsize {2*bitrate} --keyint {interval} --min-keyint {interval} \
--preset {preset} --frames {total frames} \
-o {output} {input}
GPU
ffmpeg -y -vsync 0 -hwaccel cuda -s:v {resolution} \
-r {fps} -i {input} -c:v hevc_nvenc -pix_fmt yuv420p -preset {preset}-rc cbr \
-bufsize {bitrate} -tune hq -bf 5 -b_ref_mode middle -b_adapt 0 -rc-lookahead 15 -vsync 0 \
-b_qfactor 1 -spatial-aq 0 -temporal-aq 0 -b:v {bitrate} -maxrate {bitrate} -minrate {bitrate} \
-profile:v main -g {interval} -spatial-aq 0 -temporal-aq 1 -vsync 0 -vframes {total frames} {output}
VPU
ffmpeg -y -vsync 0 -s {resolution} -r {fps} \
-i {input} -c:v h265_ni_quadra_enc \
-xcoder-params level=0:frameRate={fps}:RcEnable=1:vbvBufferSize=2000:bitrate={bitrate}:intraPeriod={interval}:gopPresetIdx=-1:entropyCodingMode=1:lookaheadDepth=16:cuLevelRCEnable=0:rdoLevel=1:EnableRdoQuant=1 \
-vframes {total_frames} {output}
Throughput Analysis
The below analysis evaluates the throughput performance, using the blue_sky_1920x1080p25_420.yuv source file with bitrate of 3.125Mbps for the Quadra (VPU), software (CPUs), and Nvidia (GPUs) across two different Codecs: H.264 and H.265.
Various number of parallel encoding sessions were used to determine total frames per second (fps).