| Use Case | Capture | Encode (HEVC/AVC) | Decode | Display |
|---|---|---|---|---|
| Normal-Latency | 16.6 ms | 18 ms / 35 ms | 200 ms | 16.6 ms |
| Reduced-Latency | 16.6 ms | 18 ms / 35 ms | 50 ms | 16.6 ms |
| Low-Latency | 16.6 ms | 4 ms / 10 ms | 17 ms | 16.6 ms |
| Ultra-Low-Latency | 1 ms | 4 ms / 10 ms | 17 ms | 16.6 ms |
Note:
- In case of normal latency, the decode latency is calculated
according to the following formula. The DPB size here is depends on profile
and level. reported latency = DPB size + internal entropy buffers + reconstruction buffers + concealment buffers.
- The exact worst case latencies depend upon the input content and system load. Latency numbers mentioned in this table correspond to the theoretical latencies reported by the GStreamer elements. The latencies of elements should stay under the reported ones.
The equations in the following table are used to derive latency numbers:
| Element | Equation | Latency |
|---|---|---|
| V4L2 Capture | 1 frame period for the capture buffer | 16.66 ms |
| HEVC Encode | 1 frame period for input capture buffer rounded to ms + 1 ms margin = 17 ms + 1 ms | 18 ms |
| AVC Encode | 1 frame period for input capture buffer rounded to ms + 1 intermediate buffer + 1 ms margin = 17 ms + 17 ms + 1 ms | 35 ms |
| Normal-Latency Decode | DPB size (5 for default level, that is, 5.2) + internal entropy buffers (default=5) + reconstruction buffers (default=1) + concealment buffers (default=1) = 12 *16.66 ms | 200 ms |
| Reduced-Latency | 1 frame period to insert frame into decoder + 1 frame period to decode + 1 frame period margin = 16.6 ms + 16.6 ms + 16.6 ms | 50 ms |