Subtitle Burn-In Compared
Test Results
Subtitle burn-in performance for text and bitmap subtitles across FFmpeg builds and hardware contexts.
PERFORMANCE
Performance: Isolated
Dolby Vision test method
Dolby Vision carries dynamic metadata that changes from scene to scene, and a tone mapper has to follow those changes. A loop of one repeated frame keeps the metadata constant and leaves that work out. From our observations, the metadata changes in a way that matters for tone mapping on roughly 3 to 8% of the frames of typical content, around 5% in the middle, which is about once every 20 frames. Some content barely changes at all.
The test therefore takes eight frames from different scenes of the source and repeats each of them 20 times. The resulting 160-frame sequence loops with a metadata change every 20 frames. GPU frames are uploaded once before the loop and stay on the GPU. The sampling position, stride and frame counts are fixed in the workload configuration and are the same on every machine.
Each sample pairs the configured short and long runs, both containing whole 160-frame passes. Per-frame cost is (long time − short time) / (long frames − short frames), and the result is the median of three valid pairs. The configured method stays fixed; a single-frame case is labelled accordingly.
Isolated test method
The isolated test measures the tone mapper on its own, without decoding and encoding. Each run decodes the first frame of the original clip, applies any input conversion the filter requires once, and uploads GPU frames once. It then repeats that one prepared frame N times through the tone mapper. The output goes to the null muxer as wrapped frames: GPU frames stay on the GPU, and nothing is downloaded or encoded.
Each sample pairs a run with one frame and a run with N frames. Per-frame cost is (time(N) - time(1)) / (N - 1); FPS is its inverse. The subtraction removes startup, decoding, upload and any one-time setup of the tone mapper. Duration is the wall time of the N-frame run, including those startup costs.
N is fixed for each case in config/performance-workloads.json. Every machine processes the same workload; previous results, calibration runs and measured speed do not change N. Clearing results leaves the workload configuration intact. Explicit frame-count overrides are recorded as custom comparisons.
The result is the best valid sample. Spread is (max FPS - min FPS) / max FPS across the valid samples. A repeated frame keeps its HDR metadata constant, so this test does not include the work of following changing dynamic metadata; Dolby Vision uses its eight-state method for that. Output conversions that a filter needs remain in the measured chain, for example the zscale steps around the FFmpeg 9.0 tonemap filter.
Full transcode test method
The full transcode test uses the fixed output frame count or media duration recorded for each case: decoding, tone mapping at native resolution, scaling to 720p and H.264 encoding. GPU routes keep frames on the GPU from decoder to encoder, without any upload or download: CUDA with NVENC, OpenCL with QSV on Intel or with AMF on AMD, and Vulkan with Vulkan Video. On AMD, Emby maps between AMF and OpenCL and scales with vpp_amf, like the Emby server; the other builds map between D3D11 and OpenCL and scale with scale_d3d11. Software filters decode in software and encode with libx264 ultrafast.
With one tone mapping pass per frame, fast GPU tone mappers are hidden behind the hardware decoder, and all of them end up at the decoder's limit. GPU routes therefore pass every decoded frame through tone mapping five times. fps=source_fps*5 repeats each frame before it is mapped into the tone mapper's API, and fps=source_fps/5 keeps one of the five after it is mapped back, right before the scaler. Mapping in, tone mapping and mapping back run five times per output frame; decoding, scaling and encoding run once. Software routes use a single pass.
FPS is output frames divided by FFmpeg's wall time. Mapped FPS counts the tone mapping passes: five times FPS on GPU routes, equal to FPS for software. Speed is output frames divided by the source frame rate and the wall time. Duration is the wall time of the run, and the result is the best valid sample.
Very fast tone mappers can still reach the limit of the decoder or encoder; their FPS is then a lower bound. Routes that a build cannot run, for example because its D3D11-to-OpenCL mapping is missing, are listed as failed or skipped with the native error rather than replaced by a software path.
| FFmpeg source | Filter | FPS | Mapped FPS | Speed | Duration | Relative throughput |
|---|
² These libplacebo tests used the Emby FFmpeg binary to work around an issue in FFmpeg.
QUALITY / LIBPLACEBO REFERENCE
A closer look
Metrics describe agreement with libplacebo. Every quality image uses native source dimensions.
Tonemap Curves Compared
Subtitle Burn-In Compared
SUBTITLE PERFORMANCE
Subtitle performance
Isolated test method
The isolated comparison measures subtitle processing without video decoding or encoding in the timed workload. A video frame is prepared in advance, and GPU variants upload it before the repeated-frame loop. The loop advances the video clock while replaying the original subtitle events, so rendering, subtitle changes, and their durations are included in the measured work.
The output goes to the null muxer as wrapped frames. GPU video frames stay on the GPU; there is no video-frame download or encoding.
Each measurement pairs a short run with a long run. Per-frame cost is (long time − short time) / (long frames − short frames); FPS is its inverse. The subtraction removes startup and other one-time costs. The reported result is the median of the configured repetitions. The recorded method above identifies the frame counts used for these results. Standard frame counts come from config/subtitle-workloads.json and remain identical across machines and after clearing results.
Full transcode test method
The full transcode comparison decodes the original 4K video in software or hardware, as the selected pattern requires. Subtitles are overlaid at the video's original dimensions before scaling to 720p and encoding H.264. Encoded packets are discarded through the null muxer.
The text patterns T1–T6 and graphic patterns G1–G7 distinguish decoding, CPU or GPU overlay, and the transfers required by each route. See the burn-in patterns for the steps and supported FFmpeg builds.
FPS is the number of output frames divided by FFmpeg's benchmark wall time. Speed relates that throughput to the source frame rate, and Duration is the run's wall time. The reported result is the median of the configured repetitions. Frame counts are fixed in config/subtitle-workloads.json and recorded with the results.
| FFmpeg | Pattern | Pipeline | FPS | Speed | Duration | Relative throughput |
|---|
Configuration
Tone mapping filter capabilities
Checkmarks show supported video signals. Runtime summaries refer to the latest exported reports.
| FFmpeg source | Filter | Processing | HLG | HDR10 | HDR10+ | Dolby Vision P5 |
|---|
² These libplacebo tests used the Emby FFmpeg binary to work around an issue in FFmpeg.
Hardware contexts
| HW context | Device | Hardware path |
|---|---|---|
| Software | CPU | Software decoding, CPU overlay and libx264 encoding. |
| NVIDIA CUDA | Quadro RTX 4000 | NVDEC decoding, CUDA overlays and NVENC encoding. |
| Intel QSV | UHD Graphics 750 | Quick Sync decoding and encoding; T6 and G7 overlay with OpenCL on frames mapped from QSV. |
| AMD AMF/OpenCL | Radeon RX 7600 | D3D11VA decoding, AMF scaling and encoding; GPU overlays run in OpenCL on frames mapped from AMF. |
| Vulkan (AMD) | Radeon RX 7600 | Vulkan Video decoding and encoding with Vulkan overlays. |
Test system
| GPU | Manufacturer | Memory | Driver Version |
|---|
FFmpeg binaries
Burn-in patterns
| Pattern | Decoding | Download | Subtitle preparation | Overlay | Upload | Encoding | 2026 | 2023 | 9.0 |
|---|---|---|---|---|---|---|---|---|---|
| Text subtitles | |||||||||
| T1 | sw-dec | - | - | subtitles | hwupload | hw-enc | ✓ | ✓ | ✓ |
| T2 | hw-dec | hwdownload | - | subtitles | hwupload | hw-enc | ✓ | ✓ | ✓ |
| T3 | sw-dec | - | - | overlaytextsubs | hwupload | hw-enc | ✓ | ✓ | - |
| T4 | hw-dec | hwdownload | - | overlaytextsubs | hwupload | hw-enc | ✓ | ✓ | - |
| T5 | hw-dec | - | textsub2video + hw-up | hw-overlay | - | hw-enc | ✓ | ✓ | - |
| T6 | hw-dec | - | text2graphicsub | overlaygraphicsub_hw | - | hw-enc | ✓ | - | - |
| Graphic subtitles | |||||||||
| G1 | sw-dec | - | sub2video | overlay | hwupload | hw-enc | ✓ | ✓ | ✓ |
| G2 | hw-dec | hwdownload | sub2video | overlay | hwupload | hw-enc | ✓ | ✓ | ✓ |
| G3 | sw-dec | - | - | overlaygraphicsubs | hwupload | hw-enc | ✓ | ✓ | - |
| G4 | hw-dec | hwdownload | - | overlaygraphicsubs | hwupload | hw-enc | ✓ | ✓ | - |
| G5 | hw-dec | - | sub2video + hw-up | hw-overlay | - | hw-enc | ✓ | ✓ | ✓ |
| G6 | hw-dec | - | graphicsub2video + hw-up | hw-overlay | - | hw-enc | ✓ | ✓ | - |
| G7 | hw-dec | - | - | overlaygraphicsub_hw | - | hw-enc | ✓ | - | - |